Commit 61005df
Rocq Alethe walker R-1: foundation module (parse wrapper)
Begins the Rocq-side Alethe walker port (mirror of the Lean arc
PRs #41-#52). Goal: end-to-end "cert IS the proof" reconstruction
for cvc5 alethe-2024 traces on Rocq, with UF + LIA mixed-theory
closure as the primary capability gain. Currently Rocq's LIA arm
is bare `lia` and its UF arm is a congruence chain; neither
composes for mixed-theory goals cvc5 handles natively. The
walker shifts Rocq from "can solve LIA, can solve UF, struggles
on mixed" to "can replay anything cvc5 closed".
R-1 establishes the module file and a Result-typed wrapper over
the SDK's already-shared `Proof_broker.Alethe.parse`. Walker
elaborators arrive starting R-2 (clausal layer). The SDK's ADT
(Sexp.t, step, proof) and parser are shared by both bridges, so
the Rocq side reuses them directly — no mirror-in-OCaml work
like Lean PR #41 needed (Lean had to build its own Sexp ADT and
FFI envelope; Rocq just uses the OCaml SDK directly).
Audit H1 contract (same as Lean): walker failure surfaces as a
tactic failure, with the existing lia fallback re-running.
Wired into close_or_fail in R-9; no closer integration yet.
Subsequent PRs follow the Lean cluster decomposition: R-2
clausal, R-3 arithmetic, R-4 multi-literal resolution, R-5
equality, R-6 trust-tagged leaves, R-7 boolean cleanup, R-8
equiv_simplify, R-9 wire into closer, R-10 equiv_pos1/equiv_pos2,
R-11 cong over operators (visible payoff PR), R-12 snapshot test
against the real cvc5 trace pinned in Lean #52.
Validation: local Rocq env is broken (missing zarith,
rocq-runtime per project memory); rely on CI for the full build.
The OCaml file itself is 15 lines of `Result`-typed exception
wrapping — confident in syntax.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 22b9cec commit 61005df
2 files changed
Lines changed: 69 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
0 commit comments