|
3 | 3 |
|
4 | 4 | toc::[] |
5 | 5 |
|
6 | | -== 1. Nearest existing constructions |
| 6 | +== 1. Nearest existing construction |
7 | 7 |
|
8 | 8 | The nearest cubical-side systems for this repository are: |
9 | 9 |
|
10 | 10 | * Cubical Agda: Agda's built-in `--cubical` mode plus the separate |
11 | | - Cubical Agda library. |
| 11 | + Cubical Agda library, supplying first-class path types, higher |
| 12 | + inductive types, and a definitional univalence principle. |
12 | 13 | * `RedPRL`: a tactic-oriented assistant for computational Cartesian |
13 | 14 | cubical type theory. |
14 | 15 | * `redtt` and `cooltt`: experimental cubical proof assistants / |
15 | | - typecheckers. |
| 16 | + typecheckers in the same family. |
16 | 17 |
|
17 | 18 | For this repository, Cubical Agda is the closest operational neighbour: |
18 | | -it preserves the Agda language and keeps the migration cost lower than a |
19 | | -move to a different prover. |
| 19 | +it preserves the Agda language and would keep the migration cost lower |
| 20 | +than a move to a different prover. The relevant cubical construction |
| 21 | +itself is the same sigma-of-equation, `Σ x , (f x = y)`, but read |
| 22 | +against path equality rather than `Relation.Binary.PropositionalEquality`. |
20 | 23 |
|
21 | | -== 2. What do they add? |
| 24 | +== 2. What do echo types add? |
22 | 25 |
|
23 | | -* First-class path/cubical equality and higher-dimensional structure. |
24 | | -* Higher inductive and quotient-like reasoning that plain |
25 | | - `--safe --without-K` Agda does not provide directly. |
26 | | -* A plausible route for roadmap item `R2` in `roadmap.adoc`: treating |
27 | | - indistinguishability with equivalence-aware identity rather than only |
28 | | - propositional/set-level relations. |
| 26 | +. *Plain intensional setting, deliberately.* The Agda development uses |
| 27 | + `--safe --without-K` and keeps `_≡_` as ordinary |
| 28 | + propositional equality. `EchoCharacteristic.echo-true≢echo-false` |
| 29 | + exploits exactly that: it is a disequality of two inhabitants of the |
| 30 | + same fiber that a cubical reader, working up to higher equivalence, |
| 31 | + would not recover automatically. The retained witness is meaningful |
| 32 | + because the equality is _not_ identifying it. |
| 33 | +. *Composition machinery proved by `refl`/`cong`/`trans`.* The |
| 34 | + recently-landed `Echo-comp-iso-{to, from, from-to, to-from}` in |
| 35 | + `proofs/agda/Echo.agda` gives a base-accumulation isomorphism |
| 36 | + `Echo (g ∘ f) y ≃ Σ b. Echo f b × (g b ≡ y)` directly in plain |
| 37 | + Agda. `cancel-iso-{to, from}` and the projection-pentagon lemmas |
| 38 | + `Echo-comp-iso-pent-{B, echo}` follow the same pattern. A cubical |
| 39 | + setting would supply more powerful tools (path induction, transport |
| 40 | + along univalence) but is not _required_ for these statements; they |
| 41 | + hold without higher-dimensional machinery. |
| 42 | +. *Residue / graded / linear / epistemic stack.* `EchoResidue`, |
| 43 | + `EchoGraded`, `EchoLinear`, `EchoEpistemic`, `EchoIntegration` build |
| 44 | + the structured-loss hierarchy without HITs, truncations, or path |
| 45 | + algebra. A cubical reformulation would not, by itself, supply this |
| 46 | + stack; it would be a re-host of content that already lives in plain |
| 47 | + Agda. |
29 | 48 |
|
30 | | -== 3. What do they _not_ add? |
| 49 | +== 3. What do echo types _not_ add? |
31 | 50 |
|
32 | | -* No automatic reuse guarantee for the current Buchholz work. Moving to |
33 | | - `RedPRL`, `redtt`, or `cooltt` is a prover migration, not a local |
34 | | - refactor. |
35 | | -* No evidence yet that the blocked direct same-binder route in plain |
36 | | - Agda disappears automatically in a cubical setting. |
37 | | -* No requirement for the current echo-types evidence base, which still |
38 | | - compiles in plain Agda with the standard library. |
| 51 | +* No path/cubical equality, no higher-dimensional structure, no HITs. |
| 52 | +* No quotient _types_, no automatic respect-of-relations through |
| 53 | + univalence. |
| 54 | +* No direct route for roadmap item `R2` of `roadmap.adoc` |
| 55 | + (equivalence-aware indistinguishability), which is plausibly best |
| 56 | + expressed cubically. That work is tracked as a future migration, not |
| 57 | + as a current claim. |
| 58 | +* No reuse guarantee for the Buchholz / ordinal track if the prover |
| 59 | + changes. Moving to `RedPRL`, `redtt`, or `cooltt` would be a prover |
| 60 | + migration rather than a local refactor. |
39 | 61 |
|
40 | | -== 4. Working decision |
| 62 | +== 4. Honest risk to the distinction |
41 | 63 |
|
42 | | -* Active repository tooling stays Agda-first. |
43 | | -* Optional exploratory extension: Agda `--cubical` plus the Cubical |
44 | | - Agda library. |
45 | | -* `RedPRL`, `redtt`, and `cooltt` are tracked as adjacent references, |
46 | | - not installed or required for normal builds. |
| 64 | +The sharpest cubical-side reading is: "every echo theorem is a |
| 65 | +shadow of a cubical statement; what you call an `_≡_` proof is a |
| 66 | +0-dimensional path, and your insistence on intensional equality is a |
| 67 | +self-imposed restriction without mathematical content." Under that |
| 68 | +reading, echo types are just fibers in plain Agda, awaiting a port to |
| 69 | +a cubical assistant where the proofs would be cleaner. |
47 | 70 |
|
48 | | -== 5. Why this matters here |
| 71 | +The reply is that the deliberately-intensional setting is _what |
| 72 | +generates the structured-loss content_: |
| 73 | +`echo-true≢echo-false`, `state₁≢state₂`, and |
| 74 | +`no-section-collapse-to-residue` rely on intensional equality being |
| 75 | +non-trivial. A cubical port would have to add explicit truncation |
| 76 | +levels to recover the same proof-relevance distinctions, at which |
| 77 | +point the echo development reappears as a 0-truncated specialisation |
| 78 | +of the cubical theory. The framing question — "study fibers in plain |
| 79 | +Agda with structured loss" vs. "study fibers cubically with chosen |
| 80 | +truncation" — is editorial; both are coherent. |
49 | 81 |
|
50 | | -Cubical systems may matter later for quotient-like or |
51 | | -equivalence-sensitive extensions of echo types, especially roadmap item |
52 | | -`R2`. They are not part of the evidential base for the current identity |
53 | | -claim. That claim still stands or falls on the plain-Agda development |
54 | | -already in the repository. |
| 82 | +The current development asserts that the plain-Agda framing is the |
| 83 | +right base camp, with cubical extensions as an optional later step. |
55 | 84 |
|
56 | | -== 6. References |
| 85 | +== 5. Verdict for Gate 1 |
| 86 | + |
| 87 | +Survives. Cubical systems are an _extensional richer_ neighbour rather |
| 88 | +than a refutation: they could host an echo development with stronger |
| 89 | +equality, but they do not subsume the structured-loss machinery, and |
| 90 | +the bare type former `Σ x , f x = y` is identical content under either |
| 91 | +reading. The identity claim does not stand on cubical avoidance; it |
| 92 | +stands on the residue / graded / linear / epistemic stack and on the |
| 93 | +composition / cancellation / pentagon rungs proved without higher-path |
| 94 | +machinery. |
| 95 | + |
| 96 | +== References |
57 | 97 |
|
58 | 98 | * Cubical Agda library: `https://github.com/agda/cubical` |
59 | 99 | * `RedPRL` family: `https://redprl.org/` |
0 commit comments