Skip to content

feat(echo): Option B value shape + product type + echoAdd (structured loss, generalized)#43

Merged
hyperpolymath merged 4 commits into
mainfrom
claude/hopeful-fermi-iXnba
Jun 12, 2026
Merged

feat(echo): Option B value shape + product type + echoAdd (structured loss, generalized)#43
hyperpolymath merged 4 commits into
mainfrom
claude/hopeful-fermi-iXnba

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Jun 12, 2026

Copy link
Copy Markdown
Owner

Echo-types proof work on proofs/Tangle.leanthe structured-loss generalization, complete. Four commits, each independently green under pinned v4.14.0, no sorry/axiom/admit.

  1. Option B value shape (4296c0a) — echoVal residue result is the canonical formed echo; echoClose is a redex reducing into one; lower/residue are the two generic projections; capstones over StepStar.
  2. Product type (b274995) — Ty.prod + pair/fst/snd, full Progress/Preservation/Determinism/infer.
  3. echoAdd (b274995) — add is lossy; echoAdd n₁ n₂ ↝ echoVal (pair n₁ n₂) (n₁+n₂). Capstone echoAdd_distinguishes: 1+3 and 2+2 both lower to 4, residues distinct.
  4. echoEq (3a5e9a3) — eq is lossy; residue = operand pair, result = bool. Capstone echoEq_distinguishes: 1≟2 and 3≟4 both lower to false, residues distinct.

So structured loss now spans all three of Tangle's lossy operations (close, add, eq), each with a recoverable residue and a non-injectivity theorem — the echo-types thesis realized across the language's lossy surface.

Verification

  • lean Tangle.lean0 errors; banned-token grep clean.
  • #print axioms: metatheory uses only propext/Quot.sound; all six echo capstones depend on zero axioms.

Note

The red analyze (javascript-typescript) check is an unrelated CodeQL default-setup misconfiguration (analyzes JS/TS on a repo that bans them) — a repo-settings item, not fixable from this branch. The Lean oracle is green on every commit.

Next track (separate): TG-1 (let, full de Bruijn).

🤖 Generated with Claude Code

@hyperpolymath hyperpolymath changed the title refactor(echo): Option B — uniform echoVal; lower/residue as projections; capstones over Step* feat(echo): Option B value shape + product type + echoAdd (structured loss, generalized) Jun 12, 2026
@hyperpolymath hyperpolymath marked this pull request as ready for review June 12, 2026 22:38
@hyperpolymath hyperpolymath merged commit bc2a0e6 into main Jun 12, 2026
12 of 13 checks passed
@hyperpolymath hyperpolymath deleted the claude/hopeful-fermi-iXnba branch June 12, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants