Commit d9d6891
theory: AntiEcho thin slice — Σ-dual of Echo (carrier + map-over + disjointness)
Lands the first four obligations from the `coecho.md` design note as
`proofs/agda/AntiEcho.agda` (renamed `antiecho-*` per user namespace
decision 2026-05-20):
* `AntiEcho f y := Σ A (λ x → f x ≢ y)` — the carrier, the
minimal-edit-distance Σ-dual of `Echo`. Same Σ-shape, same
universe `a ⊔ b`, same proof-relevance posture as Echo; ≡ flips
to ≢ = · ≡ y → ⊥. (antiecho-def)
* `antiecho-intro : ∀ x → f x ≢ y → AntiEcho f y` — trivial pairing.
* `antiecho-disjoint : ∀ x → f x ≡ y → f x ≢ y → ⊥` — per-element
disjointness against Echo. The joint form
`Echo f y → AntiEcho f y → ⊥` with possibly distinct witnesses is
deliberately deferred (requires codomain decidability; lives in
the partition lemma).
* `antiecho-map-over : (g : A' → A) → AntiEcho (f ∘ g) y →
AntiEcho f y` — source-side covariance; misses propagate back to
the outer leg by re-applying g.
Naming decision (user, 2026-05-20). The new module is `AntiEcho`, NOT
`CoEcho`. The name `CoEcho` is already taken in
`EchoFiberTriangulation.agda` (lines 82–95) for the trivial
opposite-orientation fibre `∃ x . y ≡ f x` (Echo composed with `sym`).
That construction is a reorientation, not a dual. The negative dual
lands here under the distinct name `AntiEcho` so the two namespaces
stay fully separate. Both `EchoFiberTriangulation.CoEcho` and the new
`AntiEcho` are now pinned in `Smoke.agda`.
Deferred to follow-up slices (do NOT close anything):
* obligation 5 `antiecho-partition-dec` — needs `DecEq B` on the
codomain; lives in its own slice.
* obligation 6 `antiecho-tropical-decompose` — crosses module
boundaries (`EchoTropical.IsArgmin ≃ Echo × Π AntiEcho`) and
deserves its own slice; the design note flags this as the
structural-vs-quantitative payoff but the proof reaches beyond a
thin-slice introduction.
Build invariants held: `--safe --without-K`, zero postulates, zero
escape pragmas. New module wired into `All.agda` as `open import
AntiEcho`; headline names (`AntiEcho`, `antiecho-intro`,
`antiecho-disjoint`, `antiecho-map-over`) pinned in `Smoke.agda` via
`using` clause so a rename/deletion fails CI fast.
Verification: `agda -i proofs/agda proofs/agda/All.agda` exits 0;
the build trace lists `Checking AntiEcho` and `Checking Smoke`
without errors, confirming both the module itself and the pinned
headlines typecheck.
Refs: docs/echo-types/roadmap.md "Negative / co-echoes" entry (CoEcho
formulation). Does NOT close that entry — only the carrier + the
first three small lemmas land; the partition and tropical
decomposition obligations remain.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 482c7a9 commit d9d6891
3 files changed
Lines changed: 108 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
35 | 49 | | |
36 | 50 | | |
37 | 51 | | |
| |||
0 commit comments