Files
NNG/Game/Levels/Power/L03pow_one.lean
2024-01-24 17:37:50 +00:00

26 lines
548 B
Lean4
Raw Permalink 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.L02zero_pow_succ
World "Power"
Level 3
Title "pow_one"
namespace MyNat
/-- `pow_one a` says that `a ^ 1 = a`.
Note that this is not quite true by definition: `a ^ 1` is
defined to be `a ^ 0 * a` so it's `1 * a`, and to prove
that this is equal to `a` you need to use induction somewhere.
-/
TheoremDoc MyNat.pow_one as "pow_one" in "^"
/-- For all naturals $a$, $a ^ 1 = a$. -/
Statement pow_one (a : ) : a ^ 1 = a := by
rw [one_eq_succ_zero]
rw [pow_succ]
rw [pow_zero]
rw [one_mul]
rfl
TheoremTab "^"