structure
Hex.GraphIso.Nauty.Max.SweepInput
{n k : Nat}
(G : Colored n k)
(ctx : Ctx n)
(tcLevel fuel cfuel : Nat)
(first : Bool)
(level numcells tc tv1 : Nat)
(cursor : Option Nat)
(cell : VSet n)
(index : Nat)
(st : Search n)
(l : Loop n)
(bs fs : List Nat)
(parents : Parents n)
:
A sweep starts before its first leaf or resumes with both comparisons initialized. Both cases retain coverage in the original target window.
- node : Frame.Valid G l.node
- partition : SearchOk G level numcells st
- target : Generic.Target (fun (st : Search n) => st) level tc cell st
- cursor_fuel : Generic.CursorFuel n cfuel cursor
- path : PathInv G ctx level st
- choice : Loop.Choice ctx tcLevel l (SearchState.key ctx bs st)
- phase : first = true ∧ bs = [] ∧ fs = [] ∧ st = (Loop.prepare ctx tcLevel l).snd.snd.snd.snd ∧ cell = (Loop.prepare ctx tcLevel l).snd.snd.fst ∧ cursor = cell.nextElem none ∧ index = 0 ∨ SweepPre G ctx tcLevel first level numcells tc tv1 cursor cell st ∧ Comparison ctx (Loop.codes ctx l) bs fs st ∧ (st.compCanon ≤ 0 ∨ first = false ∧ cursor.isSome = true)
- coverage : CellCover ctx tcLevel (n - level) level numcells tc (Loop.prepare ctx tcLevel l).snd.snd.snd.fst (Loop.codes ctx l) (Loop.prepare ctx tcLevel l).snd.snd.snd.snd (Remaining cursor cell) (SearchState.key ctx bs st)
- canonical : CanonGuide level tc (Loop.prepare ctx tcLevel l).snd.snd.snd.snd (Loop.key ctx tcLevel l) (SearchState.key ctx bs st) st
- scope : Scope G ctx tcLevel level (Loop.codes ctx l) bs st parents
Instances For
def
Hex.GraphIso.Nauty.Max.keyContract
{n k : Nat}
(G : Colored n k)
(tcLevel : Nat)
:
Generic.Contract (Search n) n
The maximum contract uses ghost incumbent codes at entry and a settled executable incumbent at return. Each nonlocal witness names a frozen ancestor subtree rather than the current child by assumption.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Hex.GraphIso.Nauty.Max.contract
{n k : Nat}
(G : Colored n k)
(tcLevel : Nat)
:
Generic.Contract (Search n) n
The single recursive contract combines key bounds with preservation of every accumulated generator at each surviving first ancestor.
Equations
- One or more equations did not get rendered due to their size.