Skip to content

proofs(aarch64): re-extract Fl4CoreA64 and adapt proofs after #147 - #148

Merged
losfair merged 2 commits into
losfair:mainfrom
CommaBot:extract/a64-147-vgic-maint
Dec 1, 2026
Merged

losfair merged 2 commits into
losfair:mainfrom
CommaBot:extract/a64-147-vgic-maint

Conversation

@CommaBot

@CommaBot CommaBot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Mechanical AArch64-only re-extraction of proofs/Fl4CoreA64/Funs.lean on main (c98a08b1) using pinned Aeneas nightly-2026.11.14-0d21a9e after #147 (VGICMaintenance IDX = -1), plus the 4-line AArch64 proof adaptation.

Re-extraction (commit 66a6c0c24)

  • proofs/Fl4CoreA64/Funs.lean only (+3/−1 lines inside faults.set_mrs_fault); Types.lean, FunsExternal*.lean, and x86_64 proofs/Fl4Core/ are completely unchanged.

Proof adaptation (commit d030bea43)

The re-extracted faults.set_mrs_fault now writes u64::MAX to message register 0 when a VGICMaintenance fault has no valid index. Before, it returned ok (0, s) without writing anything. The AArch64 proofs that case-split on this arm are adapted in four lines:

  • proofs/Fl4ProofsA64/P2/ProgGenVf11.lean: regenerated with xtask/scripts/gen_prog.py --arch aarch64 Vf syscall.handle_vm_fault_local, not edited by hand. Only the tree R.faults.set_mrs_fault changes: its invalid-index branch is now R.msg.set_mr receiver buf 0#u64 core.num.U64.MAX.
  • proofs/Fl4ProofsA64/P1/QueueXfer.lean (faults.set_mrs_fault.xs), proofs/Fl4ProofsA64/P1/QueueXferFoot.lean (faults.set_mrs_fault.xsf) and proofs/Fl4ProofsA64/P1/MdbXferL.lean (faults.set_mrs_fault.gx): the invalid-index case now uses the same one-set_mr step as the valid-index case (set_mr_last / set_mr_lastF / gml) instead of the ok step.

No theorem statement changed, and no generator, kernel or x86_64 file changed. The VgicMaintenance cases in P1/QueueRecv.lean cover set_fault, not set_mrs_fault, so they needed no change.

Verification (on afkprover)

  • Module build of the 25 users of set_mrs_fault: 0 errors, 0 sorry, JOBS 4629/4630.
  • Full root build of Fl4ProofsA64: 0 errors, 0 sorry, JOBS 5715/5717.
  • #print axioms on the 8 changed declarations and their direct users (set_mrs_fault.xs/.xsf/.gx, do_fault_transfer.xs/.xsf/.gx, R.faults.set_mrs_fault_eq/_nz): each depends only on propext, Classical.choice and Quot.sound (0 sorryAx).
  • python3 xtask/scripts/port_p2_a64.py --check proofs: exits 0.

CommaBot and others added 2 commits December 1, 2026 02:00
…ance IDX = -1)

Mechanical re-extraction of proofs/Fl4CoreA64/Funs.lean on main (c98a08b)
with pinned Aeneas nightly-2026.11.14-0d21a9e after losfair#147.

Only faults.set_mrs_fault changes (+3/-1 lines): the w1 == 0 branch of
VGICMaintenance now calls msg.set_mr(..., 0, core.num.U64.MAX) instead of
returning ok (0, s). Types.lean, FunsExternal*.lean, and x86_64 Fl4Core
are completely unchanged.
losfair#147)

After losfair#147 the AArch64 extraction's faults.set_mrs_fault writes one message
word (msg.set_mr ... 0 core.num.U64.MAX) in the VGICMaintenance arm when the
fault index is not valid, instead of returning ok (0, s) without a write.

- P2/ProgGenVf11.lean: regenerated with
  `xtask/scripts/gen_prog.py --arch aarch64 Vf syscall.handle_vm_fault_local`
  (not hand-edited); the only change is R.faults.set_mrs_fault's
  invalid-index branch, now `R.msg.set_mr receiver buf 0#u64 core.num.U64.MAX`.
- P1/QueueXfer.lean (faults.set_mrs_fault.xs), P1/QueueXferFoot.lean
  (faults.set_mrs_fault.xsf), P1/MdbXferL.lean (faults.set_mrs_fault.gx):
  the VGICMaintenance invalid-index case is now discharged by the same
  one-`set_mr` step as the valid-index case (set_mr_last / set_mr_lastF / gml)
  instead of the `ok` step.

No theorem statement changes; no generator or kernel changes.
Fl4ProofsA64 root build: 0 errors, 0 sorry; #print axioms on the changed
declarations: propext, Classical.choice, Quot.sound only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@CommaBot
CommaBot marked this pull request as ready for review December 1, 2026 02:56
@losfair
losfair merged commit 68c1f64 into losfair:main Dec 1, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants