Gapped boundaries of 2+1D topologically ordered phases are far richer than mere lattice truncations: they encode spontaneous symmetry breaking (SSB), projective representations, and module categories over the bulk fusion category. Weyl treats gapped boundaries, domain walls, and ribbon-algebra consistency conditions as first-class typed constructs—spanning from Abelian rough/smooth Toric Code terminations to non-Abelian Kitaev quantum doubles and MPO-symmetric tensor network representations.
Classification of Gapped Boundaries: and Lagrangian Algebras
For an untwisted 2+1D Kitaev quantum double , every gapped boundary to vacuum is classified up to local unitary equivalence by a pair . Here is a subgroup (up to conjugacy in ) describing the residual unbroken gauge symmetry on the boundary, and is a 2-cocycle cohomology class satisfying that specifies a projective 1+1D SPT twist on the boundary.
Equivalently, each determines a Lagrangian algebra in with and a module category over .
| Bulk Phase | Subgroup | Lagrangian Algebra | Physical Boundary Type | |
|---|---|---|---|---|
| Trivial | Rough (-condensed, unbroken ) | |||
| Trivial | Smooth (-condensed, SSB) | |||
| All trivial | 4 algebras () | Pure magnetic, partial SSB, mixed, pure electric | ||
| () | 2 distinct algebras for same | Trivial vs. twisted cluster-state SPT boundary |
On a finite cylinder with left boundary and right boundary , the ground-state degeneracy is determined directly by the inner product of Lagrangian multiplicity vectors:
For pure SSB boundaries with trivial cocycles (), this reduces to the double-coset count .
Rough vs. Smooth Boundaries of the Toric Code
In examples/toric_boundary.weyl, the bottom boundary at carries dangling edges with three-body boundary plaquettes , while the top boundary at has no dangling edges and retains three-body truncated stars :
define P_i ≔ σᶻ_{d_i} σᶻ_{h_i} σᶻ_{d_{i+1}} for i ∈ cells(∂Λ)
define H₀ ≔ − J Σ_v A_v − J Σ_p B_p − Σ_i P_i
define V ≔ − x Σ_i σˣ_{d_i} − κ₁ Σ_i σᶻ_{d_i} − κ₂ Σ_i σᶻ_{h_i}
claim ∂Λ condenses {1, e} at x = 0, κ₁ = 0, κ₂ = 0
claim ∂top condenses {1, m} at x = 0, κ₁ = 0, κ₂ = 0At , a single creates one bulk -anyon at while commuting with all and , proving that condenses on . Turning on drives a boundary phase transition along the 1D transverse-field Ising line from the rough (-condensed) fixed point at to the smooth (-condensed) fixed point as , with exact Kramers–Wannier self-duality at .
Non-Abelian Boundaries of Quantum Double
For a non-Abelian finite group , each lattice edge carries a group-algebra qudit (Qudit<G>) with basis . Left/right regular shifts , , and diagonal projectors do not satisfy pure-phase commutation (). weyl-types therefore assigns them Ungraded algebra kind (GroupQudit<G>) with canonical single-site normal form over , obeying the generalized-permutation multiplication and adjoint rules:
When is Abelian, the compiler automatically degrades GroupQudit<G> to the graded fast path (for , the built-in isomorphism , cross-checks Qudit<ℤ₂> directly against Qubit).
Microscopic Commuting-Projector Boundary (quantum_double_boundary.weyl)
model quantum double D(G) with a gapped boundary of type K
given G : finite group
given K : subgroup of G
given Λ : oriented square lattice on a half-plane, ∂Λ : boundary of Λ at y = 0
given |g⟩ : basis of ℂ[G] on edges(Λ) for g ∈ G
define L₊^g ≔ Σ_{h ∈ G} |g h⟩⟨h|
define L₋^g ≔ Σ_{h ∈ G} |h g⁻¹⟩⟨h|
define T^h ≔ |h⟩⟨h|
define A_v^g ≔ ∏_{l out of v} L₊^g_l · ∏_{l into v} L₋^g_l
define A_v ≔ 1/|G| Σ_{g ∈ G} A_v^g
define B_p ≔ projector onto holonomy(∂p) = 1
define A_v^K ≔ 1/|K| Σ_{k ∈ K} A_v^k for v ∈ vertices(∂Λ)
define T_l^K ≔ Σ_{k ∈ K} T^k_l for l ∈ edges(∂Λ)
define H ≔ − Σ_{v ∉ ∂Λ} A_v − Σ_p B_p − Σ_{v ∈ ∂Λ} A_v^K − Σ_{l ∈ ∂Λ} T_l^K
claim A_v^g : unitary, and g ↦ A_v^g : representation of G
claim A_v, B_p, A_v^K, T_l^K : projector
claim all terms of H commute
given 𝒞 : topological order D(G)
claim ∂Λ condenses 𝒜(K) : Lagrangian algebra of 𝒞
claim dim ground space on a cylinder with boundaries K, K′ = Σ_a n_a(K) n_a(K′)
check all claims for G = S₃, K ∈ subgroups(S₃)
theorem for all G, K : [A_v^K, T_l^K] = 0
falsify on G ∈ {ℤ₂, S₃, D₄}Solving Ribbon Consistency Conditions (ribbon_boundary.weyl)
Rather than guessing microscopic boundary projectors, Weyl can solve for all gapped boundaries directly in the -dimensional ribbon algebra spanned by (with multiplication , , ):
model boundaries of the quantum double D(G) from the consistency conditions
given G : finite group
given a : unknown coefficients of Ribbon(G)
solve for a such that a a = a, a Ω = Ω, S[a] = a, T[a] = a modulo G for G ∈ {ℤ₂, S₃}weyl-num eliminates the linear constraints (, , ) over , computes prime-field Gröbner bases across all cyclotomic roots, reconstructs the exact ideal via CRT, and classifies orbits under -conjugation—recovering exactly boundaries for , for , and for as Exact solutions.
Importantly, modulo G never restricts variables to the -invariant subspace before solving: for , the three -subgroup boundaries form a length-3 orbit under conjugation where no individual point is -invariant and their average is not idempotent. weyl-num solves the full algebraic variety first, verifies bidirectional ideal containment and S-polynomial reduction in , and returns Solutions { components, complete: bool }. If a positive-dimensional family (e.g. a continuous gauge orbit of projectors) appears, Weyl emits warning W0376 and reports the component's dimension and stabilizer explicitly.
Concrete Cylinder Degeneracy Matrix
On a cylinder with bulk and boundary subgroups , check all claims for G = S₃, K ∈ subgroups(S₃) verifies that across all 16 pairs:
| Left \ Right | () | () | () | () |
|---|---|---|---|---|
Bulk-to-Boundary Functors & Domain Walls (Folding Trick)
When a bulk anyon approaches a gapped boundary labeled by , it maps via the bulk-to-boundary condensation functor
where is the fusion category of boundary excitations (for with , ; for , ). Anyons with map to a direct sum containing the trivial boundary excitation with multiplicity —meaning they can terminate on the boundary without creating a local energy cost.
Transparent & Non-Invertible Domain Walls via Folding
A 1+1D gapped domain wall between two 2+1D topological phases and is classified by folding the plane along the wall into a single gapped boundary of the stacked phase (where has conjugated spins ):
-- Folding trick: domain walls between D(ℤ₂) and D(ℤ₂) are Lagrangian algebras of D(ℤ₂) ⊠ D(ℤ₂)
define 𝒲_triv ≔ {1, e₁e₂, m₁m₂, f₁f₂} -- trivial identity wall
define 𝒲_em ≔ {1, e₁m₂, m₁e₂, f₁f₂} -- invertible e ↔ m duality wall
define 𝒲_ee ≔ {1, e₁, e₂, e₁e₂} -- non-invertible factorized rough–rough wall
claim 𝒲_em : Lagrangian algebra of D(ℤ₂) ⊠ D(ℤ₂)In , weyl-topo enumerates all 6 Lagrangian subgroups: 2 invertible walls (identity and swap) and 4 non-invertible factorized walls ().
MPO & PEPS Virtual-Symmetry Representations Draft
In the tensor-network formulation of 2+1D topological order, fixed-point ground states are -injective (or more generally MPO-injective) Projected Entangled Pair States (PEPS). A bulk PEPS tensor satisfies the MPO pulling-through condition for a matrix product operator acting on virtual indices:
where the virtual symmetry algebra is for untwisted (or the twisted group algebra / fusion category MPO algebra for general string-net models). Terminating the PEPS on a gapped boundary attaches a 1D boundary Matrix Product State (MPS) whose virtual bond transforms as a projective representation of with 2-cocycle , realizing the boundary module category directly at the tensor level. Under this virtual symmetry breaking, the bulk -MPO splits into -invariant blocks on the boundary MPS, reproducing the double-coset ground-state degeneracy when contracting a finite cylinder PEPS between boundaries and .
How Weyl Verifies Boundary Hamiltonians
For both Abelian stabilizer boundaries and non-Abelian Qudit<G> boundaries, Weyl runs three static verification passes before any numerical or perturbative step:
| Check | Rule / Pass | Mechanism | Diagnostic on Failure |
|---|---|---|---|
| Hermiticity & locality | T-Ham | Checks in GroupQudit<G> normal form; diameter | E0301 (non-Hermitian), E0201 (non-local) |
| Commuting projectors | T-Comm | Exact commutator on overlap in time (independent of ); checks | E0413 (non-commuting ), E0371 (Ungraded mismatch) |
| Boundary excitation fusion | T-Bdy | Computes absorbed multiplicity vector from boundary ribbon quotient module vs. constructive table | E0372 (invalid LagAlg), E0373 (microscopic ) |
When a boundary specification fails any of these checks, weylc check pinpoints the algebraic obstruction before lowering to numerical or symbolic solvers:
error[E0372]: claimed Lagrangian algebra is not in the constructive (K, ω) enumeration of D(S₃)
--> bad_s3_bdy.weyl:26:8
| claim ∂Λ condenses (1 ⊕ 2 B ⊕ C ⊕ D) : Lagrangian algebra of 𝒞
| multiplicity vector satisfies dim = 6 but fails modular invariance (S·n ≠ n)
= help: valid Lagrangian algebras of D(S₃) are {1⊕B⊕2C, 1⊕C⊕D, 1⊕B⊕2F, 1⊕D⊕F}
warning[W0376]: `solve` returned a 1-dimensional component of Ribbon(G) projectors
--> ribbon_boundary.weyl:6:1
| component #2 has dim = 1 (continuous gauge family under residual conjugation)
= help: add or widen `modulo G` if gauge-equivalent projectors should be quotientedFinite Check + General Proof Pipeline
In quantum_double_boundary.weyl, check all claims for G = S₃, K ∈ subgroups(S₃) verifies every projector, commutator, and cylinder GSD on the concrete group in weyl-topo + weyl-canonical, while theorem for all G, K : [A_v^K, T_l^K] = 0 first runs bounded falsification on and then dispatches the universally quantified identity to the Lean 4 theorem backend.