Files
NNG/Game/Levels/Multiplication/L06two_mul.lean

26 lines
512 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.Multiplication.L05one_mul
World "Multiplication"
Level 6
Title "two_mul"
namespace MyNat
Introduction
"
This level is more important than you think; it plays
a useful role when battling a big boss later on.
"
LemmaDoc MyNat.two_mul as "two_mul" in "Mul" "
`two_mul m` is the proof that `2 * m = m + m`.
"
/-- For any natural number $m$, we have $ 2 \times m = m+m$. -/
Statement two_mul
(m : ): 2 * m = m + m := by
rw [two_eq_succ_one, succ_mul, one_mul]
rfl
LemmaTab "Mul"