Repository navigation
fix(examples): repair the mult_dist proof in simple_proof.v - #535
hyperpolymath wants to merge 2 commits into
Conversation
The proof failed under Coq 8.18.0 with "Found no subterm matching m + n' * m". The fault is in the proof script, not the Coq version: after IHn' and two `rewrite <- plus_assoc` steps the goal is m + (p + (n' * m + n' * p)) = m + (n' * m + (p + n' * p)), so the `m + n' * m` that the next rewrite needs no longer exists. The step case now right-associates both sides, peels the shared `m` with f_equal, and closes the remaining commutation with Nat.add_comm and Nat.add_assoc (the non-deprecated names). `coqc -q` on the file exits 0 with Coq 8.18.0. No CI job compiles examples/ (`just proofs-coq` covers proofs/coq only), which is how this went unnoticed. Found by an arghda verdict run over the echidna corpus. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J4QvDgFqYab1nEu8NYuHqr
|
Review these changes at https://app.gitnotebooks.com/hyperpolymath/echidna/pull/535 |
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
|
Dependency audit: failing on This PR changes only
A fix means bumping or replacing the flagged dependencies in both lockfiles. That belongs in its own PR, so I have not added it here. Generated by Claude Code |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
|
Auto-merge is waiting on
Unverified lead. The generated The fix belongs in the workflows or the lockfile on Generated by Claude Code |



Summary
examples/simple_proof.vdid not compile. The step case ofmult_distfails under Coq 8.18.0 with:The fault is in the proof script, not the Coq version. After
rewrite IHn'and the tworewrite <- plus_assocsteps, the goal isso the
m + n' * mthatrewrite (plus_comm m (n' * m))needs no longer exists. This was checked withShow.at that point.Nothing caught it because no CI job compiles
examples/:just proofs-coqcovers onlyproofs/coq/. The failure turned up in an arghda verdict run over the echidna corpus at14ada6d. That run is recorded in the hyperpolymath/arghda-core#67 design note.Changes
mult_distnow:rewrite <- !Nat.add_assoc;mwithf_equal;Nat.add_commandNat.add_assoc.Nat.*names. Nothing else in the file changed.Not in this PR, for a separate decision:
examples/to CI. That is a workflow change.examples/.simple_proof.auxandexamples/simple_proof.globare tracked in git, and compiling rewrites them. I restored both to their committed bytes and left them alone.RSR Quality Checklist
Required
just testor equivalent): not run. This PR changes one Coq example only, andcoqcon it passes (see Testing).unsafeblocks without// SAFETY:comments: none touchedbelieve_me,unsafeCoerce,Obj.magic,Admitted,sorry): the proof ends inQed.envfiles includedTesting
coqc -q examples/simple_proof.vwith Coq 8.18.0: exit 0, with only deprecation warnings left from the other theorems'Arith.Plusnames.Nat.add_assocandNat.add_comm, which are current names.Generated by Claude Code