You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lean4game/server/nng/NNG/Levels/AdvAddition/Level_12.lean

33 lines
486 B
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import NNG.Metadata
import NNG.MyNat.AdvAddition
Game "NNG"
World "AdvAddition"
Level 12
Title "add_one_eq_succ"
open MyNat
Introduction
"
We have
* `succ_eq_add_one (n : mynat) : succ n = n + 1`
but sometimes the other way is also convenient.
"
theorem succ_eq_add_one (d : ) : succ d = d + 1 := by sorry
Statement
"For any natural number $d$, we have
$$ d+1 = \\operatorname{succ}(d). $$"
(d : ) : d + 1 = succ d := by
rw [succ_eq_add_one]
rfl
Conclusion
"
"