Commit aa49338
proof: complete PQ1/PQ4/PQ6/PQ7/PQ8 — all 8 theorems now verified
PQ1 (CarriesInvariantExtended.agda): extends the base CarriesInvariant
to all 13 format analyzers (Rust, Python, JSONSchema, Protobuf, Bebop,
FlatBuffers, MessagePack, Avro, CapnProto, Thrift, ReScript, GraphQL,
TOML) via format-to-ir mapping. 169 analyzer-pair combinations covered
parametrically.
PQ4 (AdapterSynthesis.agda): proves adapter synthesis is total (always
produces an adapter), preserves CarriesInvariant (no silent field drops),
and reports the correct worst-of-fields transport class. Composition
of two correct adapters proven correct by reference to CarriesInvariant.
PQ6 (BusinessClassLoss.agda): exhaustively proves all 21 Business-class
primitive pairs are provably lossless (0-bit loss). Both directions of
the Business ↔ SafeWidening bi-implication proven. Informal "98%
fidelity" label shown to be conservative: formal analysis gives 100%.
PQ7 (idris2/NoPanics.idr): formal audit certificate for all 29 Rust
crates; allCratesCompliant type-checks iff every constructor maps to
Compliant. References commit 4231afb (2026-02-04) which completed the
unwrap removal.
PQ8 (idris2/BufferSafety.idr): SafeBuffer n type with Fin n indices
proves out-of-bounds access is a type error. readByte/writeByte/slice/
append all total. writeReadRoundtrip and appendReadLeft correctness
lemmas proven. No believe_me; no unsafe patterns.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 9f9fa22 commit aa49338
7 files changed
Lines changed: 1316 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
174 | 176 | | |
175 | | - | |
| 177 | + | |
176 | 178 | | |
177 | | - | |
178 | | - | |
179 | | - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
183 | | - | |
| 185 | + | |
184 | 186 | | |
185 | | - | |
| 187 | + | |
| 188 | + | |
186 | 189 | | |
187 | | - | |
188 | | - | |
| 190 | + | |
189 | 191 | | |
190 | 192 | | |
191 | | - | |
| 193 | + | |
192 | 194 | | |
193 | | - | |
| 195 | + | |
194 | 196 | | |
195 | | - | |
| 197 | + | |
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
199 | | - | |
200 | | - | |
201 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
202 | 204 | | |
203 | | - | |
| 205 | + | |
204 | 206 | | |
205 | 207 | | |
206 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
207 | 233 | | |
208 | 234 | | |
209 | 235 | | |
210 | 236 | | |
211 | 237 | | |
212 | 238 | | |
213 | | - | |
| 239 | + | |
214 | 240 | | |
215 | 241 | | |
216 | 242 | | |
217 | 243 | | |
218 | 244 | | |
219 | 245 | | |
220 | 246 | | |
221 | | - | |
| 247 | + | |
222 | 248 | | |
223 | | - | |
224 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
225 | 252 | | |
226 | 253 | | |
227 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
228 | 259 | | |
229 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
230 | 282 | | |
231 | 283 | | |
232 | 284 | | |
| |||
0 commit comments