You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(echo-types): integrate structured-loss echo types into the type system (TG-10)
Echo types are now a first-class feature of the Tangle core type system,
not an external reference. `close : Word[n] -> Word[0]` is Tangle's
canonical lossy map; the echo layer makes that loss recoverable at the
type level, mirroring echo-types' fibre definition Echo f y := Σ(x:A), f x ≡ y
(hyperpolymath/echo-types, Echo.agda) in the simply-typed setting.
Type system:
- Ty.echo ρ τ — structured-loss type former (ρ = residue/witness, τ = result)
- Expr: echoClose (echo-intro for close), lower (project to result),
residue (recover the witness braid)
- HasType: T-Echo-Close, T-Lower, T-Residue
- Step: echoCloseStep, lowerStep, lowerEcho, residueStep, residueEcho
Metatheory (all green under lean4 v4.14.0, no sorry/axiom/admit):
- Progress, Preservation, Determinism, Type Safety extended to cover the
echo fragment
- new canonical_echo lemma; value_no_step made structurally recursive
(a formed echo is a value iff its residue is)
Capstone theorems (the echo-types content, realized in Tangle):
- echo_lower_collapses — every closed braid lowers to identity (the loss)
- echo_residue_recovers — residue recovers the original braid (reversibility)
- echo_distinguishes_collapsed — distinct braids collapse to the same identity
but keep distinct residues (Tangle form of no-section / sigma-distinguishes)
- echo_roundtrip_typed — the round-trip is well-typed
Docs: PROOF-NARRATIVE §2.5 (echo-types feature), audit note updated from
NOT-RELEVANT to integrated; PROOF-NEEDS TG-10 row (LANDED).
https://claude.ai/code/session_01PgHpCFzwYB7Qy9L6kmR8CE
`Pipeline`, `Close`, `Add`, `Eq`, plus the **echo-types fragment**
43
+
(`EchoClose`, `Lower`, `Residue` with type former `Echo[ρ,τ]`). 16 typing
44
+
rules, 31 step rules. All four theorems cover the echo fragment (TG-10).
43
45
44
46
## What remains
45
47
@@ -56,6 +58,7 @@ Cross-referenced to [PROOF-NARRATIVE.md §3](PROOF-NARRATIVE.md#3-remaining-obli
56
58
| TG-7 |`Step.eqBraids` decides braid-group equivalence (not list equality) | ALG / DOM | OCaml + Lean 4 | P2 | 2w | NOT STARTED (current impl is soundness-floor, not completeness) |
57
59
| TG-8 | Each dialect (braid-calculus, quantum-circuit, skein-algebra, string-diagram, virtual-knot) is a conservative extension of core | TP | Lean 4 per-dialect | P3 | 1w each | NOT STARTED |
58
60
| TG-9 | LSP diagnostics are a subset of `HasType` failures (no LSP-only diagnostics) | INV | Audit + refactor | P2 | 1d | NOT STARTED |
61
+
| TG-10 | Echo-types integrated into the type system: `Echo[ρ,τ]` former + `echoClose`/`lower`/`residue`, with Progress/Preservation/Determinism/TypeSafety extended to cover them and the non-injectivity / residue-recovery capstones proven | TP / DOM | Lean 4 | P1 | — |**LANDED** (`proofs/Tangle.lean` §ECHO-TYPES) |
59
62
60
63
For full per-obligation statements, _why valuable_, and the
61
64
assumptions each rests on, see PROOF-NARRATIVE.md.
0 commit comments