-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Advanced multiplication minor reorganisation
- Loading branch information
Showing
5 changed files
with
43 additions
and
85 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import Game.Levels.AdvMultiplication.L03eq_succ_of_ne_zero | ||
|
||
World "AdvMultiplication" | ||
Level 4 | ||
Title "one_le_of_ne_zero" | ||
|
||
LemmaTab "≤" | ||
|
||
namespace MyNat | ||
|
||
LemmaDoc MyNat.one_le_of_ne_zero as "one_le_of_ne_zero" in "≤" " | ||
`one_le_of_ne_zero a` is a proof that `a ≠ 0 → 1 ≤ a`. | ||
" | ||
|
||
Introduction | ||
"The previous lemma can be used to prove this one. | ||
" | ||
|
||
Statement one_le_of_ne_zero (a : ℕ) (ha : a ≠ 0) : 1 ≤ a := by | ||
Hint (hidden := true) "Use the previous lemma with `apply eq_succ_of_ne_zero at ha`." | ||
apply eq_succ_of_ne_zero at ha | ||
Hint (hidden := true) "Now take apart the existence statement with `cases ha with n hn`." | ||
cases ha with n hn | ||
use n | ||
rw [hn, succ_eq_add_one, add_comm] | ||
rfl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters