OAI/Combinatorics/HoneycombChords/RasterChords.lean
92 declarations, 0 contain sorry, 0 declared as axioms
Literal chord expansions in finite rectangles
Formalized from Critical honeycomb chords with prescribed boundary endpoints (OpenAI, September 26, 2026).
- def
OAI.CriticalHoneycomb.Transfer.RasterGrid.Matchesline 16 - instance
OAI.CriticalHoneycomb.Transfer.RasterGrid.(instance at line 24)line 24 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.maskedCell_sumline 29 - theorem
OAI.CriticalHoneycomb.Transfer.RasterGrid.masked_orientationline 49Source documentation
A resolved occupancy history is the literal finite-domain center sum with exactly its five occupied-edge masks, including each middle edge.
theorem masked_orientation {W H : ℕ} (cfg : Cell W H → Shape) (σ : GridWire W H → Fin 3) : (kappa:ℂ)^(∑ t, (cfg t).visits) * (network W H).orientation cfg σ = ∑ μ : Cell W H → Fin 3, if Matches cfg σ μ then centerProduct (domain W H) (spins σ μ) else 0 := by …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.Cell, OAI.CriticalHoneycomb.Transfer.RasterGrid.GridWire, OAI.CriticalHoneycomb.kappa, OAI.CriticalHoneycomb.Transfer.RasterGrid.network, OAI.CriticalHoneycomb.Transfer.RasterGrid.Matches, OAI.CriticalHoneycomb.Transfer.RasterGrid.domain, OAI.CriticalHoneycomb.Transfer.RasterGrid.spins
- theorem
OAI.CriticalHoneycomb.Transfer.RasterGrid.masked_chosenPartitionline 73Source documentation
Its prescribed-boundary contraction, with no auxiliary local model.
theorem masked_chosenPartition {W H : ℕ} (cfg : Cell W H → Shape) (west east : Column H) (south north : Fin W → Fin 3) : (kappa:ℂ)^(∑ t, (cfg t).visits) * chosenPartition cfg west east south north = ∑ σ : {σ : GridWire W H → Fin 3 // HasWestNorth west north σ}, ∑ μ : Cell W H → Fin 3, if (∀ j, σ.val (.inl (Fin.last W,j))=east j) ∧ (∀ i, σ.val (.inr (i,0))=south i) ∧ Matches cfg σ.val μ then centerProduct (domain W H) (spins σ.val μ) else 0 := by …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.Cell, OAI.CriticalHoneycomb.Transfer.RasterGrid.Column, OAI.CriticalHoneycomb.kappa, OAI.CriticalHoneycomb.Transfer.RasterGrid.chosenPartition, OAI.CriticalHoneycomb.Transfer.RasterGrid.GridWire, OAI.CriticalHoneycomb.Transfer.RasterGrid.HasWestNorth, OAI.CriticalHoneycomb.Transfer.RasterGrid.Matches, OAI.CriticalHoneycomb.Transfer.RasterGrid.domain, OAI.CriticalHoneycomb.Transfer.RasterGrid.spins
- def
OAI.CriticalHoneycomb.Transfer.RasterGrid.selectionAtline 106 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.selectionAt_admissibleline 112 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.occupancyShapeline 120 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.occupancyShape_selectionline 124 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.occupancyShape_matchesline 129 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.matches_grid_occupiedline 136 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.matches_occupiedline 158 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.spins_injectiveline 171 - theorem
OAI.CriticalHoneycomb.Transfer.RasterGrid.path_mask_uniqueline 184Source documentation
If a fixed occupancy really is a simple actual path, every nonzero center term is its unique rooted orientation. This excludes the zero-branch without assuming any phase or noncancellation conclusion.
theorem path_mask_unique {W H n : ℕ} (hW : 0<W) (hH : 0<H) (p : CenterPath n) {cfg : Cell W H → Shape} {σ τ : GridWire W H → Fin 3} {μ ν : Cell W H → Fin 3} (ha : Matches cfg σ μ) (hb : Matches cfg τ ν) (hp : spins τ ν=p.spins) (hc : ∀ i, p.center i∈domain W H) (hr : spins σ μ (p.edge 0)=outSpin (p.point 0) (p.side 0)) (hn : centerProduct (domain W H) (spins σ μ)≠0) : σ=τ ∧ μ=ν := by …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.Cell, OAI.CriticalHoneycomb.Transfer.RasterGrid.GridWire, OAI.CriticalHoneycomb.Transfer.RasterGrid.Matches, OAI.CriticalHoneycomb.Transfer.RasterGrid.spins, OAI.CriticalHoneycomb.Transfer.RasterGrid.domain
- theorem
OAI.CriticalHoneycomb.Transfer.RasterGrid.path_mask_contractionline 210Source documentation
Reindexing a literal loop-free occupancy does not lose its nonzero rooted orientation inside the source rectangular transfer contraction.
theorem path_mask_contraction {W H n : ℕ} (hW : 0<W) (hH : 0<H) (p : CenterPath n) (cfg : Cell W H → Shape) (west east : Column H) (south north : Fin W → Fin 3) (τ : GridWire W H → Fin 3) (ν : Cell W H → Fin 3) (hτ : HasWestNorth west north τ) (hE : ∀ j, τ (.inl (Fin.last W,j))=east j) (hS : ∀ i, τ (.inr (i,0))=south i) (hb : Matches cfg τ ν) (hp : spins τ ν=p.spins) (hc : ∀ i, p.center i∈domain W H) (j : Fin H) (hroot : p.edge 0=wireEmbedding (W:=W) (H:=H) (.inl (.inl (0,j)))) …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.Cell, OAI.CriticalHoneycomb.Transfer.RasterGrid.Column, OAI.CriticalHoneycomb.Transfer.RasterGrid.GridWire, OAI.CriticalHoneycomb.Transfer.RasterGrid.HasWestNorth, OAI.CriticalHoneycomb.Transfer.RasterGrid.Matches, OAI.CriticalHoneycomb.Transfer.RasterGrid.spins, OAI.CriticalHoneycomb.Transfer.RasterGrid.domain, OAI.CriticalHoneycomb.Transfer.RasterGrid.wireEmbedding
- theorem
OAI.CriticalHoneycomb.Transfer.RasterGrid.path_chosen_nonzeroline 251 - theorem
OAI.CriticalHoneycomb.Transfer.RasterGrid.path_chosen_eq_oneline 272Source documentation
Exact one, not merely nonzero: a literal center chord has the normalized coefficient prescribed by the source single-strand transfer sector.
theorem path_chosen_eq_one {W H n : ℕ} (hW : 0<W) (hH : 0<H) (p : CenterPath n) (cfg : Cell W H → Shape) (west east : Column H) (hi : (PlanarNormalization.occupancy (List.ofFn (fun j=>spinEquiv.symm (east j)))).count true=1) (ho : (PlanarNormalization.occupancy (List.ofFn (fun j=>spinEquiv.symm (west j)))).count true=1) (τ : GridWire W H → Fin 3) (ν : Cell W H → Fin 3) (hτ : HasWestNorth west (fun _=>1) τ) (hE : ∀ j, τ (.inl (Fin.last W,j))=east j) (hS : ∀ i, τ (.inr (i,0))=1) (hb : Matches cfg τ ν) (hp : spins τ ν=p.spins) (hc : ∀ i, p.center i∈domain W H) (h0 : p.point 0∉domain W H) (hl : p.point (Fin.last (n+1))∉domain W H) …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.Cell, OAI.CriticalHoneycomb.Transfer.RasterGrid.Column, OAI.CriticalHoneycomb.Transfer.PlanarNormalization.occupancy, OAI.CriticalHoneycomb.Transfer.RasterGrid.GridWire, OAI.CriticalHoneycomb.Transfer.RasterGrid.HasWestNorth, OAI.CriticalHoneycomb.Transfer.RasterGrid.Matches, OAI.CriticalHoneycomb.Transfer.RasterGrid.spins, OAI.CriticalHoneycomb.Transfer.RasterGrid.domain
- lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.cellCenter_memline 297 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.domain_coord_boundsline 302 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.domain_wire_coveredline 309 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.path_wire_coveredline 322 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.restrictGridline 336 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.restrictMiddleline 338 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.path_spins_restrictline 341 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.pathShapeline 358Source documentation
Every actual loop-free path through the rectangle supplies an exact occupancy shape; no hypothetical shape data is needed.
noncomputable def pathShape {W H n : ℕ} (p : CenterPath n) (hn : 0<n) (hc : ∀ i, p.center i∈domain W H) (h0 : p.point 0∉domain W H) (hl : p.point (Fin.last (n+1))∉domain W H) : Cell W H → Shape := …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.domain, OAI.CriticalHoneycomb.Transfer.RasterGrid.Cell
- lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.pathShape_matchesline 366 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.westPortline 377 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.eastPortline 387 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.southPortline 397 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.northPortline 407 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.westPort_sideline 417 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.eastPort_sideline 422 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.southPort_sideline 427 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.northPort_sideline 432 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.westPort_wireline 437 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.eastPort_wireline 442 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.southPort_wireline 447 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.northPort_wireline 452 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.westPort_injectiveline 457 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.eastPort_injectiveline 462 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.west_ne_eastline 467 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.south_ne_westline 472 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.south_ne_eastline 479 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.north_ne_westline 485 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.north_ne_eastline 491 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.west_outside_ne_eastline 499 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.chord_length_posline 509 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.ofChord_firstline 513 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.ofChord_lastline 518 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.ofChord_secondline 525 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.ofChord_penultimateline 531 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.ofChord_center_memline 543 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.ofChord_first_sideline 548 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.ofChord_last_sideline 555 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.ofChord_first_edgeline 563 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.ofChord_last_edgeline 570 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.outside_incident_indexline 578Source documentation
A path never uses another exterior edge: its only outside incidences are the first and last edges, with their literal chronological indices.
lemma CenterPath.outside_incident_index {n : ℕ} (p : CenterPath n) (hc : ∀ i, p.center i∈D) {v : Center} (hv : v∉D) (k : Fin 3) (j : Fin (n+1)) (he : incidentWire v k=p.edge j) : j=0 ∨ j=Fin.last n := by …Mentions: OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath, OAI.CriticalHoneycomb.Transfer.v, OAI.CriticalHoneycomb.Center, OAI.CriticalHoneycomb.incidentWire
- lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.ofChord_boundary_wireline 606 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.ofChord_boundary_vacantline 625 - abbrev
OAI.CriticalHoneycomb.Transfer.RasterGrid.RectChordline 636 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.rectanglePathline 639 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.rectanglePath_first_spinsline 642 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.rectanglePath_last_spinsline 651 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.singleColumnline 661 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.singleColumn_occupancyline 663 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.rectanglePath_westline 682 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.rectanglePath_eastline 696 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.rectanglePath_northline 710 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.rectanglePath_southline 718 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.rectangleShapeline 726 - theorem
OAI.CriticalHoneycomb.Transfer.RasterGrid.actual_chord_chosen_oneline 735Source documentation
The normalized finite transfer coefficient of each literal source chord is exactly one. No path noncancellation or single-strand phase has been postulated; both are proved from the exact center tensors.
theorem actual_chord_chosen_one {W H : ℕ} {j k : Fin (H+1)} (γ : RectChord W H j k) : chosenPartition (rectangleShape γ) (singleColumn j) (singleColumn k) (fun _=>1) (fun _=>1)=1 := by …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.RectChord, OAI.CriticalHoneycomb.Transfer.RasterGrid.chosenPartition, OAI.CriticalHoneycomb.Transfer.RasterGrid.rectangleShape, OAI.CriticalHoneycomb.Transfer.RasterGrid.singleColumn
- def
OAI.CriticalHoneycomb.Transfer.ChordOrientations.usedCenterline 760 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.usedCenter_degreeline 763 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.used_iffline 777 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.center_injectiveline 793 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.sum_usedline 799 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.shape_visits_usedline 821 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.sum_visits_usedline 842 - theorem
OAI.CriticalHoneycomb.Transfer.RasterGrid.actual_chord_visitsline 855Source documentation
Port half-edges are unweighted: the exact raster exponent is the number of centers in the source trace, with no additive endpoint correction.
theorem actual_chord_visits {W H : ℕ} {j k : Fin (H+1)} (γ : RectChord W H j k) : (∑ t, (rectangleShape γ t).visits)=γ.val.length := by …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.RectChord, OAI.CriticalHoneycomb.Transfer.RasterGrid.rectangleShape
- lemma
OAI.CriticalHoneycomb.Transfer.PathComponents.paths_eq_of_edges_subsetline 871 - lemma
OAI.CriticalHoneycomb.Transfer.PathComponents.walk_in_closed_setline 897 - theorem
OAI.CriticalHoneycomb.Transfer.PathComponents.two_port_path_uniqueline 910Source documentation
The boundary path of a finite 0/2-degree configuration is unique. This prevents multiplicity in the physical path expansion.
theorem two_port_path_unique [Fintype V] [DecidableRel G.Adj] {a b : V} (hab : a ≠ b) (ha : G.degree a = 1) (hb : G.degree b = 1) (upper : ∀ v, G.degree v ≤ 2) (p q : G.Walk a b) (hp : p.IsPath) (hq : q.IsPath) : p = q := by …Mentions: OAI.CriticalHoneycomb.Transfer.a, OAI.CriticalHoneycomb.Transfer.v
- lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.selected_edgeline 930 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.chord_boundary_selectionline 934 - theorem
OAI.CriticalHoneycomb.Transfer.ChordOrientations.chord_selected_pathline 958Source documentation
The converse path is bound to the actual selected midpoint edges, not just to the underlying hard-wall graph.
theorem chord_selected_path {D : Finset Center} {a b : Port (D : Set Center)} (γ : Chord (D : Set Center) a b) (hab : a.outside≠b.outside) (s : Wire → Bool) (he : ∀ i, s ((ofChord γ hab).edge i)=true) : ∃ (xs : List (Interior D)) (p : (selectedGraph a b s).Walk (.inr false) (.inr true)), xs.map Subtype.val=γ.val ∧ p.IsPath ∧ p.support=Sum.inr false :: (xs.map Sum.inl ++ [Sum.inr true]) := by …Mentions: OAI.CriticalHoneycomb.Center, OAI.CriticalHoneycomb.Transfer.a, OAI.CriticalHoneycomb.Port, OAI.CriticalHoneycomb.Chord, OAI.CriticalHoneycomb.Wire, OAI.CriticalHoneycomb.Transfer.ChordOrientations.ofChord
- theorem
OAI.CriticalHoneycomb.Transfer.ChordOrientations.chord_eq_of_selected_eqline 1030Source documentation
An unoriented occupied configuration has at most one literal source chord. This prevents hidden multiplicity in the finite transfer expansion.
theorem chord_eq_of_selected_eq {D : Finset Center} {a b : Port (D : Set Center)} (γ δ : Chord (D : Set Center) a b) (hab : a.outside≠b.outside) (hs : selected (ofChord γ hab).spins=selected (ofChord δ hab).spins) : γ=δ := by …Mentions: OAI.CriticalHoneycomb.Center, OAI.CriticalHoneycomb.Transfer.a, OAI.CriticalHoneycomb.Port, OAI.CriticalHoneycomb.Chord, OAI.CriticalHoneycomb.Transfer.ChordOrientations.ofChord
- theorem
OAI.CriticalHoneycomb.Transfer.RasterGrid.rectangleShape_injectiveline 1067Source documentation
No two different actual source chords are counted by the same literal raster shape configuration.
theorem rectangleShape_injective {W H : ℕ} {j k : Fin (H+1)} : Function.Injective (rectangleShape (W:=W) (H:=H) (j:=j) (k:=k)) := by …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.rectangleShape
- instance
OAI.CriticalHoneycomb.Transfer.RasterGrid.rectChordFintypeline 1088 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.chord_term_realline 1091 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.shape_term_nonnegativeline 1100 - theorem
OAI.CriticalHoneycomb.Transfer.RasterGrid.actual_chord_sum_le_transferline 1111Source documentation
Every literal source chord appears with its exact critical weight and multiplicity one in the finite physical transfer expansion. Detached loops are not ignored here: all other fixed configurations are nonnegative.
theorem actual_chord_sum_le_transfer {W H : ℕ} (j k : Fin (H+1)) : (∑ γ : RectChord W H j k, kappa^γ.val.length) ≤ (prescribedPartition (W+1) (H+1) (singleColumn j) (singleColumn k) (fun _=>1) (fun _=>1)).re := by …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.RectChord, OAI.CriticalHoneycomb.kappa, OAI.CriticalHoneycomb.Transfer.RasterGrid.prescribedPartition, OAI.CriticalHoneycomb.Transfer.RasterGrid.singleColumn
- theorem
OAI.CriticalHoneycomb.Transfer.RasterGrid.actual_chordMass_le_transferline 1132Source documentation
A finite-domain mass bound: the actual ENNReal chord mass is dominated by the literal source physical transfer coefficient.
theorem actual_chordMass_le_transfer {W H : ℕ} (j k : Fin (H+1)) : chordMass (domain (W+1) (H+1) : Set Center) (westPort W H j) (eastPort W H k) ≤ ENNReal.ofReal (prescribedPartition (W+1) (H+1) (singleColumn j) (singleColumn k) (fun _=>1) (fun _=>1)).re := by …Mentions: OAI.CriticalHoneycomb.chordMass, OAI.CriticalHoneycomb.Transfer.RasterGrid.domain, OAI.CriticalHoneycomb.Center, OAI.CriticalHoneycomb.Transfer.RasterGrid.westPort, OAI.CriticalHoneycomb.Transfer.RasterGrid.eastPort, OAI.CriticalHoneycomb.Transfer.RasterGrid.prescribedPartition, OAI.CriticalHoneycomb.Transfer.RasterGrid.singleColumn