Two-area signed swap and its five equal-rank cutoffs
DefinitionNullConeEqualRankModelanalysismathematical-physicsquantum-gravity
The two-area model uses the negative swap on a pair of complex amplitudes, with a factor on the second component after the right boost. For finite sets of indices in the two bands, the model sums the centered block matrix elements with a common weight . The same definitions specify five cutoff schedules by giving separate even and odd prefix lengths in each band. At stage the first band keeps even and odd labels. The second keeps even and odd labels, with taking the five specified values. These definitions fix the operator, the cutoffs and the comparison values used in the equal-rank theorem.
Definition code
import Mathlib.Algebra.BigOperators.Ring.Finset
import Mathlib.Data.Complex.Basic
import Mathlib.Data.Finset.Sum
import Mathlib.Tactic.Ring
/-! Finite contractions and equal-rank exhaustions of the two-area model in
Section 2 of the Phase 2 re-examination. The labels within a band form two
countable lists, identified with the even and odd labels. -/
namespace NullCone.EqualRank
open Finset
open scoped BigOperators ComplexConjugate
noncomputable section
/-- The real matrix element of the negative swap on one diagonal tensor block. -/
def flipForm (x y : ℂ) : ℝ := -(conj x * y + conj y * x).re
def bit (p : Prop) [Decidable p] : ℝ := if p then 1 else 0
/-- Twice the change of the swap matrix element, with the centered norm term.
The right boost multiplies the second coefficient by its relative phase. -/
def block (z : ℂ) (a b : Prop) [Decidable a] [Decidable b] : ℝ :=
let x : ℂ := bit a
let y : ℂ := bit b
2 * (flipForm x (z * y) - flipForm x y) -
(1 - z.re) * (conj x * x + conj y * y).re
variable {ι : Type*} [DecidableEq ι]
/-- Twice the unnormalized signed amplitude; w is the common Gaussian weight. -/
def twiceAmplitude (w : ℝ) (z : ℂ) (a b : Finset ι) : ℝ :=
w * ∑ j ∈ a ∪ b, block z (j ∈ a) (j ∈ b)
inductive Route
| aligned | positive | zero | negative | opposed
/-- The two coordinates count the first labels of each parity. -/
def striped (e o : ℕ) : Finset (ℕ ⊕ ℕ) := (range e).disjSum (range o)
/-- At natural stage k, the table in the note uses n = k + 1. -/
def firstBand (k : ℕ) := striped (5 * (k + 1)) (k + 1)
def evenCount (r : Route) (k : ℕ) : ℕ :=
match r with
| .aligned => 5 * (k + 1)
| .positive => 2 * (k + 1) + 1
| .zero => 2 * (k + 1)
| .negative => 2 * k + 1
| .opposed => k + 1
def secondBand (r : Route) (k : ℕ) :=
striped (evenCount r k) (6 * (k + 1) - evenCount r k)
/-- The signed amplitude in units of w(1 − Re z). -/
def value (r : Route) (k : ℕ) : ℤ :=
match r with
| .aligned => 6 * (k + 1 : ℤ)
| .positive => 2
| .zero => 0
| .negative => -2
| .opposed => -2 * (k + 1 : ℤ)
end
end NullCone.EqualRank
Source
SHIN09 equal-rank supplement, definitions of the swap, finite amplitude and cutoff routes, lines 17–109. https://github.com/thunder-detector/null-cone-quantum-gravity-verification/blob/7b9a10536258715ca3032a1eabc710600aca3c2a/phase2/supplements/equal_rank/EqualRank.lean#L17-L109