Commit c01f0fa
authored
proof(L3.K): rewrite Echo.v K-free — eliminate eq_rect_eq dependency (#180)
## Summary
Main's `Echo.v` (landed via #176's bundling) still uses `dependent
destruction` (K-using) for `mode_le_trans` and `degrade_mode_comp`. This
brings the K-free version that was filed against the design branch in PR
#173 but never reached main (because #176 superseded #153).
The diff is identical to PR #173: replace `dependent destruction` with
the motive-trick K-free template from `Modality.v`.
## Changes
1. New helper `mode_le_affine_first : mode_le Affine m2 -> m2 = Affine`
(motive-trick raw match).
2. `mode_le_trans` rewritten as a `Definition` using
`mode_le_affine_first` + `eq_rect`.
3. `degrade_mode_comp` rewritten to canonicalise via
`mode_le_affine_first` + `mode_le_prop` (avoiding `dependent
destruction`).
4. Top-of-file comment changed from "Proof-debt note (axiom
dependencies)" to "K-freedom".
5. `Coq.Program.Equality` import removed.
## Verification
`Print Assumptions` on every previously-K-using or K-inheriting lemma:
| Lemma | Status |
|---|---|
| `mode_le_trans` | Closed under the global context |
| `degrade_mode_comp` | Closed under the global context |
| `degrade_mode_compose` | Closed under the global context |
| `degrade_mode_via_join` | Closed under the global context |
| `no_section_collapse_to_residue` | Closed under the global context |
Full `formal/` project (9 .v files including the m-indexed `TypingL1.v`
from #176) builds clean.
## Test plan
- [x] `coqc 8.18.0` builds `Echo.v` cleanly
- [x] Clean full-project rebuild passes — 9 .v files
- [x] `Print Assumptions` confirms K elimination
- [ ] CI green
Refs PR #173 (design-branch original), PR #176 (m-indexed has_type_l1 +
Modality.v + L2 hybrid).
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 parent 22e5a3e commit c01f0fa
1 file changed
Lines changed: 65 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
81 | 79 | | |
82 | 80 | | |
83 | | - | |
84 | 81 | | |
85 | 82 | | |
86 | 83 | | |
| |||
110 | 107 | | |
111 | 108 | | |
112 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
113 | 131 | | |
114 | | - | |
115 | | - | |
116 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
117 | 136 | | |
118 | 137 | | |
119 | 138 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
127 | 149 | | |
128 | 150 | | |
129 | 151 | | |
| |||
303 | 325 | | |
304 | 326 | | |
305 | 327 | | |
306 | | - | |
307 | | - | |
308 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
309 | 343 | | |
310 | 344 | | |
311 | 345 | | |
| |||
0 commit comments