Commit 8e66f14
committed
fix(proofs): repair bit-rotted WokeLang.v (Coq) + audit + CI gate
The Coq formalization `docs/proofs/verification/WokeLang.v` claimed type safety
but did NOT compile under Coq 8.18 — the same "verified but unchecked" hazard
the Lean file had, because no CI ever ran the prover.
Rot fix:
- `value_eq_dec` used `decide equality; ... apply list_eq_dec; assumption`, but
the recursive IH for the nested `list value` is no longer in scope under 8.18
("No such assumption"). Fixed with an explicit fixpoint
(`fix IH 1; ...; apply list_eq_dec; exact IH`). This was the ONLY rot; the
rest of the file (incl. the large preservation proof) then compiled.
Meticulous soundness check (Print Assumptions): NO Admitted/admit/Axiom; the
headline theorems (progress, preservation, type_safety) depend only on
`ClassicalDedekindReals.sig_forall_dec` + `functional_extensionality`, both
pulled in unavoidably by modelling floats as `R` — exactly as the header claims.
Also fixed a real latent bug + added the missing gate:
- `cap_subsumes` catch-all was `TODO: false`, so subsumption was not even
reflexive. Fixed to fall back to decidable equality (`capability_eq_dec`,
kept Opaque) and proved `cap_subsumes_refl` (axiom-free). `cap_subsumes_trans`
documented as a follow-up (needs explicit per-kind analysis).
- `.github/workflows/coq-proofs.yml` — installs Coq 8.18 (pinned ubuntu-24.04)
and runs `coqc WokeLang.v` on every push, so it cannot silently rot again.
- AUDIT.md gains a full Coq section (rot, axioms, coverage vs Lean — Coq is
AHEAD on arrays/well-founded progress, BEHIND on binops — and the
brute-force-preservation quality follow-up). .gitignore for Coq artifacts.
https://claude.ai/code/session_013wg3Mtq2QFhYi4XVw1Z6z71 parent b244755 commit 8e66f14
4 files changed
Lines changed: 134 additions & 11 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
151 | 153 | | |
152 | 154 | | |
153 | 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 | + | |
154 | 204 | | |
155 | 205 | | |
156 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
137 | | - | |
| 138 | + | |
138 | 139 | | |
139 | 140 | | |
140 | 141 | | |
| |||
1115 | 1116 | | |
1116 | 1117 | | |
1117 | 1118 | | |
1118 | | - | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
1119 | 1127 | | |
1120 | 1128 | | |
1121 | 1129 | | |
1122 | 1130 | | |
1123 | 1131 | | |
1124 | 1132 | | |
1125 | | - | |
1126 | | - | |
1127 | | - | |
| 1133 | + | |
1128 | 1134 | | |
1129 | 1135 | | |
1130 | 1136 | | |
1131 | 1137 | | |
1132 | 1138 | | |
1133 | | - | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
1134 | 1158 | | |
1135 | 1159 | | |
1136 | 1160 | | |
| |||
0 commit comments