Cycles modulo boundaries for a finite linear complex
DefinitionSmooth4AlgebraHomologyLet be a linear map over a field. Its cycle space is . The subspace called boundaries in cycles is , represented inside ; the homology space is its quotient. When , all boundaries are cycles, so this is precisely the usual homology .
Every theorem using this construction as square-zero homology explicitly assumes . The definition itself works for an arbitrary linear map.
import Mathlib.LinearAlgebra.FiniteDimensional.Lemmas
import Mathlib.LinearAlgebra.Dimension.Constructions
set_option autoImplicit false
namespace Smooth4Algebra
/-- Boundaries viewed inside the cycle space. When `d ∘ d = 0`, these
are exactly the boundaries of the square-zero complex. -/
def boundariesInCycles {K V : Type*} [Field K] [AddCommGroup V] [Module K V]
(d : V →ₗ[K] V) : Submodule K (LinearMap.ker d) :=
(LinearMap.range d).comap (LinearMap.ker d).subtype
/-- Actual vector-space homology, represented as cycles modulo boundaries.
Every theorem using it as homology explicitly assumes square-zero. -/
abbrev Homology {K V : Type*} [Field K] [AddCommGroup V] [Module K V]
(d : V →ₗ[K] V) :=
(LinearMap.ker d) ⧸ boundariesInCycles d
end Smooth4Algebra
Read-back
What the Lean code literally says, in plain math · Codex independent blind auditor; exact model identifier unavailable
For every field , every additive commutative group equipped with a -module structure, and every -linear endomorphism , this defines the subspace of consisting of those vectors whose underlying element of lies in . Thus its elements are exactly the vectors satisfying and for some , regarded as elements of the vector space ; under the inclusion , this subspace corresponds to . No finite-dimensionality or equation is assumed, and the zero vector space and the zero endomorphism are included.
For every field , every additive commutative group equipped with a -module structure, and every -linear endomorphism , this is an abbreviation for the quotient vector space of by its subspace . Equivalently, it is with the intersection viewed inside ; its representatives are vectors killed by , and two such representatives determine the same quotient element precisely when their difference belongs to . The definition imposes neither finite-dimensionality nor , and includes the zero vector space and the zero endomorphism.
Confirmed by the mission captain (proposal self-audit).