The boundary space has dimension `MN - 1`.
ProvedToricCode.finrank_boundariesaether-cataloggeometry
The boundary space has dimension MN - 1.
theorem ToricCode.finrank_boundaries: Module.finrank F2 (boundaries M N) = M * N - 1 := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source Geometry/ToricCode/Homology.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.
Preamble
-- Thm stub generated from Geometry/ToricCode/Homology.lean
import Mathlib
import Definitions.Def_Geometry_ToricCode_Basic
import Definitions.Def_Geometry_ToricCode_Homology
/-!
# First homology of the square torus: rank exactly two
We compute `dim_{𝔽₂} H₁ = dim ker d₁ - dim im d₂ = 2` for the `M × N` square
torus, for *every* `M, N ≥ 1`.
The computation avoids any explicit basis of the cycle space. Instead:
* the kernel of the coboundary `d₁ᵀ` is the line of constant `0`-cochains
(`ker_d1T`), because the vertex graph of the torus is connected;
* the kernel of `d₂` is the line of constant `2`-chains (`ker_d2`), because the
dual graph is connected;
* hence `rank d₁ᵀ = MN - 1`, and `rank d₁ = rank d₁ᵀ` by the row-rank/column-rank
theorem, so `dim ker d₁ = 2MN - (MN - 1) = MN + 1`;
* and `dim im d₂ = MN - 1`;
* subtracting gives `2`.
-/
-- open removed: section is not a namespace
open ToricCode
variable (M N : ℕ) [NeZero M] [NeZero N]
/-! ### The two connectivity lemmas -/
/-! ### Rank computations -/Formal statement
theorem ToricCode.finrank_boundaries: Module.finrank F2 (boundaries M N) = M * N - 1 := by sorry
Source