import MyNat.Power
import MyNat.Multiplication
import PowerWorld.Level5 -- pow_add
namespace MyNat
open MyNat
Power World
Level 7: pow_pow
Boss level! What will the collectible be?
Lemma
For all naturals a
, m
, n
, we have (a ^ m) ^ n = a ^ {mn}
.
lemmapow_pow (pow_pow: ∀ (a m n : MyNat), (a ^ m) ^ n = a ^ (m * n)aa: MyNatmm: MyNatn :n: MyNatMyNat) : (MyNat: Typea ^a: MyNatm) ^m: MyNatn =n: MyNata ^ (a: MyNatm *m: MyNatn) :=n: MyNata, m, n: MyNat(a ^ m) ^ n = a ^ (m * n)a, m, n: MyNat(a ^ m) ^ n = a ^ (m * n)a, m: MyNat
zero(a ^ m) ^ zero = a ^ (m * zero)a, m: MyNat
zero(a ^ m) ^ zero = a ^ (m * zero)a, m: MyNat
zero(a ^ m) ^ 0 = a ^ (m * 0)a, m: MyNat
zero(a ^ m) ^ 0 = a ^ (m * 0)a, m: MyNat
zero(a ^ m) ^ 0 = a ^ (m * 0)a, m: MyNat
zero(a ^ m) ^ 0 = a ^ 0a, m: MyNat
zero(a ^ m) ^ 0 = a ^ 0a, m: MyNat
zero(a ^ m) ^ 0 = a ^ 0a, m: MyNat
zero1 = a ^ 0Goals accomplished! 🐙Goals accomplished! 🐙a, m, n: MyNat
ih: (a ^ m) ^ n = a ^ (m * n)
succ(a ^ m) ^ succ n = a ^ (m * succ n)a, m, n: MyNat
ih: (a ^ m) ^ n = a ^ (m * n)
succ(a ^ m) ^ succ n = a ^ (m * succ n)a, m, n: MyNat
ih: (a ^ m) ^ n = a ^ (m * n)
succ(a ^ m) ^ n * a ^ m = a ^ (m * succ n)a, m, n: MyNat
ih: (a ^ m) ^ n = a ^ (m * n)
succ(a ^ m) ^ n * a ^ m = a ^ (m * succ n)a, m, n: MyNat
ih: (a ^ m) ^ n = a ^ (m * n)
succ(a ^ m) ^ n * a ^ m = a ^ (m * succ n)a, m, n: MyNat
ih: (a ^ m) ^ n = a ^ (m * n)
succa ^ (m * n) * a ^ m = a ^ (m * succ n)a, m, n: MyNat
ih: (a ^ m) ^ n = a ^ (m * n)
succa ^ (m * n) * a ^ m = a ^ (m * succ n)a, m, n: MyNat
ih: (a ^ m) ^ n = a ^ (m * n)
succa ^ (m * n) * a ^ m = a ^ (m * succ n)a, m, n: MyNat
ih: (a ^ m) ^ n = a ^ (m * n)
succa ^ (m * n) * a ^ m = a ^ (m * n + m)a, m, n: MyNat
ih: (a ^ m) ^ n = a ^ (m * n)
succa ^ (m * n) * a ^ m = a ^ (m * n + m)a, m, n: MyNat
ih: (a ^ m) ^ n = a ^ (m * n)
succa ^ (m * n) * a ^ m = a ^ (m * n + m)a, m, n: MyNat
ih: (a ^ m) ^ n = a ^ (m * n)
succa ^ (m * n) * a ^ m = a ^ (m * n) * a ^ mGoals accomplished! 🐙
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!
Next up Level 8