Commit aa7ee25
proof(epistemic): A15 — name the write ⟶ knows ⟶ fresh chain corollaries
Three named lemmas composing the post-A11+A14 pinned chain:
* `syncImpliesKnowledge : Sync mod field old new -> Knowledge mod
field new` — names the `Observed` step.
* `writerKnowsPostWrite : (fv : FieldVersion) -> fv.field = field
-> fv.lastWriter = writer -> Knowledge writer field fv.version`
— a writer who commits to the canonical FieldVersion at the
post-write state has Knowledge at that version; the writer-identity
pin (`fv.lastWriter = writer`) flows through from WriteSync, so no
caller can claim post-write knowledge for a module it does not own
the write of.
* `knowsImpliesFresh : Knows mod field ver -> Fresh mod field ver
ver` — closes the chain: any non-trivial `Knows` witness yields a
Fresh witness at the same version. The `Unknown` branch is
dispatched via `absurd p` (the `MkKnows` precondition `ver > 0 =
True` reduces to `False = True` when ver = 0).
These are pure corollaries of A11 (WriteSync pin), A14 (Fresh pin),
and the existing `syncRestoresFresh` / `Observed` machinery — no new
constructors, no soundness change, just named composition for
downstream callers. Residual-debt note extended to record A15.
Verification: `idris2 --build src/abi/typed-wasm.ipkg` clean rebuild
22/22 modules, rc=0, zero errors. No `believe_me` / `assert_total` /
`assert_smaller` / `postulate` / `sorry` introduced; `%default total`
preserved.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent cb272bd commit aa7ee25
1 file changed
Lines changed: 56 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
345 | 395 | | |
346 | | - | |
| 396 | + | |
347 | 397 | | |
348 | 398 | | |
349 | 399 | | |
| |||
357 | 407 | | |
358 | 408 | | |
359 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
0 commit comments