-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: apply_rfl tactic: handle Eq, HEq, better error messages #3714
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
dc519ea
feat: apply_rfl tactic: Handle Eq, HEq, better error messages
nomeata 0dd354f
Update src/Lean/Meta/Tactic/Rfl.lean
nomeata 3cbfc42
Update Rfl.lean
nomeata 61e8b4c
Merge branch 'nightly-with-mathlib' of github.com:leanprover/lean4 in…
nomeata 925b3e5
Update test output
nomeata e752769
Move to tests/run
nomeata 3f918b5
Test documentation
nomeata 3c1e632
Dead code
nomeata 7e28705
Use approxDefEq
nomeata fde07c4
More tests
nomeata dbc7bc3
Improve error message
nomeata 8b6c17e
Merge branch 'nightly-with-mathlib' of github.com:leanprover/lean4 in…
nomeata 52cdde3
Trigger stage0 update after merge
nomeata 449506b
Merge branch 'nightly' of github.com:leanprover/lean4 into joachim/rf…
nomeata 9f0636c
Merge branch 'master' of github.com:leanprover/lean4 into joachim/rfl…
nomeata c972bcb
Do not use isDefEqGuarded
nomeata 802fa76
Remove exact Iff.rfl macro
nomeata 85f50e8
Revert "Do not use isDefEqGuarded"
nomeata fa5b6e2
Update test
nomeata e351221
Merge branch 'nightly' of github.com:leanprover/lean4 into joachim/rf…
nomeata bb5b28d
Actually, let's not get this PR entangled with removing the Iff.rfl m…
nomeata File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,5 @@ options get_default_options() { | |
return opts; | ||
} | ||
} | ||
|
||
// please update stage0 |
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,15 @@ | ||
|
||
opaque f : Nat → Nat | ||
-- A rewrite with a free variable on the RHS | ||
|
||
opaque P : Nat → (Nat → Nat) → Prop | ||
opaque Q : Nat → Prop | ||
opaque foo (g : Nat → Nat) (x : Nat) : P x f ↔ Q (g x) := sorry | ||
|
||
example : P x f ↔ Q (x + 10) := by | ||
rewrite [foo] | ||
-- we have an mvar now | ||
with_reducible rfl -- should should instantiate it with the lambda on the RHS and close the goal | ||
-- same as | ||
-- with_reducible (apply (Iff.refl _)) | ||
-- NB: apply, not exact! Different defEq flags. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems like it should be a function somewhere