Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 9 - relating low energy properties to the halting problem

Open
UndecidableSpectralGap.usg_low_energy_halting

by LG · Sep 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

mathematical-physicsquantum-informationspectral-gaptheoretical-computer-scienceundecidability

Let a machine be given, started on an initially blank tape, and let {HqΛ(L)}L\{H_q^{\Lambda(L)}\}_L{HqΛ(L)​}L​ be any family of translationally invariant nearest-neighbour Hamiltonians on square lattices with open boundary conditions, with Hermitian local terms on a qqq-dimensional local Hilbert space, whose ground state energy satisfies λ0(HqΛ(L))−eL2∈[−12,12]\lambda_0(H_q^{\Lambda(L)})-eL^2\in[-\tfrac12,\tfrac12]λ0​(HqΛ(L)​)−eL2∈[−21​,21​] for all LLL and some constant eee. Then there is a family {HΛ(L)}L\{H^{\Lambda(L)}\}_L{HΛ(L)}L​ of translationally invariant nearest-neighbour Hamiltonians with Hermitian local terms on some finite local dimension ddd such that:

  1. if the machine has not halted after LLL steps, then HΛ(L)H^{\Lambda(L)}HΛ(L) has a non-degenerate ground state which is a product state ⨂i∈Λ(L)v\bigotimes_{i\in\Lambda(L)}v⨂i∈Λ(L)​v, and spectral gap Δ(HΛ(L))≥12\Delta(H^{\Lambda(L)})\ge\tfrac12Δ(HΛ(L))≥21​;

  2. if the machine halts, then there is a size L0L_0L0​ such that for all L>L0L>L_0L>L0​ the low-energy spectra agree with multiplicities in the window [0,12)[0,\tfrac12)[0,21​) above the respective ground state energies: for every x∈[0,12)x\in[0,\tfrac12)x∈[0,21​),

dim⁡ker⁡(HΛ(L)−(λ0(HΛ(L))+x))=dim⁡ker⁡(HqΛ(L)−(λ0(HqΛ(L))+x)).\dim\ker\bigl(H^{\Lambda(L)}-(\lambda_0(H^{\Lambda(L)})+x)\bigr)=\dim\ker\bigl(H_q^{\Lambda(L)}-(\lambda_0(H_q^{\Lambda(L)})+x)\bigr).dimker(HΛ(L)−(λ0​(HΛ(L))+x))=dimker(HqΛ(L)​−(λ0​(HqΛ(L)​)+x)).

So in the halting case the constructed model reproduces, eigenvalue by eigenvalue and with the correct multiplicities, the low-energy physics of the given model, while in the non-halting case it is a trivial gapped system with a product ground state. Consequently any low-energy property that distinguishes a gapped system with product ground state from the low-energy sector of the given Hamiltonian - a spectral gap, topological order, decay of correlations - inherits the undecidability of the halting problem.

Formalization note. The identity of spectra as multisets is expressed as equality of eigenvalue multiplicities in the stated window; the isometry VVV of the source, which implements this correspondence on eigenvectors, is not part of the statement. Machines are represented by partial recursive codes, with step-bounded evaluation standing for 'has not halted after LLL steps', and the explicit local-dimension bound d≤2(q+1)+∣S∣(3∣Q∣+1)d\le 2(q+1)+|S|(3|Q|+1)d≤2(q+1)+∣S∣(3∣Q∣+1) is replaced by the existence of a finite local dimension.

Preamble
import Definitions.Def_usg_spectral_notions

set_option autoImplicit false
open scoped ComplexOrder
Formal statement
namespace UndecidableSpectralGap

