Repository navigation
proofs(aarch64): re-extract Fl4CoreA64 and adapt proofs after #147 - #148
Merged
Merged
Conversation
…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
marked this pull request as ready for review
December 1, 2026 02:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mechanical AArch64-only re-extraction of
proofs/Fl4CoreA64/Funs.leanonmain(c98a08b1) using pinned Aeneasnightly-2026.11.14-0d21a9eafter #147 (VGICMaintenanceIDX = -1), plus the 4-line AArch64 proof adaptation.Re-extraction (commit
66a6c0c24)proofs/Fl4CoreA64/Funs.leanonly (+3/−1 lines insidefaults.set_mrs_fault);Types.lean,FunsExternal*.lean, and x86_64proofs/Fl4Core/are completely unchanged.Proof adaptation (commit
d030bea43)The re-extracted
faults.set_mrs_faultnow writesu64::MAXto message register 0 when a VGICMaintenance fault has no valid index. Before, it returnedok (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 withxtask/scripts/gen_prog.py --arch aarch64 Vf syscall.handle_vm_fault_local, not edited by hand. Only the treeR.faults.set_mrs_faultchanges: its invalid-index branch is nowR.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) andproofs/Fl4ProofsA64/P1/MdbXferL.lean(faults.set_mrs_fault.gx): the invalid-index case now uses the same one-set_mrstep as the valid-index case (set_mr_last/set_mr_lastF/gml) instead of theokstep.No theorem statement changed, and no generator, kernel or x86_64 file changed. The
VgicMaintenancecases inP1/QueueRecv.leancoverset_fault, notset_mrs_fault, so they needed no change.Verification (on
afkprover)set_mrs_fault: 0 errors, 0 sorry,JOBS 4629/4630.Fl4ProofsA64: 0 errors, 0 sorry,JOBS 5715/5717.#print axiomson 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 onpropext,Classical.choiceandQuot.sound(0sorryAx).python3 xtask/scripts/port_p2_a64.py --check proofs: exits 0.