Toggling the flipped status of one edge
ProvedDirKECC1549.Asm.tgE_spectgE toggles edge (register 11): afterwards the context holds for the symmetric difference , within 40 ticks, keeping the cells TgKeep.
Context. This lemma belongs to the machine-checked word-RAM implementation of Lemma 1 (p.11): Algorithm 1 refining by small -out sets, with the deterministic local search of [GKK+26, Proposition 6] (FindOutPaths and recursive path reversals). The program is written in the structured language Stmt compiled to the published word-RAM; Run E s mem Q states that the statement s, started on mem, reaches its end in a state satisfying Q t mem' within t ticks. The input cells double as registers; they are saved at SV and read through the image ImgAt. All definitions are in the Definitions.Def_DirKECC1549_Impl_* modules.
import Definitions.Def_DirKECC1549_Impl_L1Tog
set_option autoImplicit false
open WordRAM Classical Finset
open DirKECC1549.Main DirKECC1549.Main.CostAux
open DirKECC1549 DirKECC1549.Asm
variable {w : Width} {n m : ℕ}theorem DirKECC1549.Asm.tgE_spec (E : Env) (mm orig : Memory w) (P : LP) (B : Fin m → Fin n × Fin n)
(perm : Equiv.Perm (Fin m)) (G : Finset (Fin m)) (e : Fin m) (hC : LsC P orig mm B perm G)
(h11 : (mm 11).toNat = e) :
Run E tgE mm (fun t mm' => t ≤ 40 ∧ LsC P orig mm' B perm (xorS G {e}) ∧
∀ a, TgKeep P m a → mm' a = mm a) := by sorry