Commit 5c94057
agda(Echo): equivalence-record packaging for cancel-iso + Echo-comp-iso
Closes docs/echo-types/composition.md §4 ("Full cancel-iso with
round-trips") via stdlib's `Function.Bundles._↔_`.
Two new headlines (pinned in Smoke.agda):
* Echo-comp-iso : (f : A → B) (g : B → C) (y : C) →
Echo (g ∘ f) y ↔ Σ B (λ b → Echo f b × g b ≡ y)
Unconditional accumulation iso, packaged from the existing
Echo-comp-iso-{to, from, from-to, to-from} via mk↔ₛ′.
* cancel-iso : (f : A → B) (g : B → C) (s : C → B)
(s-left : ∀ b → s (g b) ≡ b)
(s-right : ∀ y → g (s y) ≡ y)
(triangle₁ : ∀ b → cong g (s-left b) ≡ s-right (g b))
(triangle₂ : ∀ y → cong s (s-right y) ≡ s-left (s y))
(y : C) →
Echo (g ∘ f) y ↔ Echo f (s y)
Per-fiber cancellation equivalence, requiring both triangle
identities. Built from cancel-iso-{to, from, from-to, to-from}
via mk↔ₛ′. Each triangle is needed for the corresponding
round-trip; one implies the other in HoTT but the adjustment
is non-trivial path algebra, so both stay explicit.
Verification: agda proofs/agda/All.agda and agda proofs/agda/Smoke.agda
both exit 0 under --safe --without-K. No postulates introduced.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7b1c6fe commit 5c94057
3 files changed
Lines changed: 70 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
274 | 277 | | |
275 | 278 | | |
276 | 279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
0 commit comments