forked from leanprover/lean4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: infer def/theorem DefKind for
let rec
- Loading branch information
1 parent
6e23ced
commit 40e212c
Showing
3 changed files
with
17 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
def foo : Fin 5 := | ||
let rec bla : 0 < 5 := by decide | ||
⟨0, bla⟩ | ||
#print foo.bla |
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,2 @@ | ||
theorem foo.bla : 0 < 5 := | ||
of_decide_eq_true (Eq.refl true) |