Commit b1f10a6
committed
Add Echo-comp-iso: accumulation law for echo composition
Formalises the composition iso from docs/echo-types/composition.md §1:
Echo (g ∘ f) y ≃ Σ B (λ b → Echo f b × (g b ≡ y))
Four names land in Echo.agda:
Echo-comp-iso-to : Echo (g ∘ f) y → Σ B (Echo f b × g b ≡ y)
Echo-comp-iso-from : Σ B (Echo f b × g b ≡ y) → Echo (g ∘ f) y
Echo-comp-iso-from-to : from ∘ to ≡ id on Echo (g ∘ f) y
Echo-comp-iso-to-from : to ∘ from ≡ id on Σ B (Echo f b × g b ≡ y)
`from` pattern-matches `refl` on the internal echo-equality to pin
the intermediate b to `f x`; after that, both round-trips are
definitional so the proof body is a single refl. This passes
`--without-K` because the refl-pattern determines a pattern variable
(b) from a computation (f x) rather than reducing a reflexive
equation on two matching variables.
Pinned in Smoke.agda. Full suite + Smoke both exit 0. No postulates.
This is the base accumulation law; downstream conjectures stated in
composition.md §Q1–Q6 (2-category coherence, pentagon, cancellation
under iso vs section, approximate-echo tolerance calculus,
decoration-commuting, recovery interaction) remain open.
https://claude.ai/code/session_01JRLz84fAaWvRBKyXuc4tyK1 parent 8b8fc03 commit b1f10a6
2 files changed
Lines changed: 45 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
10 | 21 | | |
11 | 22 | | |
12 | 23 | | |
| |||
0 commit comments