Commit 177c272
theory: EchoApprox composition rung — first slice (retract direction) (#70)
## Summary
Extends `proofs/agda/EchoApprox.agda` with the first slice of the
axis-2 composition rung from the design note (drafted in
`/tmp/echo-types-exploration/axis2-approximate.md`, §7 obligations
2 + 6, plus the canonical-split retract direction). Refs
`docs/echo-types/roadmap.md` Axis 2 entry and
`docs/echo-types/composition.md`
§Q3 — does **not** close either.
## Obligations landed
- **`echo-strict→approx`** (§7 #2). General strict ⇒ zero-tolerance
approximate. Generalises `echo-approx-intro` from own-fibre points
to arbitrary `y` via the codomain equation `p : f x ≡ y`. One
extra `subst` along `p`.
- **`echo-approx-comp-sound`** (§7 #6). Sound RHS-to-LHS direction
of the retract shape from `composition.md` §Q3 / 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, original bound for
the outer.
- **`echo-approx-comp-retract-A`**. A-component round-trip
`proj₁ ∘ sound ∘ retract-to ≡ proj₁`, proved by `refl`. The
retraction direction holds definitionally on the A-component as
the design note (§5) predicts.
## Obligations deferred (out of this rung)
- §7 #7 separated zero-collapse — needs a separation predicate on
the `PseudoMetric` record.
- §7 #8 axis-1 shadow agreement — cross-axis classification.
- Full retract B-component and tolerance-budget round-trip — needs a
`+`-left-identity axiom on `Tolerance` (`zero + ε ≡ ε`) not in the
current record. Adding it commits the carrier to a left-unital
monoid; deferred as a separate decision.
- 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 deferred items called out.
- `docs/echo-types/roadmap.md` adds a "landed" entry for the
composition rung first slice.
## Invariants preserved
- `--safe --without-K`
- No postulates
- No escape pragmas
- Funext untouched
## Test plan
- [x] `LC_ALL=C.UTF-8 agda -i proofs/agda proofs/agda/All.agda` exits 0
- [x] `LC_ALL=C.UTF-8 agda -i proofs/agda proofs/agda/Smoke.agda` exits
0
- [x] No new `postulate`, no escape pragmas, funext not imported
- [x] `Smoke.agda` already pins `module Approx` following project
convention (per-lemma pins inside parameterised modules require
instantiation, which the project does not do for `EchoApprox`).
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 482c7a9 commit 177c272
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