forked from leanprover/lean4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rewrite TerminationHint elaborators (leanprover#2958)
In order to familiarize myself with this code, and so that the next person has an easier time, I * added docstrings explaining what I found out these things to * rewrote the syntax expansion functions using syntax pattern matches, to the extend possible
- Loading branch information
Showing
5 changed files
with
88 additions
and
46 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,6 +1,7 @@ | ||
termination_by2.lean:4:1-4:22: error: invalid 'termination_by' in 'mutual' block, it must be used after the 'end' keyword | ||
termination_by2.lean:13:2-13:10: error: invalid `termination_by` syntax, unnecessary else-case | ||
termination_by2.lean:24:3-24:16: error: invalid `termination_by` syntax, missing case for function 'isOdd' | ||
termination_by2.lean:36:3-36:14: error: function 'isOd' not found in current declaration | ||
termination_by2.lean:48:3-48:16: error: invalid `termination_by` syntax, `isEven` case has already been provided | ||
termination_by2.lean:61:3-61:15: error: invalid `termination_by` syntax, the else-case (i.e., `_ ... => ...`) has already been specified | ||
termination_by2.lean:11:15-11:21: error: function 'n' not found in current declaration | ||
termination_by2.lean:20:2-20:10: error: invalid `termination_by` syntax, unnecessary else-case | ||
termination_by2.lean:31:3-31:16: error: invalid `termination_by` syntax, missing case for function 'isOdd' | ||
termination_by2.lean:43:3-43:14: error: function 'isOd' not found in current declaration | ||
termination_by2.lean:55:3-55:16: error: invalid `termination_by` syntax, `isEven` case has already been provided | ||
termination_by2.lean:68:3-68:15: error: invalid `termination_by` syntax, the else-case (i.e., `_ ... => ...`) has already been specified |