Commit eca73c7
theory: EchoApprox composition rung — first slice (retract direction)
Extends `proofs/agda/EchoApprox.agda` with the first slice of the
axis-2 composition rung from the design note (§7 obligations 2 + 6,
plus the canonical-split retract direction).
Obligations landed:
* `echo-strict→approx` (§7 #2) — general strict ⇒ zero-tolerance
approximate. Generalises `echo-approx-intro` from own-fibre points
(`f x`) to arbitrary `y` reached via a strict echo `(x, p : f x ≡ y)`.
One extra `subst` along `p` over the existing `dist-self` path.
* `echo-approx-comp-sound` (§7 #6) — sound RHS-to-LHS direction of
the retract shape from `composition.md` §Q3 / axis-2 design note §5.
Unpacks the existential and calls `echo-approx-compose`.
* `echo-approx-comp-retract-to` — canonical-split LHS → RHS-Σ section
of the retract: picks `b := f x`, `ε₁ := zero`, `ε₂ := ε`. Uses
`echo-approx-intro` for the inner echo and the original bound for
the outer.
* `echo-approx-comp-retract-A` — A-component round-trip
`proj₁ ∘ sound ∘ retract-to ≡ proj₁`, proved by `refl`. Witnesses
the retraction direction holding definitionally on the A-component,
as the design note (§5) predicts.
Obligations deferred (out of scope for this rung):
* §7 #7 zero-collapse under separation (`Separated → EchoR zero f y
→ Echo f y`) — needs a separation predicate on the pseudo-metric
record that callers can opt into.
* §7 #8 axis-1 shadow agreement — cross-axis classification, separate
rung.
* Full retract B-component and tolerance-budget round-trip — needs a
`+`-left-identity axiom on `Tolerance` (`zero + ε ≡ ε`) which the
current record does not supply. Adding it is a separate decision
(it commits the carrier to a left-unital monoid, not just an
ordered-+-monotone-monoid).
* Lipschitz generalisation (`L_g ≠ 1`) — needs scalar multiplication
on `Tol`.
Docs updated:
* `docs/echo-types/composition.md` §Q3 — promoted from "entirely
speculative" to landed-retract-shape with the deferred items called
out.
* `docs/echo-types/roadmap.md` — new "landed" entry for the
composition rung first slice.
Invariants preserved: `--safe --without-K`, no postulates, no escape
pragmas, funext untouched. `Smoke.agda` already pins `module Approx`
following the existing convention (per-lemma pins inside parameterised
modules require instantiation, which the project does not do for
EchoApprox).
Build: `LC_ALL=C.UTF-8 agda -i proofs/agda proofs/agda/All.agda` and
`... Smoke.agda` both exit 0.
Refs `docs/echo-types/roadmap.md` Axis 2 entry.
Refs `docs/echo-types/composition.md` §Q3.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 482c7a9 commit eca73c7
3 files changed
Lines changed: 164 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
155 | 174 | | |
156 | 175 | | |
157 | 176 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
95 | 111 | | |
96 | 112 | | |
97 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
19 | 29 | | |
20 | 30 | | |
21 | 31 | | |
22 | 32 | | |
23 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
24 | 47 | | |
25 | 48 | | |
26 | 49 | | |
27 | 50 | | |
28 | 51 | | |
29 | | - | |
| 52 | + | |
30 | 53 | | |
31 | 54 | | |
| 55 | + | |
| 56 | + | |
32 | 57 | | |
33 | 58 | | |
34 | 59 | | |
| |||
89 | 114 | | |
90 | 115 | | |
91 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
92 | 139 | | |
93 | 140 | | |
94 | 141 | | |
| |||
139 | 186 | | |
140 | 187 | | |
141 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
0 commit comments