Skip to content

Lean formalization of the Riemann Hypothesis (Alpöge, 2026-11-20) being cleaned up by members of the Lean community.

Python
6.0 KB
Raw Blame
module

public import TauCeti.Analysis.InnerProductSpace.ArrowTriangle
public import New.UpperBound.Objects.RowChain

import TauCeti.LinearAlgebra.Matrix.GeneralLinearGroup.UpperTriangular.Block

/-!
# Orders of block triangular groups and commutation along chains

The group `New.parabolic (New.blockNumber j)` consists of the invertible block upper triangular
matrices whose diagonal blocks are one copy of `N` and `j` copies of `T`. Its order is
`#GL N R * (#GL T R) ^ j` times a power of `#R` whose exponent does not depend on the commutative
ring `R`.

An abstract triangle of spaces `F i n` has arrows `a t i n : F i n → F i (n + 1)` along row `i` and
`d t i n : F i (n + 1) → F (i + 1) n` down to the next row. The map `j i` embeds `V` in `F i 0`. The
arrows depend on a parameter `t : I`. An abstract relation `M c f` between functions `c : I → ℂ` and
`f : I → ℝ`, unital and multiplicative, is read "`c` has modulus `f`". For nonzero weights, weighted
chains along a row are injective on `V`. If the constants of the squares have prescribed moduli
`L r k`, the squares obey an adjoint law and the Gram forms of the first arrows are given, then the
Gram form of a full chain and the modulus of its constant follow from Tau Ceti's arrow triangle
theorems, used directly in `ChainNorms` with group orders as real weights. In the application
`F i n` is attached to the interval `[i + 1, i + n]`, the arrow `a` adds the greatest element,
and `d` stands for the adjoint of the map that adds the least element.

## Main definitions and results

* `New.exists_card_parabolic_blockNumber_eq`: the order of the group of block triangular matrices
  `New.parabolic (New.blockNumber j)`.

The triangle, weighted chain and Gram form theorems are in
`TauCeti.Analysis.InnerProductSpace.ArrowTriangle`.

Notions from other files:
* `New.BlockIndex N T j`, `New.blockNumber j`: the disjoint union of `N` and `j` copies of `T`, and
  the number of the block of an index (`0` on `N`, and `l` on the `l`-th copy of `T`).
* `New.compUpTo L j`: for linear maps `L i : M i → M (i + 1)`, the composite
  `L (j - 1) ∘ ⋯ ∘ L 0 : M 0 → M j`.
-/

@[expose] public section

/-! ## Order of a group of block triangular matrices -/

namespace New

open Matrix Fintype

variable {N T : Type}

