OAI/Combinatorics/HoneycombChords/RasterGrid.lean
35 declarations, 0 contain sorry, 0 declared as axioms
Finite honeycomb raster contractions
Formalized from Critical honeycomb chords with prescribed boundary endpoints (OpenAI, September 26, 2026).
- abbrev
OAI.CriticalHoneycomb.Transfer.RasterGrid.Cellline 16 - abbrev
OAI.CriticalHoneycomb.Transfer.RasterGrid.GridWireline 19Source documentation
Horizontal wires run west/east; vertical wires run south/north. The extra endpoint in each coordinate is literal, not periodic boundary data.
abbrev GridWire (W H : ℕ) := (Fin (W+1) × Fin H) ⊕ (Fin W × Fin (H+1))
- abbrev
OAI.CriticalHoneycomb.Transfer.RasterGrid.FullWireline 20 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.networkline 22 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.wireEmbeddingline 28 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.wireEmbedding_injectiveline 33 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.spinsline 52 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.spins_wireline 56 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.cellCenterline 60 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.cellCenter_injectiveline 63 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.domainline 70 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.up_wiresline 73 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.down_wiresline 79 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.up_centerTensorline 85 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.down_centerTensorline 92 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.center_product_eqline 100Source documentation
Product of actual visited-center tensors on the literal rectangle.
lemma center_product_eq {W H : ℕ} (σ : GridWire W H → Fin 3) (μ : Cell W H → Fin 3) : centerProduct (domain W H) (spins σ μ) = ∏ t : Cell W H, upTensor (σ ((network W H).west t)) (σ ((network W H).south t)) (μ t) * downTensor (σ ((network W H).east t)) (σ ((network W H).north t)) (μ t) := by …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.GridWire, OAI.CriticalHoneycomb.Transfer.RasterGrid.Cell, OAI.CriticalHoneycomb.Transfer.RasterGrid.domain, OAI.CriticalHoneycomb.Transfer.RasterGrid.spins, OAI.CriticalHoneycomb.Transfer.RasterGrid.network
- theorem
OAI.CriticalHoneycomb.Transfer.RasterGrid.grid_physical_eq_centersline 113Source documentation
The source finite physical network contracts precisely to the actual center tensors on the rectangle, with every internal middle wire summed.
theorem grid_physical_eq_centers (W H : ℕ) (σ : GridWire W H → Fin 3) : (network W H).physical σ = ∑ μ : Cell W H → Fin 3, centerProduct (domain W H) (spins σ μ) := by …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.GridWire, OAI.CriticalHoneycomb.Transfer.RasterGrid.network, OAI.CriticalHoneycomb.Transfer.RasterGrid.Cell, OAI.CriticalHoneycomb.Transfer.RasterGrid.domain, OAI.CriticalHoneycomb.Transfer.RasterGrid.spins
- lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.sum_vectors_consline 127 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.matrixPathline 135Source documentation
A finite matrix path expansion, used only for the actual physical column kernels below. All intermediate states are summed once.
noncomputable def matrixPath {α : Type*} [Fintype α] [DecidableEq α] {n : ℕ} (K : Fin n → Matrix α α ℂ) (a b : α) : ℂ := …Mentions: OAI.CriticalHoneycomb.Transfer.a
- lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.matrixPath_zeroline 140 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.matrixPath_succline 145 - theorem
OAI.CriticalHoneycomb.Transfer.RasterGrid.matrixPath_eq_prodline 163 - abbrev
OAI.CriticalHoneycomb.Transfer.RasterGrid.Columnline 174 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.columnProductline 176 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.columnKernelline 180 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.spinsFromColumnsline 188Source documentation
Literal grid spins after fixing the west and north outer boundaries. The remaining horizontal and vertical wires are genuine independent coordinates, not redundant copies at the centers.
def spinsFromColumns {W H : ℕ} (west : Column H) (north : Fin W → Fin 3) (horizontal : Fin W → Column H) (vertical : Fin W → Column H) : GridWire W H → Fin 3 | .inl (i,j) => (Fin.cons (α:=fun _=>Column H) west horizontal) i j …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.Column, OAI.CriticalHoneycomb.Transfer.RasterGrid.GridWire
- lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.physical_columnsline 193 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.prescribedPartitionline 209Source documentation
Actual finite grid tensor with all four boundary spin lists prescribed. West and north are built into the parametrization; east and south are imposed by their exact indicator, before performing any orientation sum.
noncomputable def prescribedPartition (W H : ℕ) (west east : Column H) (south north : Fin W → Fin 3) : ℂ := … - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.prescribedPartition_eq_matrixPathline 216 - theorem
OAI.CriticalHoneycomb.Transfer.RasterGrid.prescribedPartition_eq_transferline 238Source documentation
The exact full finite rectangle contraction is the product of its physical column matrices. Together with
grid_physical_eq_centersthis connects the transfer ordering to the literal center tensors.theorem prescribedPartition_eq_transfer (W H : ℕ) (west east : Column H) (south north : Fin W → Fin 3) : prescribedPartition W H west east south north = (List.ofFn (fun i => columnKernel H (south i) (north i))).prod west east := by …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.Column, OAI.CriticalHoneycomb.Transfer.RasterGrid.prescribedPartition, OAI.CriticalHoneycomb.Transfer.RasterGrid.columnKernel
- def
OAI.CriticalHoneycomb.Transfer.RasterGrid.HasWestNorthline 246Source documentation
The parametrization has exactly the actual spin assignments with the west/north walls fixed; no geometric configurations are dropped.
def HasWestNorth {W H : ℕ} (west : Column H) (north : Fin W → Fin 3) (σ : GridWire W H → Fin 3) : Prop := …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.Column, OAI.CriticalHoneycomb.Transfer.RasterGrid.GridWire
- lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.spinsFromColumns_boundaryline 250 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.gridSpinsEquivline 255 - instance
OAI.CriticalHoneycomb.Transfer.RasterGrid.fixedGridSpinsFintypeline 280 - theorem
OAI.CriticalHoneycomb.Transfer.RasterGrid.prescribedPartition_eq_grid_sumline 285Source documentation
Exact literal finite-network expression for the prescribed partition.
theorem prescribedPartition_eq_grid_sum (W H : ℕ) (west east : Column H) (south north : Fin W → Fin 3) : prescribedPartition W H west east south north = ∑ σ : {σ : GridWire W H → Fin 3 // HasWestNorth west north σ}, if (∀ j, σ.val (.inl (Fin.last W,j))=east j) ∧ (∀ i, σ.val (.inr (i,0))=south i) then (network W H).physical σ.val else 0 := by …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.Column, OAI.CriticalHoneycomb.Transfer.RasterGrid.prescribedPartition, OAI.CriticalHoneycomb.Transfer.RasterGrid.GridWire, OAI.CriticalHoneycomb.Transfer.RasterGrid.HasWestNorth, OAI.CriticalHoneycomb.Transfer.RasterGrid.network