Files
NNG/Game/Levels/LessOrEqual/L02zero_le.lean
Kevin Buzzard d80a520359 tinkering
2023-10-22 15:50:20 +01:00

27 lines
444 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.LessOrEqual.L01le_refl
World "LessOrEqual"
Level 2
Title "0 ≤ x"
namespace MyNat
Introduction
"
To solve this level, you need to `use` a number `c` such that `x = 0 + c`.
"
LemmaDoc MyNat.zero_le as "zero_le" in "" "
`zero_le x` is a proof that `0 ≤ x`.
"
NewLemma MyNat.zero_le
/-- If $x$ is a number, then $0 \le x$. -/
Statement zero_le (x : ) : 0 x := by
use x
rw [zero_add]
rfl
LemmaTab ""