-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:
decide +revert
and improvements to native_decide
This PR adds configuration options for `decide`/`decide!`/`native_decide` and refactors them to be frontends to the same tactic. Adds a `+revert` option that cleans up the local context and reverts all local variables the goal depends on, along with indirect propositional hypotheses. Makes `native_decide` fail at elaboration time on failure without sacrificing performance (the decision procedure is still evaluated just once).
- Loading branch information
Showing
8 changed files
with
302 additions
and
148 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
1825.lean:2:8-2:13: error: application type mismatch | ||
Lean.ofReduceBool boom'._nativeDecide_1 true (Eq.refl true) | ||
argument has type | ||
true = true | ||
but function has type | ||
Lean.reduceBool boom'._nativeDecide_1 = true → boom'._nativeDecide_1 = true | ||
1825.lean:2:71-2:84: error: tactic 'native_decide' evaluated that the proposition | ||
-2147483648 + 2147483648 = -18446744069414584320 | ||
is false |
Oops, something went wrong.