Skip to content

Implement SMT proof verification with counterexamples#13

Open
nirmathur wants to merge 3 commits intomainfrom
cursor/implement-smt-proof-verification-with-counterexamples-d13d
Open

Implement SMT proof verification with counterexamples#13
nirmathur wants to merge 3 commits intomainfrom
cursor/implement-smt-proof-verification-with-counterexamples-d13d

Conversation

@nirmathur
Copy link
Copy Markdown
Owner

Implements the production SMT proof-gate to provide counterexamples for failed proofs and improve verification performance.


Open in Cursor Open in Web

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bugbot free trial expires on August 20, 2025
Learn more in the Cursor dashboard.

Comment thread agent/core/smt_verifier.py Outdated
result = verify(diff, charter_hash)
if isinstance(result, dict):
return result["result"]
return result # Fallback for direct boolean returns
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Inconsistent Return Type Breaks Backward Compatibility

The verify() function's return type is inconsistent. Despite its Union[bool, Dict[str, Any]] type annotation and docstring claiming backward compatibility for boolean returns, the implementation always returns a Dict[str, Any] object. This breaks existing code expecting a boolean result, as no execution path within the function returns a plain boolean value.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants