Commit 8957363
authored
QTT solo-core mechanisation: F1.4 + R2–R5 + M1 + S1–S3c + E4 + contractile overhaul (#111)
## Summary
Large mechanisation milestone — the dev branch accumulates all proof
work since v0.3.0 (post-PR #110).
### Coq solo-core advances (Coq 8.18.0, `−R . SoloCore`, axiom-free
throughout)
**F1.4 — Separated QTT context + both products + preservation
(complete)**
- Separated `tctx` (types) + `uvec` (quantities); `uadd` genuinely
commutative/associative
- Additive `&` (`TWith`, shared D, `Fst`/`Snd`) + multiplicative `⊗`
(`TTensor`, split D, `LetPair`)
- `ht_subst` open-context substitution lemma; `Theorem preservation :
Preservation. Qed.`
- `Theorem progress : Preservation. Qed.` — both axiom-free (`Print
Assumptions` closed)
**R2–R5 — Semiring functorisation + affine sub-usage + decidability**
- R2: parametric soundness functor over any QTT semiring (tropical
min-plus instance)
- R3: affine sub-usage layer (`affine_pres` distinct)
- R5: verified usage-walk checker ≡ static context-splitting
(`check_sound`, `check_complete`, `check_correct`)
- R5b: decidability of the affine judgement (`aff_type_dec`)
**M1 — Me dialect + elaboration into Solo (mechanised translation)**
- M1.0: `me_tm` AST + `translate : me_tm → solo_tm`
- M1.1: universal elaboration adequacy (Visual Soundness, axiom-free)
- M1.1b: universal linear-use `me_wt` spanning all `me_tm`; `MeIf`
faithful
**S1–S3c — Ensemble session-π core (n-party, axiom-free)**
- S1.0: session-typed π-calculus (`SessionPi.v`); duality involution;
well-typed ping-pong
- S1.1a/b: communication-redex SR + full closed-system SR over
`(νc)(P∣Q)`
- S1.2: session fidelity + progress/deadlock-freedom
- S1.3: n-ary labelled choice + equi-recursive `μ` type-layer +
structural congruence preserves typing
- S2: Duet by projection (axis-2 STRUCTURE; `proj_g` + `merge`)
- S2.2: global choice + recursion by projection
- S3a: n-party projection totality (first n≥3 theorem)
- S3b: static n-party configuration
- S3c.0–S3c.3: full label-union merge (`umerge`) + union-projection +
n-ary located semantics + head-coupled message subject reduction (first
earned n-party safety)
**E4 — Echo-types residue-measure SEAM (Coq mirror, axiom-free)**
- Coq mirror of the echo-types residue SEAM; `EchoMode` (Linear/Affine);
`EchoResidue`
### Contractile overhaul
The RSR-template-copied `Bustfile.a2ml` / `Dustfile.a2ml` both
incorrectly described my-lang as "the canonical template for RSR
compliance". my-lang is a **consumer** of the RSR template.
Replaced with properly-scoped per-intent named files:
- `bust/proof-ci-gate-absent.a2ml` — F5 gap (proofs.yml absent;
axiom-regression mode)
- `bust/idris2-parity-lag.a2ml` — Idris2 twin lags Coq on F1.4
(`?todo_preservation`, issue #108)
- `dust/uninstall-coq-toolchain.a2ml` — clean Coq toolchain removal
procedure
- `dust/detach-echo-types-plugin.a2ml` — extract
`TEcho`/`MkEcho`/`Weaken` as plugin crate
`bust/` and `dust/` are **multi-file by design** — one bust entry per
failure-mode, one dust entry per cleanup intention.
## Test plan
- [ ] `coq_makefile -f _CoqProject -o CoqMakefile && make -f
CoqMakefile` exits 0 in `proofs/verification/coq/solo-core/`
- [ ] `Print Assumptions preservation.` → "Closed under the global
context" for all headline theorems
- [ ] `idris2 --build solo-core.ipkg` exits 0 (Idris2 parity tracked
separately, issue #108)
- [ ] `cargo test` exits 0
- [ ] `.machine_readable/contractiles/bust/*.a2ml` and `dust/*.a2ml`
each have ≥1 file (Mustfile check)
- [ ] No `Admitted` / stray `Axiom` in the Coq source
https://claude.ai/code/session_01BwV2DWsjkBiNP3oscimMLV
---
_Generated by [Claude
Code](https://claude.ai/code/session_01BwV2DWsjkBiNP3oscimMLV)_96 files changed
Lines changed: 9909 additions & 2175 deletions
File tree
- .github/workflows
- .machine_readable
- 6a2
- contractiles
- bust
- dust
- svc
- _exploratory/me-scaffolding
- crates/my-lang/src
- docs
- frontier-practices
- contractiles
- curriculum/cuttle
- blue
- green
- indigo
- orange
- red
- violet
- yellow
- docs
- tabletop
- blue
- green
- indigo
- orange
- red
- violet
- yellow
- hives
- duet-hive
- ensemble-hive
- me-hive
- solo-hive
- playground
- hives
- duet
- docs
- ensemble
- docs
- me
- docs
- solo
- docs
- proofs
- verification/coq/solo-core
- spec
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
This file was deleted.
Lines changed: 45 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 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
Lines changed: 42 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 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
This file was deleted.
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 | + | |
| 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 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
0 commit comments