BandOrderedGeneralLayoutCertificate #
Adapted from Wesley Pegden’s Apache-2.0 Trellis formalization of Levine–Pegden–Smart. Changes: pool module paths, public exports, project namespace and current Mathlib compatibility.
For an ordered general configuration $q=(C_0,C_1,C_2,C_3)$, a band circle represented by $C_0$, and a band prototile $T_0$, an ordered-general layout certificate consists of the following data, with every equality referring to the actual labelled occurrences rather than merely to isomorphic copies.
It contains the outer family $P_i^\pm$ decomposing $T_0$, and two families
$Q_i^\pm,S_i^\pm$ decomposing $P_1^+$ and $P_1^-$ for the first predecessor
quadruple. It contains a precursor $O$ equal to $Q_4^-$ in the chosen
indexing, with the same cells as $S_4^+$ and the same anchor when those
cells are empty. Each of the six outer parent occurrences is retained as
a LatticeTile and as a QuarterTurnSymmetric tile. The
two actual precursor complements
$P_1^+\setminus O$ and $P_1^-\setminus O$ are also retained as lattice
tiles; these are the smaller-T1 facts used when an original $P_1^+$
occurrence is restored from the modified one. It records
$$ u=v_{01},\qquad v=v_{02},\qquad L=\mathbb Zu+\mathbb Zv=i\Lambda_{C_0}, $$
the membership and unique-coordinate assertions for the incoming basis
$v_{10},v_{20}$ of the actual TilingLattice, the unique integral
coordinates in the layout basis $u,v$, and a complete $L$-coset
representative set $R$ of cardinality $c_0$.
The certificate further contains the actual
BandUnmodifiedCoreCertificate, including the $I_1,I_2$ selections
on the indicated $Q$--$S$ child interfaces and the $I_3$ selection on the
$Q_2^+$--$P_2^+$ child interface. It retains the four exact
touching triples of the double decomposition and the two precursor
touching triples which join those selected interfaces through $O$; thus
their complete pairwise paths and common points remain available to later
label-sensitive arguments. The certificate retains a
PrecursorBoundaryArcData: in the positive-area case its two
complement-contact arcs cover $\partial O$, are exchanged by half-turn, and
meet exactly at the two labelled precursor attachments; in the curvature-zero
case the two attachments coincide at the exact common anchor of
$Q_4^-=S_4^+$. In the latter case it also records explicitly that the
precursor circle has curvature zero.
It also retains an ExceptionalConnectorSegments object containing,
in order, the actual $Q_2^+$--$S_3^-$ segment from $I_1$ to the first
attachment, the $(P_1^+\setminus O)$--$O$ segment between the attachments,
and the $Q_3^+$--$S_2^-$ segment from the second attachment to $I_2$. The
two touching triples identify the cuts uniquely, and the segmented walk
retains actual common-edge support on each of its three pieces. Its stored
loop-erasure is the certificate's legacy exceptional connector from the
selected $I_1$ point to the selected $I_2$ point, rather than merely an
unrelated path through the subsequently constructed periodic complex.
Separate fields record its two endpoints,
the membership of every vertex in
$\operatorname{foot}(P_1^+\setminus O)\cap\operatorname{foot}(P_1^-)$, actual common-footprint
support
for every consecutive edge, and the vertex support
$$ (\operatorname{foot}(Q_2^+)\cap\operatorname{foot}(S_3^-))\cup\operatorname{foot}(O)\cup (\operatorname{foot}(Q_3^+)\cap\operatorname{foot}(S_2^-)). $$
The connector has no repeated vertices, but it may be constant if its two
selected endpoints coincide. Writing
$(A,B,C,D,E,F)=(P_1^+,P_1^-,P_2^+,P_2^-,P_3^+,P_3^-)$, it also retains
the eight translated outer touching triples
$$ \begin{gathered} (A,B_{0,1},E_{0,1}),\ (A,B_{0,1},F), (A,B_{1,1},C_{1,1}),\ (A,B_{1,1},D),\\ (A,C_{1,1},E_{0,1}),\ (B,D_{-1,-1},F_{0,-1}), (C,D_{-1,0},E_{-1,0}),\ (C,D_{-1,0},F), \end{gathered} $$
as actual TouchingTriple data rather than discarding them after
the weak periodic core is constructed. It also contains the independently
proved six-orbit area identity; and unique indexed membership for the
modified family obtained by replacing $P_1^+$ with $P_1^+\setminus O$.
Finally it contains the actual PeriodicTileComplex for this
modified family, identifies its lattice with $L$, its tile at every
$(X,m,n)$ with ModifiedSubtileOccurrenceInterpretation, its
selected point on every labelled face with the corresponding selected point
of the unmodified core, its combinatorial adjacency relation with the eighteen rows of
AllowedSubtileIncidence (without classifying isolated common
footprint vertices as graph edges), and its faces and face representatives
with the complete twelve-row SixSubtileFaceVertices ledger. At
this stage the complex records only actual common-edge support on prescribed
edges and the selected contained face-to-face walks; it does not assert
that these are the complete raw interfaces. It
also retains the translated isolated-precursor conclusion: every lattice
cell incident to a footprint vertex of $O_{m,n}$ belongs to the
corresponding original $A_{m,n}$ or $B_{m,n}$ occurrence. This is the
local datum needed to compare original and modified interfaces after the
periodic complex has been constructed.
No disk, area, or complement conclusion about the outer tile $T_0$ is part
of this certificate.
The six signed parent occurrences decomposing the outer tile.
The six signed children decomposing the positive first-parent occurrence.
The six signed children decomposing the negative first-parent occurrence.
- O : ProtoTile
The literal common precursor selected from the two inner decompositions.
- plus_occurrence (i : Fin 3) (s : Bool) : BandSubtileOccurrence cfg.firstPredecessor (self.P 0 true) i s (self.Q i s)
- minus_occurrence (i : Fin 3) (s : Bool) : BandSubtileOccurrence cfg.firstPredecessor (self.P 0 false) i s (self.S i s)
- precursor_complement_lattice : LatticeTile (TileCellComplement (self.P 0 true) self.O) ∧ LatticeTile (TileCellComplement (self.P 0 false) self.O)
- u : GaussianInt
The first period vector of the six-type layout.
- v : GaussianInt
The second period vector of the six-type layout.
The additive period lattice generated by the two layout vectors.
- incoming_coordinates (w : ↥(TilingLattice C₀)) : ∃! mn : ℤ × ℤ, ↑mn.1 * BandVectors.1 (q 1) (q 0) + ↑mn.2 * BandVectors.1 (q 2) (q 0) = ↑w
- lattice_rotation (z : GaussianInt) : z ∈ self.L ↔ ∃ w ∈ TilingLattice C₀, z = { re := 0, im := 1 } * w
- R : Finset GaussianInt
The complete finite set of period-lattice coset representatives.
- fundamental : LatticeFundamentalSet self.L self.R
- unmodified : BandUnmodifiedCoreCertificate self.P self.u self.v self.L
The original periodic core before deleting the precursor from the A occurrences.
- inner_first : self.unmodified.core.rho (self.unmodified.faceEquiv.symm { label := SixSubtileFaceLabel.I1, first := 0, second := 0 }) ∈ FootprintVertices (self.Q 1 true) ∩ FootprintVertices (self.S 2 false)
- inner_second : self.unmodified.core.rho (self.unmodified.faceEquiv.symm { label := SixSubtileFaceLabel.I2, first := 0, second := 0 }) ∈ FootprintVertices (self.Q 2 true) ∩ FootprintVertices (self.S 1 false)
- inner_third : self.unmodified.core.rho (self.unmodified.faceEquiv.symm { label := SixSubtileFaceLabel.I3, first := 0, second := 0 }) ∈ FootprintVertices (self.Q 1 true) ∩ FootprintVertices (self.P 1 true)
- outer_touching : TouchingTriple (self.P 0 true) (TileTranslation (self.P 0 false) self.v) (TileTranslation (self.P 2 true) self.v) ∧ TouchingTriple (self.P 0 true) (TileTranslation (self.P 0 false) self.v) (self.P 2 false) ∧ TouchingTriple (self.P 0 true) (TileTranslation (self.P 0 false) (self.u + self.v)) (TileTranslation (self.P 1 true) (self.u + self.v)) ∧ TouchingTriple (self.P 0 true) (TileTranslation (self.P 0 false) (self.u + self.v)) (self.P 1 false) ∧ TouchingTriple (self.P 0 true) (TileTranslation (self.P 1 true) (self.u + self.v)) (TileTranslation (self.P 2 true) self.v) ∧ TouchingTriple (self.P 0 false) (TileTranslation (self.P 1 false) (-self.u - self.v)) (TileTranslation (self.P 2 false) (-self.v)) ∧ TouchingTriple (self.P 1 true) (TileTranslation (self.P 1 false) (-self.u)) (TileTranslation (self.P 2 true) (-self.u)) ∧ TouchingTriple (self.P 1 true) (TileTranslation (self.P 1 false) (-self.u)) (self.P 2 false)
- precursorBoundary : PrecursorBoundaryArcData (TileCellComplement (self.P 0 true) self.O) (TileCellComplement (self.P 0 false) self.O) self.O (self.S 0 true) (self.Q 1 true) (self.S 2 false) (self.Q 2 true) (self.S 1 false)
The boundary-arc decomposition around the common precursor tile.
- exceptionalSegments : ExceptionalConnectorSegments (self.P 0 true) (self.P 0 false) self.O (self.Q 1 true) (self.S 2 false) (self.Q 2 true) (self.S 1 false) (self.unmodified.core.rho (self.unmodified.faceEquiv.symm { label := SixSubtileFaceLabel.I1, first := 0, second := 0 })) (self.unmodified.core.rho (self.unmodified.faceEquiv.symm { label := SixSubtileFaceLabel.I2, first := 0, second := 0 }))
The exceptional connector segments between the two distinguished unmodified vertices.
- connector : List GaussianInt
The retained loop-erased connector between the two selected inner interfaces.
- connector_head : self.connector.head? = some (self.unmodified.core.rho (self.unmodified.faceEquiv.symm { label := SixSubtileFaceLabel.I1, first := 0, second := 0 }))
- connector_last : self.connector.getLast? = some (self.unmodified.core.rho (self.unmodified.faceEquiv.symm { label := SixSubtileFaceLabel.I2, first := 0, second := 0 }))
- connector_raw (x : GaussianInt) : x ∈ self.connector → x ∈ FootprintVertices (TileCellComplement (self.P 0 true) self.O) ∩ FootprintVertices (self.P 0 false)
- connector_edges (x y : GaussianInt) (l1 l2 : List GaussianInt) : self.connector = l1 ++ x :: y :: l2 → {x, y} ∈ FootprintEdges (TileCellComplement (self.P 0 true) self.O) ∩ FootprintEdges (self.P 0 false)
- connector_support (x : GaussianInt) : x ∈ self.connector → x ∈ FootprintVertices (self.Q 1 true) ∩ FootprintVertices (self.S 2 false) ∪ FootprintVertices self.O ∪ FootprintVertices (self.Q 2 true) ∩ FootprintVertices (self.S 1 false)
- partition (x : LatticeCell) : ∃! o : PeriodicSubtileIndex, x ∈ (ModifiedSubtileOccurrenceInterpretation self.P self.O self.u self.v o).cells
- modified : PeriodicTileComplex PeriodicSubtileIndex
The periodic complex with the precursor deleted from each A occurrence.
- modified_tile (o : PeriodicSubtileIndex) : self.modified.tile o = ModifiedSubtileOccurrenceInterpretation self.P self.O self.u self.v o
- modified_adjacency (a b : PeriodicSubtileIndex) : self.modified.plane.adjacent a b ↔ AllowedSubtileIncidence a b
Identify modified-complex faces with the fixed twelve-label periodic face ledger.
- modified_face_points (f : PeriodicSubtileFaceIndex) : self.modified.rho (self.modifiedFaceEquivalence.symm f) = self.unmodified.core.rho (self.unmodified.faceEquiv.symm f)
- modified_face_vertices (f : self.modified.plane.Face) (i : Fin 3) : self.modified.plane.faceVertex f i = SixSubtileFaceVertices (self.modifiedFaceEquivalence f) i
- modified_face_reps (f : self.modified.plane.Face) : f ∈ self.modified.faceOrbitReps ↔ (self.modifiedFaceEquivalence f).first = 0 ∧ (self.modifiedFaceEquivalence f).second = 0
- precursor_isolated (m n : ℤ) (x : GaussianInt) : x ∈ FootprintVertices (TileTranslation self.O (↑m * self.u + ↑n * self.v)) → ∀ (a : GaussianInt), x ∈ FootprintVertices { cells := {a}, anchor := a } → a ∈ (SubtileOccurrenceInterpretation self.P self.u self.v { label := SixSubtileLabel.A, first := m, second := n }).cells ∨ a ∈ (SubtileOccurrenceInterpretation self.P self.u self.v { label := SixSubtileLabel.B, first := m, second := n }).cells