Files
NNG/Game/Levels/Power/Level_7.lean
2023-08-11 15:06:01 +02:00

42 lines
949 B
Lean4
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import Game.Levels.Power.Level_6
World "Power"
Level 7
Title "pow_pow"
open MyNat
Introduction
"
Boss level! What will the collectible be?
"
/-- For all naturals $a$, $m$, $n$, we have $(a ^ m) ^ n = a ^ {mn}$. -/
Statement MyNat.pow_pow
(a m n : ) : (a ^ m) ^ n = a ^ (m * n) := by
induction n with t Ht
· rw [mul_zero, pow_zero, pow_zero]
rfl
· rw [pow_succ, Ht, mul_succ, pow_add]
rfl
LemmaTab "Pow"
attribute [simp] MyNat.pow_zero
attribute [simp] MyNat.pow_succ
attribute [simp] MyNat.pow_one
attribute [simp] MyNat.one_pow
attribute [simp] MyNat.pow_pow -- yes or no?
Conclusion
"
Apparently Lean can't find a collectible, even though you feel like you
just finished power world so you must have proved *something*. What should the
collectible for this level be called?
But what is this? It's one of those twists where there's another
boss after the boss you thought was the final boss! Go to the next
level!
"