Documentation

CertifiedGaps.Heisenberg.WordBand

Spin-one words as numbers, and exchange bonds as bands #

The integer Horner recursions of both spin-one papers act on the S^z basis of n spins one, the words σ ∈ {0, 1, 2}ⁿ (letter σⱼ is m = σⱼ - 1). Numbering the words in base 3 with site 0 least significant, wordNum σ = ∑ⱼ σⱼ 3ʲ, turns the spin-flip hop σⱼ ↦ σⱼ - 1, σₖ ↦ σₖ + 1 of an exchange bond into a band of constant offset 3ᵏ - 3ʲ. This file collects the word numbering and the bands shared by the boundary-field recurrence (Heisenberg/BoundaryData.lean, Heisenberg/BoundaryThermal.lean) and the periodic recurrence (Heisenberg/ThermalPacked.lean).

Main definitions #

Main results #

Word numbers #

Digit j of the word number k: the letter wⱼ + 1 ∈ {0, 1, 2}.

Equations
Instances For

    The letter wⱼ = digit k j - 1 ∈ {-1, 0, 1}.

    Equations
    Instances For
      @[reducible, inline]

      The word number e σ = ∑ᵢ σᵢ 3ⁱ (site 0 least significant).

      Equations
      Instances For
        theorem CertifiedGaps.SpinOneHeisenberg.wordNum_val {n : ℕ} (σ : Fin n → Fin 3) :
        ↑↑((wordNum n) σ) = ∑ i : Fin n, ↑↑(σ i) * 3 ^ ↑i
        theorem CertifiedGaps.SpinOneHeisenberg.digit_wordNum {n : ℕ} (σ : Fin n → Fin 3) (j : Fin n) :
        digit ↑((wordNum n) σ) ↑j = ↑(σ j)

        The digits of a word number are the letters.

        theorem CertifiedGaps.SpinOneHeisenberg.letter_wordNum {n : ℕ} (σ : Fin n → Fin 3) (j : Fin n) :
        letter ↑((wordNum n) σ) ↑j = mz (σ j)
        theorem CertifiedGaps.SpinOneHeisenberg.sum_update₂ {n : ℕ} (w : Fin n → ℤ) (σ : Fin n → Fin 3) {j k : Fin n} (hjk : j ≠ k) (a b : Fin 3) :
        ∑ i : Fin n, ↑↑(Function.update (Function.update σ j a) k b i) * w i = ∑ i : Fin n, ↑↑(σ i) * w i + (↑↑a - ↑↑(σ j)) * w j + (↑↑b - ↑↑(σ k)) * w k

        Changing two letters changes a weighted letter sum by the weighted differences.

        theorem CertifiedGaps.SpinOneHeisenberg.sum_update {n : ℕ} (w : Fin n → ℤ) (σ : Fin n → Fin 3) (j : Fin n) (a : Fin 3) :
        ∑ i : Fin n, ↑↑(Function.update σ j a i) * w i = ∑ i : Fin n, ↑↑(σ i) * w i + (↑↑a - ↑↑(σ j)) * w j

        Changing one letter changes a weighted letter sum by the weighted difference.

        theorem CertifiedGaps.SpinOneHeisenberg.wordNum_update₂ {n : ℕ} (σ : Fin n → Fin 3) {j k : Fin n} (hjk : j ≠ k) (a b : Fin 3) :
        ↑↑((wordNum n) (Function.update (Function.update σ j a) k b)) = ↑↑((wordNum n) σ) + (↑↑a - ↑↑(σ j)) * 3 ^ ↑j + (↑↑b - ↑↑(σ k)) * 3 ^ ↑k

        Changing two letters changes the word number by the differences of the place values.

        theorem CertifiedGaps.SpinOneHeisenberg.wordNum_update {n : ℕ} (σ : Fin n → Fin 3) (j : Fin n) (a : Fin 3) :
        ↑↑((wordNum n) (Function.update σ j a)) = ↑↑((wordNum n) σ) + (↑↑a - ↑↑(σ j)) * 3 ^ ↑j

        Changing one letter changes the word number by the difference of the place value.

        theorem CertifiedGaps.SpinOneHeisenberg.le_wordNum {n : ℕ} (σ : Fin n → Fin 3) (j : Fin n) (hj : 1 ≤ ↑(σ j)) :
        3 ^ ↑j ≤ ↑((wordNum n) σ)

        A word with a nonzero letter at site j has number at least 3ʲ.

        theorem CertifiedGaps.SpinOneHeisenberg.wordNum_eq_iff {n : ℕ} {σ τ : Fin n → Fin 3} :
        ↑↑((wordNum n) σ) = ↑↑((wordNum n) τ) ↔ σ = τ

        Sums over word numbers #

        theorem CertifiedGaps.SpinOneHeisenberg.list_sum_range {M : Type u_1} [AddCommMonoid M] (f : ℕ → M) (m : ℕ) :
        (List.map f (List.range m)).sum = ∑ i ∈ Finset.range m, f i
        theorem CertifiedGaps.SpinOneHeisenberg.getD_map_range {α : Type u_1} (f : ℕ → α) (d k : ℕ) (a : α) (hk : k < d) :
        (List.map f (List.range d)).getD k a = f k
        theorem CertifiedGaps.SpinOneHeisenberg.sum_map_flatMap {α : Type u_1} {β : Type u_2} {M : Type u_3} [AddCommMonoid M] (L : List α) (f : α → List β) (g : β → M) :
        (List.map g (List.flatMap f L)).sum = (List.map (fun (a : α) => (List.map g (f a)).sum) L).sum
        theorem CertifiedGaps.SpinOneHeisenberg.sum_words {n : ℕ} {M : Type u_1} [AddCommMonoid M] (f : ℕ → M) :
        ∑ σ : Fin n → Fin 3, f ↑((wordNum n) σ) = ∑ k ∈ Finset.range (3 ^ n), f k

        A sum over words is a sum over word numbers.

        Hops between words #

        def CertifiedGaps.SpinOneHeisenberg.hopUp {n : ℕ} (j k : Fin n) (σ : Fin n → Fin 3) :
        Option (Fin n → Fin 3)

        The bond hop σⱼ ↦ σⱼ - 1, σₖ ↦ σₖ + 1, allowed when σⱼ ≥ 1 and σₖ ≤ 1.

        Equations
        Instances For
          theorem CertifiedGaps.SpinOneHeisenberg.hopUp_eq_some {n : ℕ} {j k : Fin n} (hjk : j ≠ k) (σ τ : Fin n → Fin 3) :
          hopUp j k σ = some τ ↔ (∀ (i : Fin n), i ≠ j → i ≠ k → σ i = τ i) ∧ ↑(σ j) = ↑(τ j) + 1 ∧ ↑(σ k) + 1 = ↑(τ k)
          theorem CertifiedGaps.SpinOneHeisenberg.hopUp_ne_self {n : ℕ} {j k : Fin n} (hjk : j ≠ k) (σ : Fin n → Fin 3) :
          hopUp j k σ ≠ some σ
          theorem CertifiedGaps.SpinOneHeisenberg.bondOp_apply_of_flip₂ {n : ℕ} {j k : Fin n} (hjk : j ≠ k) {B : Matrix (Fin 3 × Fin 3) (Fin 3 × Fin 3) ℤ} {e c₁ c₂ : ℤ} (hB : ∀ (p q : Fin 3 × Fin 3), B p q = ((if p = q then e * (mz p.1 * mz p.2) else 0) + c₁ * if ↑p.1 = ↑q.1 + 1 ∧ ↑p.2 + 1 = ↑q.2 then 1 else 0) + c₂ * if ↑p.1 + 1 = ↑q.1 ∧ ↑p.2 = ↑q.2 + 1 then 1 else 0) (σ τ : Fin n → Fin 3) :
          bondOp j k B σ τ = ((if σ = τ then e * (mz (σ j) * mz (σ k)) else 0) + c₁ * if hopUp j k σ = some τ then 1 else 0) + c₂ * if hopUp k j σ = some τ then 1 else 0

          A bond of spin-flip type in the S^z basis, entry by entry: if the two-site matrix B is e mz mz on the diagonal, c₁ on the hop that lowers the first site and c₂ on the hop that raises it, the bond embedded on sites j, k has the diagonal e mz mz, the entry c₁ for the hop j → k and c₂ for the hop k → j. (The C-twisted seam has c₁ ≠ c₂.)

          theorem CertifiedGaps.SpinOneHeisenberg.bondOp_apply_of_flip {n : ℕ} {j k : Fin n} (hjk : j ≠ k) {B : Matrix (Fin 3 × Fin 3) (Fin 3 × Fin 3) ℤ} {c : ℤ} (hB : ∀ (p q : Fin 3 × Fin 3), B p q = ((if p = q then mz p.1 * mz p.2 else 0) + c * if ↑p.1 = ↑q.1 + 1 ∧ ↑p.2 + 1 = ↑q.2 then 1 else 0) + c * if ↑p.1 + 1 = ↑q.1 ∧ ↑p.2 = ↑q.2 + 1 then 1 else 0) (σ τ : Fin n → Fin 3) :
          bondOp j k B σ τ = ((if σ = τ then mz (σ j) * mz (σ k) else 0) + c * if hopUp j k σ = some τ then 1 else 0) + c * if hopUp k j σ = some τ then 1 else 0

          An exchange-type bond in the S^z basis, entry by entry: if the two-site matrix B is mz mz on the diagonal and c on the two spin-flip hops, the bond embedded on sites j, k has the diagonal mz mz and the entry c for each of the two hops.

          theorem CertifiedGaps.SpinOneHeisenberg.bondOp_exchangeZ_apply {n : ℕ} {j k : Fin n} (hjk : j ≠ k) (σ τ : Fin n → Fin 3) :
          bondOp j k exchangeZ σ τ = ((if σ = τ then mz (σ j) * mz (σ k) else 0) + if hopUp j k σ = some τ then 1 else 0) + if hopUp k j σ = some τ then 1 else 0

          The integer bond in the S^z basis, entry by entry: the diagonal mz mz and one unit entry for each of the two bond hops.

          theorem CertifiedGaps.SpinOneHeisenberg.bondOp_twistedExchangeZ_apply {n : ℕ} {j k : Fin n} (hjk : j ≠ k) (σ τ : Fin n → Fin 3) :
          bondOp j k twistedExchangeZ σ τ = ((if σ = τ then mz (σ j) * mz (σ k) else 0) - if hopUp j k σ = some τ then 1 else 0) - if hopUp k j σ = some τ then 1 else 0

          The twisted bond in the S^z basis: the diagonal mz mz and the entry -1 for each of the two bond hops.

          Hops as bands of the word numbers #

          The band of the hop σⱼ ↦ σⱼ - 1, σₖ ↦ σₖ + 1 (j ≠ k) on the numbers of the words of length n, with entry magnitude c: the hop changes the word number by 3ᵏ - 3ʲ.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem CertifiedGaps.SpinOneHeisenberg.hopBand_term {n : ℕ} {j k : Fin n} (hjk : j ≠ k) (c : ℕ) (σ τ : Fin n → Fin 3) :
            (if ↑((wordNum n) τ) = (hopBand n (↑j) (↑k) c).nb ↑((wordNum n) σ) then (hopBand n (↑j) (↑k) c).mask.getD (↑((wordNum n) σ)) 0 else 0) = if hopUp j k σ = some τ then c else 0

            The band of a hop, entry by entry: hopBand n j k c has the entry c from the number of σ to the number of τ exactly when the hop j → k takes σ to τ.

            theorem CertifiedGaps.SpinOneHeisenberg.hopBand_inRange {n : ℕ} {j k : Fin n} (hjk : j ≠ k) (c x : ℕ) (hx : x < 3 ^ n) (hm : (hopBand n (↑j) (↑k) c).mask.getD x 0 ≠ 0) :
            ((hopBand n (↑j) (↑k) c).up = true → x + (hopBand n (↑j) (↑k) c).off < 3 ^ n) ∧ ((hopBand n (↑j) (↑k) c).up = false → (hopBand n (↑j) (↑k) c).off ≤ x)

            A hop band stays in range: a nonzero entry in row x < 3ⁿ couples to a word number < 3ⁿ, and a band below the diagonal does not reach below 0 (Band.InRange).