OAI/Combinatorics/HoneycombChords/ChordRemoval.lean
57 declarations, 0 contain sorry, 0 declared as axioms
Chord removal and finite partition identities
Formalized from Critical honeycomb chords with prescribed boundary endpoints (OpenAI, September 26, 2026).
- lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.three_slots_excludes_thirdline 16 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.isolatedline 27Source documentation
In a contributing center configuration, the two sides of a selected simple path occupy the full local degree. Thus all detached components are genuinely disjoint from every center on that path.
lemma CenterPath.isolated {n : ℕ} (p : CenterPath n) (σ : Wire → Fin 3) (he : ∀ i, σ (p.edge i)≠1) (hn : ∀ i, centerTensor σ (p.center i)≠0) (i : Fin n) (k : Fin 3) (hk : incidentWire (p.center i) k∉Set.range p.edge) : σ (incidentWire (p.center i) k)=1 := by …Mentions: OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath, OAI.CriticalHoneycomb.Wire, OAI.CriticalHoneycomb.incidentWire
- lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.factor_of_isolatedline 45 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.selected_orientation_uniqueline 60 - def
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.eraseline 72 - def
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.fillline 75 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.erased_centerline 78 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.erased_offline 91 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.tensor_selectedline 99 - theorem
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.remove_productline 112Source documentation
Removing a forced directed chord factors its exact physical weight from the remaining center product. No independence or loop cancellation is assumed here.
theorem CenterPath.remove_product {n : ℕ} (p : CenterPath n) (D : Finset Center) (σ : Wire → Fin 3) (h0 : p.point 0∉D) (hl : p.point (Fin.last (n+1))∉D) (he : ∀ i, σ (p.edge i)≠1) (hn : ∀ i, centerTensor σ (p.center i)≠0) (hroot : σ (p.edge 0)=outSpin (p.point 0) (p.side 0)) : centerProduct D σ=centerProduct D p.spins * centerProduct D (p.erase σ) := by …Mentions: OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath, OAI.CriticalHoneycomb.Center, OAI.CriticalHoneycomb.Wire, OAI.CriticalHoneycomb.Transfer.ChordOrientations.outSpin
- def
OAI.CriticalHoneycomb.Transfer.ChordOrientations.vertexCenterline 133 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.selected_to_actualline 137 - theorem
OAI.CriticalHoneycomb.Transfer.ChordOrientations.chord_edges_of_selected_pathline 164Source documentation
Chord extraction remembers the literal occupied wires, so removal is not an abstraction to a different path model.
theorem chord_edges_of_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) (xs : List (Interior D)) (p : (selectedGraph a b s).Walk (.inr false) (.inr true)) (hm : xs.map Subtype.val=γ.val) (hs : p.support=Sum.inr false :: (xs.map Sum.inl ++ [Sum.inr true])) : ∀ i, s ((ofChord γ hab).edge i)=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.nonzero_contains_selected_chordline 192Source documentation
A contributing physical configuration contains an actual source chord all of whose center tensors use an isolated two-side passage.
theorem nonzero_contains_selected_chord {D : Finset Center} (a b : Port (D : Set Center)) (hab : a.outside≠b.outside) (σ : Wire → Fin 3) (hboundary : BoundarySelection a b (selected σ)) (h : centerProduct D σ≠0) : ∃ γ : Chord (D : Set Center) a b, ∀ i, σ ((ofChord γ hab).edge i)≠1 := by …Mentions: OAI.CriticalHoneycomb.Center, OAI.CriticalHoneycomb.Transfer.a, OAI.CriticalHoneycomb.Port, OAI.CriticalHoneycomb.Wire, OAI.CriticalHoneycomb.Transfer.h, OAI.CriticalHoneycomb.Chord, OAI.CriticalHoneycomb.Transfer.ChordOrientations.ofChord
- lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.fill_tensorline 210 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.fill_offline 221 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.tensor_emptyline 229 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.fill_productline 235 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.erase_fillline 249 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.fill_eraseline 257 - abbrev
OAI.CriticalHoneycomb.Transfer.RasterGrid.Assignmentline 271 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.assignmentSpinsline 273 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.restrictAssignmentline 275 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.restrictAssignment_spinsline 278 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.assignmentSpins_injectiveline 284 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.assignmentSpins_supportedline 289 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.assignmentSpins_restrictline 293 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.eraseAssignmentline 303 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.fillAssignmentline 306 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.eraseAssignment_spinsline 309 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.fillAssignment_spinsline 316 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.matches_of_occupied_eqline 324 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.selected_erase_congrline 336 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.selected_fill_eraseline 343 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.erase_eq_oneline 357 - lemma
OAI.CriticalHoneycomb.Transfer.ChordOrientations.CenterPath.fill_eq_spinsline 364 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.HasBoundaryline 378Source documentation
All four literal cuts, with the prescribed boundary spin at each wire.
def HasBoundary {W H : ℕ} (west east : Column H) (south north : Fin W → Fin 3) (σ : GridWire W H → Fin 3) : Prop := …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.Column, OAI.CriticalHoneycomb.Transfer.RasterGrid.GridWire
- instance
OAI.CriticalHoneycomb.Transfer.RasterGrid.(instance at line 383)line 383 - def
OAI.CriticalHoneycomb.Transfer.RasterGrid.maskedTermline 387 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.maskedTerm_ne_zeroline 392 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.sum_subtype_indicatorline 400 - theorem
OAI.CriticalHoneycomb.Transfer.RasterGrid.sum_maskedTermline 407Source documentation
Unrestricted wires with explicit indicators. This form is suitable for an actual chord erasure bijection of nonzero tensor terms.
theorem sum_maskedTerm {W H : ℕ} (cfg : Cell W H → Shape) (west east : Column H) (south north : Fin W → Fin 3) : (∑ x : Assignment W H, maskedTerm cfg west east south north x)= (kappa:ℂ)^(∑ t, (cfg t).visits) * chosenPartition cfg west east south north := by …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.Cell, OAI.CriticalHoneycomb.Transfer.RasterGrid.Column, OAI.CriticalHoneycomb.Transfer.RasterGrid.Assignment, OAI.CriticalHoneycomb.Transfer.RasterGrid.maskedTerm, OAI.CriticalHoneycomb.kappa, OAI.CriticalHoneycomb.Transfer.RasterGrid.chosenPartition
- lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.boundary_eraseline 437 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.boundary_fillline 453 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.selected_fill_congrline 475 - theorem
OAI.CriticalHoneycomb.Transfer.RasterGrid.actual_path_factorizationline 486Source documentation
Factorization by removal of the actual boundary chord.
cfgRis the occupancy left on deleting that chord; it has empty boundary, and is not assumed to have zero coefficient. The next step applies the already proved vacuum cancellation to it.theorem actual_path_factorization {W H n : ℕ} (hW : 0<W) (hH : 0<H) (cfg cfgR : Cell W H → Shape) (west east : Column H) (south north : Fin W → Fin 3) (p : CenterPath n) (x₀ : Assignment W H) (hx₀ : maskedTerm cfg west east south north x₀≠0) (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) (hcover : ∀ i, p.edge i∈Set.range (wireEmbedding (W:=W) (H:=H))) …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.Cell, OAI.CriticalHoneycomb.Transfer.RasterGrid.Column, OAI.CriticalHoneycomb.Transfer.RasterGrid.Assignment, OAI.CriticalHoneycomb.Transfer.RasterGrid.maskedTerm, OAI.CriticalHoneycomb.Transfer.RasterGrid.domain, OAI.CriticalHoneycomb.Transfer.RasterGrid.wireEmbedding
- lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.mem_domain_iffline 586 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.boundary_wire_exhaustiveline 598 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.assignment_boundary_selectionline 654 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.matches_uniqueline 692 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.matches_emptyline 700 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.assignment_emptyline 705 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.rectanglePath_boundaryline 717 - lemma
OAI.CriticalHoneycomb.Transfer.RasterGrid.rectangle_rootline 722 - theorem
OAI.CriticalHoneycomb.Transfer.RasterGrid.nonzero_shape_is_chordline 736Source documentation
The actual one-strand tensor has no contribution from detached polygons: every nonzero resolved shape is exactly one literal prescribed-port chord.
theorem nonzero_shape_is_chord {W H : ℕ} (j k : Fin (H+1)) (cfg : Cell (W+1) (H+1) → Shape) (hn : chosenPartition cfg (singleColumn j) (singleColumn k) (fun _=>1) (fun _=>1)≠0) : ∃ γ : RectChord W H j k, cfg=rectangleShape γ := by …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.Cell, OAI.CriticalHoneycomb.Transfer.RasterGrid.chosenPartition, OAI.CriticalHoneycomb.Transfer.RasterGrid.singleColumn, OAI.CriticalHoneycomb.Transfer.RasterGrid.RectChord, OAI.CriticalHoneycomb.Transfer.RasterGrid.rectangleShape
- theorem
OAI.CriticalHoneycomb.Transfer.RasterGrid.actual_chord_sum_eq_transferline 810Source documentation
Exact finite original-source path partition. Each occupied center has weight κ; the two prescribed boundary ports are unweighted. Detached cycles cancel in the tensor contraction rather than being dropped by fiat.
theorem actual_chord_sum_eq_transfer {W H : ℕ} (j k : Fin (H+1)) : (prescribedPartition (W+1) (H+1) (singleColumn j) (singleColumn k) (fun _=>1) (fun _=>1)) = ∑ γ : RectChord W H j k, (kappa:ℂ)^γ.val.length := by …Mentions: OAI.CriticalHoneycomb.Transfer.RasterGrid.prescribedPartition, OAI.CriticalHoneycomb.Transfer.RasterGrid.singleColumn, OAI.CriticalHoneycomb.Transfer.RasterGrid.RectChord, OAI.CriticalHoneycomb.kappa
- theorem
OAI.CriticalHoneycomb.Transfer.RasterGrid.actual_chordMass_eq_transferline 839Source documentation
The ENNReal mass defined directly from the literal path subtype agrees with the finite physical transfer entry. This is finite identification only; no uniform bound in width or infinite-strip asymptotic is assumed.
theorem actual_chordMass_eq_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