Skip to content
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

error message position mixup for incomplete proof (missing conclusion) #158

Open
jsiek opened this issue Feb 19, 2025 · 1 comment
Open
Labels
error message Some error messages are wrong or could be made better

Comments

@jsiek
Copy link
Owner

jsiek commented Feb 19, 2025

theorem T: all P:bool, Q:bool. if P and (if P then Q) then Q
proof
  arbitrary P:bool, Q:bool
  assume prem: (P and (if P then Q))
end

error:

/Users/jsiek/deduce/test/should-error/suffices_implies_hole.pf:3.23-4.37: incomplete proof
Goal:
	Q


Givens:
	prem: (P and (if P then Q))

The 3.23 points to the second bool in the arbitrary statement, which is rather odd.

@mateidragony mateidragony added the error message Some error messages are wrong or could be made better label Feb 20, 2025
@HalflingHelper
Copy link
Collaborator

Yeah, that was my way of trying to highlight the last statement in the proof

I can change it to highlighting the end token

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error message Some error messages are wrong or could be made better
Projects
None yet
Development

No branches or pull requests

3 participants