Skip to content

examples: restore example.v to its unproven state - #12

Open
dingf3ng wants to merge 1 commit into
mainfrom
example-v-unproven
Open

examples: restore example.v to its unproven state#12
dingf3ng wants to merge 1 commit into
mainfrom
example-v-unproven

Conversation

@dingf3ng

@dingf3ng dingf3ng commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Why

examples/example.v is the README's quickstart target:

python3 -m main examples/example.v --config ./configs/minimal.json

The README also says, correctly, that "the proof script is saved in the same example.v file".

Commit a4c1e2f ("update readme") ran that command while writing those instructions — and committed the result. The lemma arrived already proven, carrying the exact tactic body the agent had just found.

The consequence

That breaks the quickstart it was documenting. With no unproven proof left in the file:

[WARNING] No unproven proof found in file
load() -> False   last_error: None

main.py:219 turns that False into raise Exception("Failed to load Coq file") — after logging the empty last_error as the reason. A fresh clone cannot run the first command in the README.

What changed

One file. Restores the Proof. / Admitted. body it had at dab2b56.

Is anything depending on it being proven?

No — checked all consumers. test_coqpyt.py and test_coqpyt_simple.py reset it themselves, and run_tests.py resets it before the suite.

example.v ships as the README's quickstart target:

    python3 -m main examples/example.v --config ./configs/minimal.json

and the README says, correctly, that "the proof script is saved in the
same example.v file". a4c1e2f ("update readme") ran that command while
writing those instructions, and committed the resulting file: the lemma
arrived proven, with the exact tactic body the agent had just found.

That breaks the quickstart it was documenting. With no unproven proof in
the file, get_unproven_proof() returns None, load() logs "No unproven
proof found in file" and returns False, and main.py:219 turns that into
`raise Exception("Failed to load Coq file")` -- after logging the empty
last_error as the reason. A new clone cannot run the first command in
the README.

Restores the Proof./Admitted. body the file had at dab2b56. Nothing in
the tree depends on it being proven: test_coqpyt.py and
test_coqpyt_simple.py reset it themselves, and run_tests.py resets it
before the suite.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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