theorem usg_low_energy_halting (c : Nat.Partrec.Code) (q : ℕ)
    (hq1 : Matrix (Fin q) (Fin q) ℂ) (hqrow hqcol : Matrix (Fin q × Fin q) (Fin q × Fin q) ℂ)
    (hq1H : hq1.IsHermitian) (hqrowH : hqrow.IsHermitian) (hqcolH : hqcol.IsHermitian)
    (e : ℝ)
    (hgs : ∀ L : ℕ, 0 < L →
      gsEnergy (latticeHam L q hq1 hqrow hqcol) - e * (L : ℝ) ^ 2 ∈ Set.Icc (-(1 / 2) : ℝ) (1 / 2)) :
    ∃ (d : ℕ) (h1 : Matrix (Fin d) (Fin d) ℂ)
      (hrow hcol : Matrix (Fin d × Fin d) (Fin d × Fin d) ℂ),
      h1.IsHermitian ∧ hrow.IsHermitian ∧ hcol.IsHermitian ∧
      -- (iii) if the machine has not halted after `L` steps, the Hamiltonian has a
      -- non-degenerate product ground state and spectral gap at least `1/2`
      (∀ L : ℕ, 0 < L → (Nat.Partrec.Code.evaln L c 0).isNone = true →
        GroundStateNondegenerate (latticeHam L d h1 hrow hcol) ∧
        HasGapAtLeast (latticeHam L d h1 hrow hcol) (1 / 2) ∧
        ∃ v : Fin d → ℂ, v ≠ 0 ∧
          (latticeHam L d h1 hrow hcol).mulVec (fun cfg : Config L d => ∏ s, v (cfg s))
            = ((gsEnergy (latticeHam L d h1 hrow hcol) : ℝ) : ℂ) •
                (fun cfg : Config L d => ∏ s, v (cfg s))) ∧
      -- (iv) if the machine halts, then beyond the halting size the low-energy part of the
      -- spectrum of the new Hamiltonian agrees, with multiplicities, with that of the
      -- given Hamiltonian, in the window `[0, 1/2)` above the respective ground state energies
      ((c.eval 0).Dom → ∃ L0 : ℕ, ∀ L > L0, ∀ x ∈ Set.Ico (0 : ℝ) (1 / 2),
        eigMultiplicity (latticeHam L d h1 hrow hcol)
            (gsEnergy (latticeHam L d h1 hrow hcol) + x)
          = eigMultiplicity (latticeHam L q hq1 hqrow hqcol)
            (gsEnergy (latticeHam L q hq1 hqrow hqcol) + x)) := by
  sorry

end UndecidableSpectralGap
Source
Cubitt, Perez-Garcia & Wolf, Undecidability of the Spectral Gap, Forum of Mathematics Pi 10:e14 (2022), pp. 1-102, doi:10.1017/fmp.2021.15, https://doi.org/10.1017/fmp.2021.15 (full version; same numbering as arXiv:1502.04573v5), Section 2.2.2, pp. 13-14, Theorem 9 (Relating low energy properties to the halting problem), parts (i)-(iv).
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic)

Data and hypotheses. Fix a partial recursive code ccc; a natural number qqq; a q×qq\times qq×q complex matrix g1g_1g1​ and two q2×q2q^2\times q^2q2×q2 complex matrices grow,gcolg_{\mathrm{row}}, g_{\mathrm{col}}grow​,gcol​ (indexed by pairs of levels), each assumed Hermitian; and a real number eee. Write GΛ(L)G^{\Lambda(L)}GΛ(L) for the Hamiltonian on the L×LL\times LL×L open-boundary lattice with local dimension qqq built from g1g_1g1​ on every site, growg_{\mathrm{row}}grow​ on every horizontal edge and gcolg_{\mathrm{col}}gcol​ on every vertical edge. The single analytic hypothesis is that for every L>0L > 0L>0,

λ0(GΛ(L))−e L2 ∈ [−12, 12],\lambda_0\bigl(G^{\Lambda(L)}\bigr) - e\,L^2 \ \in\ \Bigl[-\tfrac12,\ \tfrac12\Bigr],λ0​(GΛ(L))−eL2 ∈ [−21​, 21​],

i.e. the ground state energy of the given family equals eL2eL^2eL2 up to an additive error of at most 1/21/21/2, uniformly in LLL. Here λ0\lambda_0λ0​ is the infimum of the set of real spectral points, which is 000 by convention when that set is empty.

