Repository navigation
ci(antipattern): broaden TS allowlist (cli, mod.ts, lsp-server, *vscode*, deno-*) - #5
Merged
Merged
Conversation
hyperpolymath
added a commit
that referenced
this pull request
Jun 21, 2026
…ormance; #5 by-design (#121) ## What Closes the **implementation ⇄ spec coupling** obligations (`proofs/STATUS.md` §"Implementation ⇄ spec coupling") — making "the soundness lives in the compiler" literally true, by **differential conformance against the Coq-extracted verified artifacts** (the honest, reproducible alternative to an infeasible full Rust-in-Coq refinement proof). | # | Coupling | Status | |---|----------|--------| | 1 | Rust checker refines Coq `check` (R5) | ✅ conformance-checked | | 2 | Rust evaluator refines Coq `step` | ✅ conformance-checked | | 3 | Echo modality wired surface → verified checker | ✅ conformance-checked (verified-core surface) | | 4 | Rust session runtime refines Coq `cstep` (binary) | ✅ conformance-checked | | 5 | Concrete `me` surface | ✅ by-design — not a gap | ## Method The verified Coq functions are extracted to OCaml (`Extract.v`, `Separate Extraction`) and used as **independent oracles**; the Rust ports in `crates/my-qtt` are the implementations under test. One harness (`conformance/run.sh`) generates a random corpus and asserts byte-identical results. Where the spec is a *relation* (`step`, `cstep`), a functional mirror is first **proved sound + complete** vs the relation, then conformance-tested: - **`Eval.v`** — `step1` + `step1_sound`/`step1_complete` (vs `step`), axiom-free, in CI. - **`SessionEval.v`** — `cstep1` + `cstep1_sound`/`cstep1_complete` (vs `cstep`), axiom-free, in CI. **60,000 results across 5 seeds agree** (3000 cases × {check, one-step, normal-form, session-step}); the normal-form pass cross-checks the Rust substitution against Coq's extracted `subst`, and echo terms (#3) ride in the corpus. ## Files - Coq (new, CI-gated): `Eval.v`, `SessionEval.v`; `Extract.v` (extraction-only, not in suite). - Harness: `conformance/{oracle.ml,run.sh,README.adoc}`, `crates/my-qtt/src/bin/conformance_gen.rs`. - Rust verified-core: `crates/my-qtt/src/{lib.rs (evaluator),session.rs (new),surface.rs (echo tests)}`. - `proofs/STATUS.md`: rows #1–#5 + new `conformance-checked` vocabulary + two mechanised-cores rows. ## Scope / honesty (carried in STATUS.md) Refinement-by-conformance against the *extracted verified algorithm*, not a full Rust-in-Coq proof. The *main* `checker.rs` (Hindley) still doesn't call the verified core by default; echo lacks conventional-compiler *syntax*; the n-ary `nstep`/`gstep` runtimes are a larger follow-on. These are explicitly labelled, not hidden. Requires `coqc` 8.18, `ocamlfind`+`ocamlc`, `cargo` (all in the proof CI image). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01BwV2DWsjkBiNP3oscimMLV --- _Generated by [Claude Code](https://claude.ai/code/session_01BwV2DWsjkBiNP3oscimMLV)_ --------- Co-authored-by: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Same fleet-wide v2 patch as previously rolled out — adds /cli/, mod.ts, lsp-server.ts, broader vscode, /deno-*/ patterns.