Commit c13f307
agda(truncation): generic echo-not-prop + corollaries (set-1 Q2.1)
New module proofs/agda/EchoTruncation.agda. Generalises the
pointwise distinctness proofs scattered across the example modules
into a single theorem:
echo-not-prop : (f : A → B) (x1 x2 : A)
(p1 : f x1 ≡ y) (p2 : f x2 ≡ y) →
x1 ≢ x2 → ¬ isProp (Echo f y)
plus the underlying one-liner echo-witnesses-distinct (factoring
out the cong-proj₁ step) and the witness-form
preimages⇒distinct-echoes returning two distinct echoes.
Recovers the existing pointwise lemmas as corollaries, one per
non-injective example f:
* CollapseExample.echo-true≢echo-false
(collapse : Bool → ⊤, EchoCharacteristic)
* Square9Example.echo-plus3≢echo-minus3
(square9 : SignedNine → ℕ, EchoExamples)
* TropicalExample.echo-a≢echo-b
(score : Candidate → ℕ, EchoTropical)
Each corollary additionally produces the not-isProp form for its f.
Strengthens the truncation argument (one of the two load-bearing
distinctness arguments post-EI-2): every existing pointwise proof
now factors through one generic statement.
Independence: standalone module; no existing file modified. Wiring
into All.agda + Smoke.agda + import-the-generic-from-the-examples
deferred to consolidation per the set brief.
Notes for verification:
* Substitution flagged in-file: the brief named carrier files
TropicalArgmin.agda / EpistemicUpdate.agda / LinearErasure.agda
which do not exist; closest existing carriers used instead
(EchoTropical / EchoCharacteristic / EchoExamples).
* Done-test (`agda --safe EchoTruncation.agda` typechecks) was NOT
run in this session — agda is not installed in any environment
available to the agent (Windows native, Ubuntu WSL, AlmaLinux
WSL). Please verify locally before merge.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ab78dbd commit c13f307
1 file changed
Lines changed: 144 additions & 0 deletions
| 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 | + | |
0 commit comments