Skip to content

Keep proof mode active when earlier or nested goals remain - #56

Open
chessing234 wants to merge 1 commit into
teorth:mainfrom
chessing234:codex/estimates-proof-navigation
Open

chessing234 wants to merge 1 commit into
teorth:mainfrom
chessing234:codex/estimates-proof-navigation

Conversation

@chessing234

Copy link
Copy Markdown
Contributor

With three goals, solving the second and then the third can exit tactic mode while the first is still unresolved. find_sorry forgets the earlier open goal when it crosses a completed sibling. It also loses the first open goal inside a nested subtree, and count_sorries omits nested goals after the current node.

Preserve the first and last open goals when the target is outside a subtree, and keep the previous goal when a completed sibling has no replacement. Count all descendant goals after an internal target. A regression uses the real ProofAssistant, SplitGoal, and SimpAll flow and verifies that tactic mode continues until the first goal is solved.

Validation: five focused tests pass. The complete suite reports 28 passed and one failure; current upstream has the identical test_linarith_failure_example Z3 symbolic-Boolean failure (23 passed, one failed). That existing counterexample issue is separate from navigation and is already covered by an open PR. git diff --check passes.

This branch has not been deployed

No deployments
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.

1 participant