Erdős 97 convex-octagon formalization: Finite Model #
@[reducible, inline]
An unbundled eight-row incidence table used by the finite certificate.
Instances For
@[reducible, inline]
A four-entry row used by the finite certificate.
Instances For
All four-element rows available at a specified centre.
Equations
- Erdos97Octagon.RawIncidence.rowOptions v = List.map List.toFinset (List.sublistsLen 4 (List.filter (fun (x : Erdos97Octagon.Vertex) => decide (x ≠ v)) (List.finRange 8)))
Instances For
Every row of an octagon incidence system occurs in the finite row list.
The zero-based SAT variable representing one directed incidence.
Equations
- Erdos97Octagon.RawIncidence.varIndex centre target = 8 * ↑centre + ↑target
Instances For
Test one bit of a packed 64-bit incidence table.
Equations
- Erdos97Octagon.RawIncidence.bitSetB code index = (code >>> UInt64.ofNat index &&& 1 != 0)
Instances For
Decode one three-bit entry of a packed permutation.
Equations
- Erdos97Octagon.RawIncidence.decodeMap code vertex = Fin.ofNat 8 (code >>> UInt64.ofNat (3 * ↑vertex) &&& 7).toNat
Instances For
Decode an eight-bit row mask as a set of octagon vertices.
Equations
- Erdos97Octagon.RawIncidence.packedRow mask = {target : Erdos97Octagon.Vertex | Erdos97Octagon.RawIncidence.bitSetB mask ↑target = true}
Instances For
Vertex pairs in the lexicographic order used by the finite search.
Equations
Instances For
Read one directed incidence from a packed table.
Equations
- Erdos97Octagon.RawIncidence.packedSelectsB code centre target = Erdos97Octagon.RawIncidence.bitSetB code (Erdos97Octagon.RawIncidence.varIndex centre target)
Instances For
Decode a packed table to the mathematical finite-set model.
Equations
- Erdos97Octagon.RawIncidence.packedIncidence code centre = {target : Erdos97Octagon.Vertex | Erdos97Octagon.RawIncidence.packedSelectsB code centre target = true}
Instances For
@[simp]
Pack one finite row into its eight-bit position.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Pack all eight rows into one 64-bit key.
Equations
- One or more equations did not get rendered due to their size.