Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Cycles modulo boundaries for a finite linear complex

Definition
Smooth4AlgebraHomology

by ryanshin · Sep 5, 2026 · Mathlib 0df444a (Lean v4.33.1)

homologicalalgebralinearalgebra

Let d:V→Vd:V\to Vd:V→V be a linear map over a field. Its cycle space is ker⁡d\ker dkerd. The subspace called boundaries in cycles is ker⁡d∩im⁡d\ker d\cap\operatorname{im}dkerd∩imd, represented inside ker⁡d\ker dkerd; the homology space is its quotient. When d2=0d^2=0d2=0, all boundaries are cycles, so this is precisely the usual homology ker⁡d/im⁡d\ker d/\operatorname{im}dkerd/imd.

Every theorem using this construction as square-zero homology explicitly assumes d2=0d^2=0d2=0. The definition itself works for an arbitrary linear map.

Definition code
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

Source
Newly authored from cycle21_corner_budget_independent.md, §1 (joint kernel/projection argument), SHA-256 89aa667aee6440fe989e7664eec02f5a7a60010d1d86a77dd094bdf95ba8bdba
Read-back

What the Lean code literally says, in plain math · Codex independent blind auditor; exact model identifier unavailable

For every field KKK, every additive commutative group VVV equipped with a KKK-module structure, and every KKK-linear endomorphism d:V→Vd:V\to Vd:V→V, this defines the subspace of ker⁡d\ker dkerd consisting of those vectors whose underlying element of VVV lies in im⁡d\operatorname{im}dimd. Thus its elements are exactly the vectors z∈Vz\in Vz∈V satisfying d(z)=0d(z)=0d(z)=0 and z=d(v)z=d(v)z=d(v) for some v∈Vv\in Vv∈V, regarded as elements of the vector space ker⁡d\ker dkerd; under the inclusion ker⁡d↪V\ker d\hookrightarrow Vkerd↪V, this subspace corresponds to ker⁡d∩im⁡d\ker d\cap\operatorname{im}dkerd∩imd. No finite-dimensionality or equation d2=0d^2=0d2=0 is assumed, and the zero vector space and the zero endomorphism are included.

For every field KKK, every additive commutative group VVV equipped with a KKK-module structure, and every KKK-linear endomorphism d:V→Vd:V\to Vd:V→V, this is an abbreviation for the quotient vector space of ker⁡d\ker dkerd by its subspace {z∈ker⁡d: there exists v∈V with d(v)=z}\{z\in\ker d:\text{ there exists }v\in V\text{ with }d(v)=z\}{z∈kerd: there exists v∈V with d(v)=z}. Equivalently, it is ker⁡d/(ker⁡d∩im⁡d)\ker d/(\ker d\cap\operatorname{im}d)kerd/(kerd∩imd) with the intersection viewed inside ker⁡d\ker dkerd; its representatives are vectors killed by ddd, and two such representatives determine the same quotient element precisely when their difference belongs to im⁡d\operatorname{im}dimd. The definition imposes neither finite-dimensionality nor d2=0d^2=0d2=0, and includes the zero vector space and the zero endomorphism.

Human review
  • Endorsed by Shuze Chen · Sep 6, 2026

  • Endorsed by ryanshin · Sep 6, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me