/-- Adding the last block leaves each earlier block unchanged as a type. -/
private def blockFiberCastSucc {j : ℕ} (k : Fin (j + 1)) :
    {a : BlockIndex N T (j + 1) // blockNumber (j + 1) a = k.castSucc} ≃
      {a : BlockIndex N T j // blockNumber j a = k} := by
  letI : IsEmpty {t : T // blockNumber (R := N) (j + 1) (Sum.inr t) = k.castSucc} :=
    ⟨fun t ↦ Fin.ne_of_lt k.castSucc_lt_last (by simpa [blockNumber] using t.property.symm)⟩
  exact (Equiv.subtypeSum.trans (Equiv.sumEmpty _ _)).trans
    (Equiv.subtypeEquivRight fun _ ↦ by simp [blockNumber])

/-- The last block is a copy of `T`. -/
private def blockFiberLast (j : ℕ) :
    {a : BlockIndex N T (j + 1) // blockNumber (j + 1) a = Fin.last (j + 1)} ≃ T := by
  letI : IsEmpty {a : BlockIndex N T j //
      blockNumber (T := T) (j + 1) (Sum.inl a) = Fin.last (j + 1)} :=
    ⟨fun a ↦ by
      have ha := a.property
      simp [blockNumber] at ha⟩
  exact (Equiv.subtypeSum.trans (Equiv.emptySum _ _)).trans
    (Equiv.subtypeUnivEquiv fun _ ↦ by simp [blockNumber])

variable (N T) [Fintype N] [Fintype T] [DecidableEq T] [DecidableEq N]

/-- The group `parabolic (blockNumber j)` of invertible block upper triangular matrices with one
diagonal block indexed by `N` and `j` diagonal blocks indexed by `T` has order
`#GL N R * (#GL T R) ^ j * #R ^ k`, with `k` independent of the commutative ring `R`. -/
lemma exists_card_parabolic_blockNumber_eq.{u} (j : ℕ) :
    ∃ k : ℕ, ∀ (R : Type u) [CommRing R],
      Nat.card (parabolic (R := R) (blockNumber (R := N) (T := T) j)) =
        Nat.card (GL N R) * Nat.card (GL T R) ^ j * Nat.card R ^ k := by
  suffices h_blocks : ∀ (R : Type u) [CommRing R],
      (∏ a : Fin (j + 1), Nat.card (GL {i : BlockIndex N T j // blockNumber j i = a} R)) =
        Nat.card (GL N R) * Nat.card (GL T R) ^ j by
    let b := blockNumber (R := N) (T := T) j
    refine ⟨Nat.card {p : BlockIndex N T j × BlockIndex N T j // b p.1 < b p.2}, fun R _ ↦ ?_⟩
    have h_group : parabolic (R := R) b = TauCeti.blockTriangularGroup R b := by
      ext g
      exact TauCeti.mem_blockTriangularGroup_iff.symm
    rw [h_group, TauCeti.natCard_blockTriangularGroup, h_blocks R]
  intro R _
  induction j with
  | zero =>
    rw [Fin.prod_univ_one, pow_zero, mul_one]
    exact Nat.card_congr
      (GeneralLinearGroup.reindex (R := R) (Equiv.subtypeUnivEquiv fun _ ↦ rfl)).toEquiv
  | succ j ih =>
    rw [Fin.prod_univ_castSucc]
    have h_prev (k : Fin (j + 1)) :
        Nat.card (GL {a : BlockIndex N T (j + 1) // blockNumber (j + 1) a = k.castSucc} R) =
          Nat.card (GL {a : BlockIndex N T j // blockNumber j a = k} R) :=
      Nat.card_congr (GeneralLinearGroup.reindex (R := R) (blockFiberCastSucc k)).toEquiv
    have h_last :
        Nat.card (GL {a : BlockIndex N T (j + 1) // blockNumber (j + 1) a = Fin.last (j + 1)} R) =
          Nat.card (GL T R) :=
      Nat.card_congr (GeneralLinearGroup.reindex (R := R) (blockFiberLast (N := N) j)).toEquiv
    simp only [h_prev, h_last, ih, pow_succ, mul_assoc]

end New

/-! ## Commutation along chains from square moduli -/

namespace New.Exchange

open Finset TauCeti.ArrowTriangle

variable {I : Type} {F : ℕ → ℕ → Type} [∀ i n, NormedAddCommGroup (F i n)]
  [∀ i n, InnerProductSpace ℂ (F i n)]
  {m : ℕ} {w : I → ℕ → ℝ} {M : (I → ℂ) → (I → ℝ) → Prop}
  {L : ℕ → ℕ → I → ℝ}
  {a : I → ∀ i n, F i n →ₗ[ℂ] F i (n + 1)}
  {d : I → ∀ i n, F i (n + 1) →ₗ[ℂ] F (i + 1) n}

/-- The weighted chain is the composite of the weighted arrows. -/
lemma weightedChain_eq_compUpTo (t : I) (i n : ℕ) :
    weightedChain w a t i n = compUpTo (fun k ↦ (w t k : ℂ) • a t i k) n := by
  induction n with
  | zero => ext y; simp [compUpTo_zero_apply]
  | succ n ih => ext y; simp [compUpTo_succ_apply, ih]

end New.Exchange