We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
contradiction
The contradiction tactic uses absurd when discharging the goal using α → False, even if α is not a proposition, leading to a typechecking failure.
absurd
α → False
α
Found on Zulip
theorem T0 (α : Type) (x : α) (H: α → False) : False := by contradiction
Expected behavior: Either this succeeds (without error) or reports "tactic 'contradiction' failed"
Actual behavior: The tactic succeeds without error, but there is an error at T0:
T0
application type mismatch @absurd α argument has type Type but function has type ∀ {a b : Prop}, a → ¬a → b
4.11.0 commit from 7/25/2024
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered:
fix: type incorrect term produced by contradiction
adc07fa
This PR fixes a type error in the proof generated by the `contradiction` tactic. closes #4851
ac6ea18
fix: type incorrect term produced by contradiction (#6387)
e08d35c
Successfully merging a pull request may close this issue.
Description
The
contradiction
tactic usesabsurd
when discharging the goal usingα → False
, even ifα
is not a proposition, leading to a typechecking failure.Context
Found on Zulip
Steps to Reproduce
Expected behavior: Either this succeeds (without error) or reports "tactic 'contradiction' failed"
Actual behavior: The tactic succeeds without error, but there is an error at
T0
:Versions
4.11.0 commit from 7/25/2024
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: