OAI/Computability/WLIdentification/GraphEnumeration.lean
24 declarations, 0 contain sorry, 0 declared as axioms
- def
OAI.WLIdentification.NumericGraph.edgeline 10Source documentation
Row-major access, with a total default outside the matrix.
def edge (n : ℕ) (W : Word) (i j : ℕ) : Bool := W[i*n+j]?.getD false
Mentions: OAI.WLIdentification.Word
- def
OAI.WLIdentification.NumericGraph.simpleline 12 - def
OAI.WLIdentification.NumericGraph.isoline 16 - def
OAI.WLIdentification.NumericGraph.mateEdgeline 24Source documentation
A canonically normalized mate: every simple graph occurs among these masks, while diagonal/asymmetric mask bits do not admit malformed graphs.
def mateEdge (n mask i j : ℕ) : Bool := …
- def
OAI.WLIdentification.NumericGraph.mateline 27 - theorem
OAI.WLIdentification.WordExpressions.BoolPoly.eqtestline 34 - theorem
OAI.WLIdentification.WordExpressions.BoolPoly.propEqline 41 - theorem
OAI.WLIdentification.NumericGraph.edge_polyline 52 - theorem
OAI.WLIdentification.NumericGraph.simple_polyline 57 - theorem
OAI.WLIdentification.NumericGraph.iso_polyline 66 - theorem
OAI.WLIdentification.NumericGraph.mateEdge_polyline 84 - theorem
OAI.WLIdentification.NumericGraph.mate_polyline 92 - theorem
OAI.WLIdentification.NumericGraph.rows_entryline 103Source documentation
Entries of a rectangular row-major serialization.
theorem rows_entry (n m : ℕ) (f : Fin n → Fin m → Bool) (i : Fin n) (j : Fin m) : (((List.ofFn fun a => List.ofFn (f a)).flatten)[i.val*m+j.val]?).getD false = f i j := by … - theorem
OAI.WLIdentification.NumericGraph.edge_matrixWordline 118 - theorem
OAI.WLIdentification.NumericGraph.simple_trueline 121 - abbrev
OAI.WLIdentification.NumericGraph.ofWordline 132 - theorem
OAI.WLIdentification.NumericGraph.simple_matrixWordline 138 - def
OAI.WLIdentification.NumericGraph.mateGraphline 142 - theorem
OAI.WLIdentification.NumericGraph.edge_mateline 148 - def
OAI.WLIdentification.NumericGraph.numberline 157Source documentation
Little-endian packing, used solely for proving exhaustive mask coverage.
def number : Word → ℕ | [] => 0 | b::w => Nat.bit b (number w)
Mentions: OAI.WLIdentification.Word
- theorem
OAI.WLIdentification.NumericGraph.number_ltline 161 - theorem
OAI.WLIdentification.NumericGraph.testBit_numberline 168 - theorem
OAI.WLIdentification.NumericGraph.mateGraph_coversline 177 - theorem
OAI.WLIdentification.NumericGraph.iso_correctline 192