Commit eacce15
theory: AntiEcho × IsArgmin tropical decomposition (#72)
## Summary
Cashes the headline claim from `/tmp/echo-types-exploration/coecho.md`
§3 ("Resolution of the EchoTropical tension") at the structural level:
`TropEcho` / `IsArgmin` decompose into Echo evidence + a Π-quantified
complement bound, with an AntiEcho-flavoured corollary exposing that
bound as a Π of negative data over the candidate set.
New module `proofs/agda/AntiEchoTropical.agda`. Neither `AntiEcho.agda`
(from #69) nor `EchoTropical.agda` is modified — the bridge stays
isolated so PR scope is tight.
### Headline theorem (both directions, both round-trips `refl`, packaged
as `_↔_`)
```agda
antiecho-tropical-decompose :
∀ (y : ℕ) → TropEcho y ↔ (Echo score y × (∀ z → y ≤ score z))
```
The forward direction projects `(x , p , bnd) ↦ ((x , p) , bnd)` — pure
Σ-re-association because the optimality factor `∀ z → y ≤ score z`
doesn't depend on `x`. The backward direction undoes it. Both
round-trips are definitionally `refl`. No decidability, no funext, no
path algebra. Packaged via stdlib `Function.Bundles._↔_` and `mk↔ₛ′`,
matching the convention from `Echo-comp-iso` / `cancel-iso`.
### `IsArgmin`-level restatement (the per-element identity)
```agda
isargmin-decompose :
∀ (x : Candidate) (y : ℕ) →
IsArgmin x y ↔ ((score x ≡ y) × (∀ z → y ≤ score z))
```
`IsArgmin` IS the product by definition, so the iso to the product is
the identity. Pinned for callers thinking in `IsArgmin`-shaped terms.
### AntiEcho-flavoured corollary (the Π-bound as a Π of misses)
The optimality factor `∀ z → y ≤ score z` is equivalent on ℕ to the
AntiEcho-shaped statement "no candidate witnesses a value strictly below
`y`":
```agda
optimality-as-antiecho-flavour-to : (∀ z → y ≤ score z) → (∀ z → score z < y → ⊥)
optimality-as-antiecho-flavour-from : (∀ z → score z < y → ⊥) → (∀ z → y ≤ score z)
```
with the small order-conversion lemmas `≤⇒¬<` / `¬<⇒≤` shipped
in-module. Composite version (Echo + Π-of-negation):
```agda
tropdecomp-antiecho-to : TropEcho y → Echo score y × (∀ z → score z < y → ⊥)
tropdecomp-antiecho-from : Echo score y × (∀ z → score z < y → ⊥) → TropEcho y
```
This is the *Π-form* AntiEcho variant from `coecho.md` §1(c)
(`AntiEcho_Π = ¬ Echo`), specialised to the strict-below stratum. The
Σ-form `AntiEcho` carrier from `AntiEcho.agda` is the witness-recording
primitive; the Π-form above is the exhaustive global statement that
names what `IsArgmin` was carrying implicitly.
### Scope notes
- Specialised to the concrete `Candidate → ℕ` setting of
`EchoTropical.agda`. A generic-codomain version would need a `≤`-bearing
ordered codomain and the decidability hypothesis from `coecho.md` §3
closing remark — deferred.
- `Smoke.agda` pins all 14 headlines via `using` so silent renames or a
slide back to ad-hoc tropical decoration trips CI fast.
- `--safe --without-K` clean. No postulates. No funext. No path algebra
beyond constructor-driven trichotomy on `_≤_`/`_<_`.
### PR base / stacking
Branched from `origin/theory/antiecho-thin-slice` (so `AntiEcho` is in
scope) but **PR base is `main`** per the stacked-PR-orphan-trap policy.
The cumulative diff currently includes #69's content; when #69 merges
the diff simplifies automatically.
## Test plan
- [ ] CI runs `agda -i proofs/agda proofs/agda/All.agda` — exits 0.
- [ ] CI runs `agda -i proofs/agda proofs/agda/Smoke.agda` — exits 0.
- [ ] All 14 pinned headlines in `Smoke.agda` resolve.
- [ ] No new postulates / escape pragmas introduced.
**Note on local verification.** Settings restrictions in this sandbox
blocked local `agda` invocation on this worktree (the project's
`Bash(agda *)` allow rule did not apply to this session). Proofs are
pure Σ-currying / pattern-matching + two small ℕ order-conversion lemmas
— expected to typecheck on the existing CI gate.
## Refs
- Refs #69 — depends on the `AntiEcho` module from the AntiEcho thin
slice.
- Refs `docs/echo-types/roadmap.md` CoEcho entry ("Possibly resolves the
quantitative / structural tension hinted at by `EchoTropical`").
- Refs `/tmp/echo-types-exploration/coecho.md` §3 ("Resolution of the
EchoTropical tension") + §5 obligation 6 (`coecho-tropical-decompose`).
Does NOT Close anything. The CoEcho roadmap entry stays open until
decided by the owner; this PR cashes the structural half.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 35e1739 commit eacce15
3 files changed
Lines changed: 238 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| 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 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 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 | + | |
327 | 352 | | |
328 | 353 | | |
329 | 354 | | |
| |||
0 commit comments