The areas / V26. Homological algebra
Mathlib.Algebra.Homology.EulerCharacteristic
24 declarations. Mathlib docs · Source
def ComplexShape.EulerCharSigns.ctorIdx E1 #
{ι : Type u_1} → {c : ComplexShape ι} → c.EulerCharSigns → ℕ
class ComplexShape.EulerCharSigns E1 #
{ι : Type u_1} → ComplexShape ι → Type u_1
Signs for terms of Euler characteristic on complexes.
ctor ComplexShape.EulerCharSigns.mk E0 #
{ι : Type u_1} → {c : ComplexShape ι} → (χ : ι → ℤˣ) → (∀ {i j : ι}, c.Rel i j → χ j = -χ i) → c.EulerCharSigns
abbrev ComplexShape.EulerCharSigns.χ E1 #
{ι : Type u_1} → (c : ComplexShape ι) → [self : c.EulerCharSigns] → ι → ℤˣ
The sign for each index
theorem ComplexShape.EulerCharSigns.χ_next E1 #
∀ {ι : Type u_1} {c : ComplexShape ι} [self : c.EulerCharSigns] {i j : ι},
c.Rel i j → ComplexShape.EulerCharSigns.χ c j = -ComplexShape.EulerCharSigns.χ c i
Signs alternate along relations in the complex shape
abbrev ComplexShape.χ E1 #
{ι : Type u_1} → (c : ComplexShape ι) → [c.EulerCharSigns] → ι → ℤˣ
The sign at index i for Euler characteristic computations.
theorem ComplexShape.χ_next E1 #
∀ {ι : Type u_1} (c : ComplexShape ι) [inst : c.EulerCharSigns] {i j : ι}, c.Rel i j → c.χ j = -c.χ i
Signs alternate in the forward direction of the complex shape.
theorem ComplexShape.χ_prev E1 #
∀ {ι : Type u_1} (c : ComplexShape ι) [inst : c.EulerCharSigns] {i j : ι}, c.Rel i j → c.χ i = -c.χ j
Signs alternate in the backward direction of the complex shape.
theorem ComplexShape.eulerCharSignsUpInt_χ E0 #
∀ (n : ℤ), ComplexShape.EulerCharSigns.χ (ComplexShape.up ℤ) n = n.negOnePow
instance ComplexShape.eulerCharSignsUpInt E0 #
(ComplexShape.up ℤ).EulerCharSigns
instance ComplexShape.eulerCharSignsDownInt E0 #
(ComplexShape.down ℤ).EulerCharSigns
theorem ComplexShape.eulerCharSignsDownInt_χ E0 #
∀ (n : ℤ), ComplexShape.EulerCharSigns.χ (ComplexShape.down ℤ) n = n.negOnePow
instance ComplexShape.eulerCharSignsUpNat E0 #
(ComplexShape.up ℕ).EulerCharSigns
theorem ComplexShape.eulerCharSignsUpNat_χ E0 #
∀ (n : ℕ), ComplexShape.EulerCharSigns.χ (ComplexShape.up ℕ) n = (-1) ^ n
theorem ComplexShape.eulerCharSignsDownNat_χ E0 #
∀ (n : ℕ), ComplexShape.EulerCharSigns.χ (ComplexShape.down ℕ) n = (-1) ^ n
instance ComplexShape.eulerCharSignsDownNat E0 #
(ComplexShape.down ℕ).EulerCharSigns
def GradedObject.finrankSupport E1 #
{R : Type u_1} → [inst : Ring R] → {ι : Type u_2} → CategoryTheory.GradedObject ι (ModuleCat R) → Set ι
The support of a graded object with respect to finite rank: the set of indices where the rank is nonzero.
theorem GradedObject.finrankSupport_subset_iff E0 #
∀ {R : Type u_1} [inst : Ring R] {ι : Type u_2} (X : CategoryTheory.GradedObject ι (ModuleCat R)) (s : Set ι),
GradedObject.finrankSupport X ⊆ s ↔ ∀ i ∉ s, Module.finrank R ↑(X i) = 0
The finite rank support is contained in a set if and only if the rank vanishes outside that set.
def GradedObject.eulerChar E1 #
{R : Type u_1} →
[inst : Ring R] →
{ι : Type u_2} → (c : ComplexShape ι) → [c.EulerCharSigns] → CategoryTheory.GradedObject ι (ModuleCat R) → ℤ
The Euler characteristic of a graded object as a sum over all indices.
The sign at each index is determined by the ComplexShape.EulerCharSigns instance.
Defaults to 0 if the support of the ranks of the objects of X is infinite.
theorem GradedObject.eulerChar_eq_sum_finSet_of_finrankSupport_subset E1 #
∀ {R : Type u_1} [inst : Ring R] {ι : Type u_2} (c : ComplexShape ι) [inst_1 : c.EulerCharSigns]
(X : CategoryTheory.GradedObject ι (ModuleCat R)) (indices : Finset ι),
GradedObject.finrankSupport X ⊆ ↑indices →
GradedObject.eulerChar c X = ∑ i ∈ indices, ↑(c.χ i) * ↑(Module.finrank R ↑(X i))
If a graded object has finite rank support contained in a finite set,
the finsum Euler characteristic equals the finite sum over that set.
abbrev HomologicalComplex.eulerChar E1 #
{R : Type u_1} →
[inst : Ring R] → {ι : Type u_2} → {c : ComplexShape ι} → [c.EulerCharSigns] → HomologicalComplex (ModuleCat R) c → ℤ
The Euler characteristic of a homological complex as a sum over all indices using finsum.
The sign at each index is determined by the ComplexShape.EulerCharSigns instance.
Defaults to 0 if the support of the ranks is infinite.
abbrev HomologicalComplex.homologyEulerChar E1 #
{R : Type u_1} →
[inst : Ring R] →
{ι : Type u_2} →
{c : ComplexShape ι} →
[c.EulerCharSigns] → (C : HomologicalComplex (ModuleCat R) c) → [∀ (i : ι), C.HasHomology i] → ℤ
The homological Euler characteristic as a sum over all indices using finsum.
This is the Euler characteristic computed from the homology groups rather than
the original complex. Defaults to 0 if the support of the ranks is infinite.
theorem HomologicalComplex.eulerChar_eq_sum_finSet_of_finrankSupport_subset E1 #
∀ {R : Type u_1} [inst : Ring R] {ι : Type u_2} {c : ComplexShape ι} [inst_1 : c.EulerCharSigns]
(C : HomologicalComplex (ModuleCat R) c) (indices : Finset ι),
GradedObject.finrankSupport C.X ⊆ ↑indices → C.eulerChar = ∑ i ∈ indices, ↑(c.χ i) * ↑(Module.finrank R ↑(C.X i))
If a complex has finite rank support contained in a finite set,
the finsum Euler characteristic equals the finite sum over that set.
theorem HomologicalComplex.homologyEulerChar_eq_sum_finSet_of_finrankSupport_subset E1 #
∀ {R : Type u_1} [inst : Ring R] {ι : Type u_2} {c : ComplexShape ι} [inst_1 : c.EulerCharSigns]
(C : HomologicalComplex (ModuleCat R) c) [inst_2 : ∀ (i : ι), C.HasHomology i] (indices : Finset ι),
(GradedObject.finrankSupport fun i ↦ C.homology i) ⊆ ↑indices →
C.homologyEulerChar = ∑ i ∈ indices, ↑(c.χ i) * ↑(Module.finrank R ↑(C.homology i))
If homology has finite rank support contained in a finite set,
the finsum homological Euler characteristic equals the finite sum over that set.