From 66a6c0c24f2abcf2a9e4937b1398335f7c418547 Mon Sep 17 00:00:00 2001 From: CommaBot Date: Tue, 1 Dec 2026 01:59:45 +0000 Subject: [PATCH 1/2] proofs(aarch64): re-extract Fl4CoreA64 after #147 (VGICMaintenance IDX = -1) Mechanical re-extraction of proofs/Fl4CoreA64/Funs.lean on main (c98a08b1) with pinned Aeneas nightly-2026.11.14-0d21a9e after #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. --- proofs/Fl4CoreA64/Funs.lean | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/proofs/Fl4CoreA64/Funs.lean b/proofs/Fl4CoreA64/Funs.lean index a27b11f40..ba32a397b 100644 --- a/proofs/Fl4CoreA64/Funs.lean +++ b/proofs/Fl4CoreA64/Funs.lean @@ -15247,7 +15247,9 @@ def faults.set_mrs_fault then if w1 != 0#u64 then msg.set_mr machineStoreInst s receiver buf 0#u64 w0 - else ok (0#u64, s) + else + msg.set_mr machineStoreInst s receiver buf 0#u64 + core.num.U64.MAX else if ty = fl4_abi.consts.fault.VPPIEvent then msg.set_mr machineStoreInst s receiver buf 0#u64 w0 From d030bea436c851b97e7b3dd7ba547469f8c7df53 Mon Sep 17 00:00:00 2001 From: CommaBot Date: Tue, 1 Dec 2026 11:53:09 +0900 Subject: [PATCH 2/2] proofs(aarch64): adapt the A64 proofs to set_mrs_fault's IDX = -1 word (#147) After #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 --- proofs/Fl4ProofsA64/P1/MdbXferL.lean | 2 +- proofs/Fl4ProofsA64/P1/QueueXfer.lean | 2 +- proofs/Fl4ProofsA64/P1/QueueXferFoot.lean | 2 +- proofs/Fl4ProofsA64/P2/ProgGenVf11.lean | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/proofs/Fl4ProofsA64/P1/MdbXferL.lean b/proofs/Fl4ProofsA64/P1/MdbXferL.lean index b1e0cf702..b4b9c1665 100644 --- a/proofs/Fl4ProofsA64/P1/MdbXferL.lean +++ b/proofs/Fl4ProofsA64/P1/MdbXferL.lean @@ -315,7 +315,7 @@ theorem faults.set_mrs_fault.gx {A : Type _} {ar : machine.Arch A} {s : S} {a : split · split · gml - · exact (WP.spec_ok _).2 h + · gml split · gml · exact (WP.spec_ok _).2 h diff --git a/proofs/Fl4ProofsA64/P1/QueueXfer.lean b/proofs/Fl4ProofsA64/P1/QueueXfer.lean index b8071db5a..1f49b0dac 100644 --- a/proofs/Fl4ProofsA64/P1/QueueXfer.lean +++ b/proofs/Fl4ProofsA64/P1/QueueXfer.lean @@ -763,7 +763,7 @@ theorem faults.set_mrs_fault.xs {A : Type _} {ar : machine.Arch A} (hA : P0.Arch split · split · exact set_mr_last h hr hb (by simp) - · exact (WP.spec_ok _).2 h + · exact set_mr_last h hr hb (by simp) split · exact set_mr_last h hr hb (by simp) · exact (WP.spec_ok _).2 h diff --git a/proofs/Fl4ProofsA64/P1/QueueXferFoot.lean b/proofs/Fl4ProofsA64/P1/QueueXferFoot.lean index cc7383222..4a29828ee 100644 --- a/proofs/Fl4ProofsA64/P1/QueueXferFoot.lean +++ b/proofs/Fl4ProofsA64/P1/QueueXferFoot.lean @@ -679,7 +679,7 @@ theorem faults.set_mrs_fault.xsf {A : Type _} {ar : machine.Arch A} (hA : P0.Arc split · split · exact set_mr_lastF h hr hb (by simp) - · exact (WP.spec_ok _).2 h + · exact set_mr_lastF h hr hb (by simp) split · exact set_mr_lastF h hr hb (by simp) · exact (WP.spec_ok _).2 h diff --git a/proofs/Fl4ProofsA64/P2/ProgGenVf11.lean b/proofs/Fl4ProofsA64/P2/ProgGenVf11.lean index 2f921d4fe..675afb715 100644 --- a/proofs/Fl4ProofsA64/P2/ProgGenVf11.lean +++ b/proofs/Fl4ProofsA64/P2/ProgGenVf11.lean @@ -305,7 +305,7 @@ variable {S : Type} {A : Type} (mS : machine.Store S) (mA : machine.Arch A) if w1 != 0#u64 then do R.msg.set_mr receiver buf 0#u64 w0 else do - pure (0#u64) + R.msg.set_mr receiver buf 0#u64 core.num.U64.MAX else do if ty = fl4_abi.consts.fault.VPPIEvent then do R.msg.set_mr receiver buf 0#u64 w0