Translationally invariant nearest-neighbour Hamiltonians on a 2D square lattice
Definitionusg_lattice_modelThis file fixes the lattice model used throughout the mission.
For a side length , the lattice is , whose elements are called sites; the first coordinate is the row index and the second the column index. Each site carries a -dimensional quantum system, so the standard product basis of the whole lattice is indexed by the configurations, i.e. the assignments of a level in to every site. Operators on the lattice are complex matrices indexed by configurations.
Open boundary conditions. The horizontal (row) edges are the pairs of sites in a common row whose column indices are consecutive, and the vertical (column) edges are the pairs of sites in a common column whose row indices are consecutive. No edges wrap around, so the outer rows and columns are not connected.
Embedding of local terms. A two-body interaction placed on an edge acts as on the two factors and as the identity on every other site; an on-site term acts as on its site and as the identity elsewhere.
The Hamiltonian. Given an on-site matrix and two two-body matrices , the same three matrices being used at every site and every edge, the model on is
This is the translational invariance used in the source: the interaction depends on the edge only through its direction.
Local interaction strength. , where is the operator norm.
The phase parameter. For , is the rational number in whose binary expansion after the point is the binary expansion of written in reverse order: if in binary then , and is the number of digits of . These are the numbers appearing in the phases and of the main theorem.
The model is the standard finite-lattice spin-system setting of mathematical physics, and it is reused by every statement of this mission.
import Mathlib
set_option autoImplicit false
namespace UndecidableSpectralGap
/-- The sites of the `L × L` square lattice `Λ(L) = {1,…,L}²`.
The first component is the row index, the second the column index. -/
abbrev Site (L : ℕ) := Fin L × Fin L
/-- A standard basis state of the lattice system with local dimension `d`:
an assignment of a level in `Fin d` to every site. -/
abbrev Config (L d : ℕ) := Site L → Fin d
/-- The directed horizontal (row) edges of `Λ(L)` with **open** boundary conditions:
pairs of sites in the same row whose column indices are consecutive. -/
def rowEdges (L : ℕ) : Finset (Site L × Site L) :=
Finset.univ.filter fun e => e.1.1 = e.2.1 ∧ (e.1.2 : ℕ) + 1 = (e.2.2 : ℕ)
/-- The directed vertical (column) edges of `Λ(L)` with **open** boundary conditions:
pairs of sites in the same column whose row indices are consecutive. -/
def colEdges (L : ℕ) : Finset (Site L × Site L) :=
Finset.univ.filter fun e => e.1.2 = e.2.2 ∧ (e.1.1 : ℕ) + 1 = (e.2.1 : ℕ)
/-- The two-body interaction `h` acting on the pair of sites `(p, q)` of the lattice,
written in the standard product basis: it acts as `h` on the factors `p` and `q`
and as the identity on all other sites. -/
def embedTwo {L d : ℕ} (p q : Site L) (h : Matrix (Fin d × Fin d) (Fin d × Fin d) ℂ) :
Matrix (Config L d) (Config L d) ℂ :=
fun c c' => if ∀ s, s ≠ p → s ≠ q → c s = c' s then h (c p, c q) (c' p, c' q) else 0
/-- The on-site interaction `h` acting on the site `p`, written in the standard product
basis: it acts as `h` on the factor `p` and as the identity on all other sites. -/
def embedOne {L d : ℕ} (p : Site L) (h : Matrix (Fin d) (Fin d) ℂ) :
Matrix (Config L d) (Config L d) ℂ :=
fun c c' => if ∀ s, s ≠ p → c s = c' s then h (c p) (c' p) else 0
/-- The translationally invariant nearest-neighbour Hamiltonian
`H^{Λ(L)} = Σ_rows h_row + Σ_columns h_col + Σ_sites h₁`
on the `L × L` square lattice with open boundary conditions, local dimension `d`,
on-site term `h₁`, horizontal interaction `hrow` and vertical interaction `hcol`. -/
def latticeHam (L d : ℕ) (h1 : Matrix (Fin d) (Fin d) ℂ)
(hrow hcol : Matrix (Fin d × Fin d) (Fin d × Fin d) ℂ) :
Matrix (Config L d) (Config L d) ℂ :=
(∑ e ∈ rowEdges L, embedTwo e.1 e.2 hrow) + (∑ e ∈ colEdges L, embedTwo e.1 e.2 hcol)
+ ∑ p : Site L, embedOne p h1
/-- The operator norm (largest singular value) of a square complex matrix,
viewed as an operator on the Euclidean space of its index type. -/
noncomputable def opNorm {n : Type*} [Fintype n] [DecidableEq n] (A : Matrix n n ℂ) : ℝ :=
‖Matrix.toEuclideanCLM (𝕜 := ℂ) A‖
/-- The local interaction strength `max{‖h₁‖, ‖h_row‖, ‖h_col‖}` of a lattice model. -/
noncomputable def localInteractionStrength {d : ℕ} (h1 : Matrix (Fin d) (Fin d) ℂ)
(hrow hcol : Matrix (Fin d × Fin d) (Fin d × Fin d) ℂ) : ℝ :=
max (opNorm h1) (max (opNorm hrow) (opNorm hcol))
/-- `phi n` is the rational number `φ(n) ∈ [0,1)` whose binary fractional expansion consists
of the binary digits of `n` in reverse order after the point: if `n = b_{k-1}…b_1b_0` in
binary, then `φ(n) = 0.b_0b_1…b_{k-1}`. -/
def phi (n : ℕ) : ℚ :=
∑ i ∈ Finset.range n.size, if n.testBit i then (2 : ℚ) ^ (-(i + 1 : ℤ)) else 0
/-- `phiLen n` is the number `|φ(n)|` of binary digits of `n`, i.e. the length of the
fractional expansion of `φ(n)`. -/
def phiLen (n : ℕ) : ℕ := n.size
end UndecidableSpectralGap
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
This item introduces no claim; it fixes nine notions, and everything below is a definition.
Sites and configurations. For a natural number , a site is a pair with ; the first coordinate is called the row index, the second the column index. For there are no sites. For natural numbers and , a configuration is a function assigning to every site a level in ; the set of configurations is the index set of every matrix below, so a "state space" here is literally the set of such assignments, of cardinality . Two degenerate readings are admitted: if and there are no configurations at all, and if there is exactly one configuration (the empty assignment) for every , including .
Edges. is the finite set of ordered pairs of sites such that and as natural numbers; is the set of ordered pairs with and . Each horizontally (respectively vertically) adjacent pair therefore occurs exactly once, in the direction of increasing index, and no pair joins the last index to the first: there is no wrap-around. Both sets are empty when .
Embedding of a two-body term. Given sites and a matrix indexed by pairs of levels, is the matrix indexed by configurations whose entry in row and column equals
whenever holds for every site different from both and , and equals otherwise. Nothing forbids ; in that case the defining formula is still read literally, with evaluated at and the agreement condition imposed at all sites other than .
Embedding of a one-body term. Given a site and a matrix indexed by levels, has entry when for every site , and otherwise.
The Hamiltonian. For , an on-site matrix of size and two matrices of size (indexed by pairs of levels), all with complex entries,
the last sum running over all sites. The same three matrices are used at every edge and every site; no dependence on the position enters. No hypothesis of Hermiticity, positivity or normalisation is imposed at this point, and for the two edge sums are empty.
Operator norm. For a square complex matrix indexed by a finite type with decidable equality, is the norm of the associated continuous linear operator on the Euclidean (i.e. ) space on that index type — the largest singular value of . The local interaction strength of a triple is
The rational . For a natural number , let be the number of binary digits of (so for , and in general for ). Then i.e. the rational in whose binary expansion after the point is the binary expansion of read from the least significant digit; . Separately, denotes that same digit count , so .
Provenance: this read-back was produced by the agent that drafted the item, not by an independent blind auditor.
Confirmed by the mission captain (proposal self-audit).