Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert 'chore(library/init/data/nat): backport Nat.le from Lean4 (#603)'
- Loading branch information
1 parent
3d86ad7
commit 24e18d9
Showing
9 changed files
with
73 additions
and
120 deletions.
There are no files selected for viewing
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 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 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 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 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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
namespace nat | ||
#check induction_on -- ERROR | ||
#check rec_on -- ERROR | ||
#check less_than_or_equal.rec_on -- OK | ||
#check nat.less_than_or_equal.rec_on | ||
namespace le | ||
#check rec_on -- ERROR | ||
#check less_than_or_equal.rec_on | ||
end le | ||
end nat |
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 |
---|---|---|
@@ -1,3 +1,12 @@ | ||
protected_test.lean:2:9: error: unknown identifier 'induction_on' | ||
protected_test.lean:3:9: error: unknown identifier 'rec_on' | ||
protected_test.lean:5:11: error: unknown identifier 'rec_on' | ||
less_than_or_equal.rec_on : | ||
?M_1.less_than_or_equal ?M_3 → | ||
?M_2 ?M_1 → (∀ {b : ℕ}, ?M_1.less_than_or_equal b → ?M_2 b → ?M_2 b.succ) → ?M_2 ?M_3 | ||
less_than_or_equal.rec_on : | ||
?M_1.less_than_or_equal ?M_3 → | ||
?M_2 ?M_1 → (∀ {b : ℕ}, ?M_1.less_than_or_equal b → ?M_2 b → ?M_2 b.succ) → ?M_2 ?M_3 | ||
protected_test.lean:7:11: error: unknown identifier 'rec_on' | ||
less_than_or_equal.rec_on : | ||
?M_1.less_than_or_equal ?M_3 → | ||
?M_2 ?M_1 → (∀ {b : ℕ}, ?M_1.less_than_or_equal b → ?M_2 b → ?M_2 b.succ) → ?M_2 ?M_3 |
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 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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
open nat | ||
|
||
definition not_false' (a : nat) : ¬ false := | ||
assume H : false, | ||
definition not_lt_zero (a : nat) : ¬ a < 0 := | ||
assume H : a < 0, | ||
match H with | ||
end | ||
|
||
#check _root_.not_false' | ||
#check _root_.not_lt_zero |
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