Conclusion. There exist a natural number ddd, a d×dd\times dd×d complex matrix h1h_1h1​ and two d2×d2d^2\times d^2d2×d2 complex matrices hrow,hcolh_{\mathrm{row}}, h_{\mathrm{col}}hrow​,hcol​, all three Hermitian, such that, writing HΛ(L)H^{\Lambda(L)}HΛ(L) for the corresponding Hamiltonian on the L×LL\times LL×L open-boundary lattice with local dimension ddd, both of the following hold.

Clause (iii), the non-halting regime. For every L>0L > 0L>0 such that the step-bounded evaluation of ccc on input 000 with fuel LLL returns nothing (the machine has not halted within LLL steps):

  1. the ground state of HΛ(L)H^{\Lambda(L)}HΛ(L) is non-degenerate — the eigenspace at λ0(HΛ(L))\lambda_0(H^{\Lambda(L)})λ0​(HΛ(L)) has complex dimension 111;
  2. HΛ(L)H^{\Lambda(L)}HΛ(L) has gap at least 1/21/21/2: every real spectral point μ≠λ0(HΛ(L))\mu \neq \lambda_0(H^{\Lambda(L)})μ=λ0​(HΛ(L)) satisfies μ≥λ0(HΛ(L))+12\mu \ge \lambda_0(H^{\Lambda(L)}) + \tfrac12μ≥λ0​(HΛ(L))+21​;
  3. there is a non-zero v∈Cdv\in\mathbb{C}^dv∈Cd whose product vector Ψ(σ)=∏sv(σ(s))\Psi(\sigma) = \prod_{s}v(\sigma(s))Ψ(σ)=∏s​v(σ(s)) (product over the L2L^2L2 sites) satisfies HΛ(L)Ψ=λ0(HΛ(L)) ΨH^{\Lambda(L)}\Psi = \lambda_0(H^{\Lambda(L)})\,\PsiHΛ(L)Ψ=λ0​(HΛ(L))Ψ; the eigenvalue is the ground state energy itself, whose value is not specified.

As above, the lattice side length and the number of allowed computation steps are the same number LLL.

Clause (iv), the halting regime. If the evaluation of ccc on input 000 is defined, then there exists a natural number L0L_0L0​ such that for every L>L0L > L_0L>L0​ and every real xxx with 0≤x<120 \le x < \tfrac120≤x<21​,

mHΛ(L)(λ0(HΛ(L))+x)  =  mGΛ(L)(λ0(GΛ(L))+x),m_{H^{\Lambda(L)}}\bigl(\lambda_0(H^{\Lambda(L)}) + x\bigr) \;=\; m_{G^{\Lambda(L)}}\bigl(\lambda_0(G^{\Lambda(L)}) + x\bigr),mHΛ(L)​(λ0​(HΛ(L))+x)=mGΛ(L)​(λ0​(GΛ(L))+x),

where mM(μ)m_M(\mu)mM​(μ) denotes the complex dimension of the eigenspace of MMM at the real number μ\muμ (equal to 000 when μ\muμ is not an eigenvalue). So in the half-open window of width 1/21/21/2 above the respective ground state energies, the two spectra agree including multiplicities; at x=0x = 0x=0 this equates the multiplicities of the two ground state energies. Nothing is asserted for x≥1/2x \ge 1/2x≥1/2, for x<0x<0x<0, for L≤L0L \le L_0L≤L0​, or about any operator relating the two eigenspaces.

The local dimension ddd is asserted only to exist; no bound in terms of qqq or of the code ccc is given. The two clauses hold simultaneously for one triple (h1,hrow,hcol)(h_1,h_{\mathrm{row}},h_{\mathrm{col}})(h1​,hrow​,hcol​), which may depend on ccc, qqq, g1g_1g1​, growg_{\mathrm{row}}grow​, gcolg_{\mathrm{col}}gcol​ and eee.

Provenance: this read-back was produced by the agent that drafted the item, not by an independent blind auditor.

Human review
  • Endorsed by Shuze Chen · Sep 15, 2026

  • Endorsed by LG · Sep 15, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me