The areas / V26. Homological algebra
Mathlib.Algebra.Homology.Embedding.Basic
65 declarations. Mathlib docs · Source
Embeddings of complex shapes
Given two complex shapes c : ComplexShape ι and c' : ComplexShape ι',
an embedding from c to c' (e : c.Embedding c') consists of the data
of an injective map f : ι → ι' such that for all i₁ i₂ : ι,
c.Rel i₁ i₂ implies c'.Rel (e.f i₁) (e.f i₂).
We define a type class e.IsRelIff to express that this implication is an equivalence.
Other type classes e.IsTruncLE and e.IsTruncGE are introduced in order to
formalize truncation functors.
This notion first appeared in the Liquid Tensor Experiment, and was developed there
mostly by Johan Commelin, Adam Topaz and Joël Riou. It shall be used in order to
relate the categories CochainComplex C ℕ and ChainComplex C ℕ to CochainComplex C ℤ.
It shall also be used in the construction of the canonical t-structure on the derived
category of an abelian category (TODO).
Description of the API
- The extension functor
e.extendFunctor C : HomologicalComplex C c ⥤ HomologicalComplex C c'(extending by the zero object outside of the image ofe.f) is defined in the fileEmbedding.Extend; - assuming
e.IsRelIff, the restriction functore.restrictionFunctor C : HomologicalComplex C c' ⥤ HomologicalComplex C cis defined in the fileEmbedding.Restriction; - the stupid truncation functor
e.stupidTruncFunctor C : HomologicalComplex C c' ⥤ HomologicalComplex C c'which is the composition of the two previous functors is defined in the fileEmbedding.StupidTrunc. - assuming
e.IsTruncGE, we have truncation functorse.truncGE'Functor C : HomologicalComplex C c' ⥤ HomologicalComplex C cande.truncGEFunctor C : HomologicalComplex C c' ⥤ HomologicalComplex C c'(see the fileEmbedding.TruncGE), and a natural transformatione.πTruncGENatTrans : 𝟭 _ ⟶ e.truncGEFunctor Cwhich is a quasi-isomorphism in degrees in the image ofe.f(TODO); - assuming
e.IsTruncLE, we have truncation functorse.truncLE'Functor C : HomologicalComplex C c' ⥤ HomologicalComplex C cande.truncLEFunctor C : HomologicalComplex C c' ⥤ HomologicalComplex C c', and a natural transformatione.ιTruncLENatTrans : e.truncGEFunctor C ⟶ 𝟭 _which is a quasi-isomorphism in degrees in the image ofe.f(TODO);
theorem ComplexShape.Embedding.mk.injEq E0 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} (f : ι → ι')
(injective_f : Function.Injective f) (rel : ∀ {i₁ i₂ : ι}, c.Rel i₁ i₂ → c'.Rel (f i₁) (f i₂)) (f_1 : ι → ι')
(injective_f_1 : Function.Injective f_1) (rel_1 : ∀ {i₁ i₂ : ι}, c.Rel i₁ i₂ → c'.Rel (f_1 i₁) (f_1 i₂)),
({ f := f, injective_f := injective_f, rel := rel } = { f := f_1, injective_f := injective_f_1, rel := rel_1 }) =
(f = f_1)
def ComplexShape.Embedding.ctorIdx E1 #
{ι : Type u_1} → {ι' : Type u_2} → {c : ComplexShape ι} → {c' : ComplexShape ι'} → c.Embedding c' → ℕ
theorem ComplexShape.Embedding.mk.inj E1 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} {f : ι → ι'}
{injective_f : Function.Injective f} {rel : ∀ {i₁ i₂ : ι}, c.Rel i₁ i₂ → c'.Rel (f i₁) (f i₂)} {f_1 : ι → ι'}
{injective_f_1 : Function.Injective f_1} {rel_1 : ∀ {i₁ i₂ : ι}, c.Rel i₁ i₂ → c'.Rel (f_1 i₁) (f_1 i₂)},
{ f := f, injective_f := injective_f, rel := rel } = { f := f_1, injective_f := injective_f_1, rel := rel_1 } →
f = f_1
structure ComplexShape.Embedding E1 #
{ι : Type u_1} → {ι' : Type u_2} → ComplexShape ι → ComplexShape ι' → Type (max u_1 u_2)
An embedding of a complex shape c : ComplexShape ι into a complex shape
c' : ComplexShape ι' consists of an injective map f : ι → ι' which satisfies
a compatibility with respect to the relations c.Rel and c'.Rel.
theorem ComplexShape.Embedding.ext E1 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} {x y : c.Embedding c'}, x.f = y.f → x = y
theorem ComplexShape.Embedding.ext_iff E0 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} {x y : c.Embedding c'}, x = y ↔ x.f = y.f
ctor ComplexShape.Embedding.mk E0 #
{ι : Type u_1} →
{ι' : Type u_2} →
{c : ComplexShape ι} →
{c' : ComplexShape ι'} →
(f : ι → ι') → Function.Injective f → (∀ {i₁ i₂ : ι}, c.Rel i₁ i₂ → c'.Rel (f i₁) (f i₂)) → c.Embedding c'
abbrev ComplexShape.Embedding.f E1 #
{ι : Type u_1} → {ι' : Type u_2} → {c : ComplexShape ι} → {c' : ComplexShape ι'} → c.Embedding c' → ι → ι'
the map between the underlying types of indices
theorem ComplexShape.Embedding.injective_f E1 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} (self : c.Embedding c'),
Function.Injective self.f
theorem ComplexShape.Embedding.rel E1 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} (self : c.Embedding c') {i₁ i₂ : ι},
c.Rel i₁ i₂ → c'.Rel (self.f i₁) (self.f i₂)
def ComplexShape.Embedding.op E1 #
{ι : Type u_1} →
{ι' : Type u_2} → {c : ComplexShape ι} → {c' : ComplexShape ι'} → c.Embedding c' → c.symm.Embedding c'.symm
The opposite embedding in Embedding c.symm c'.symm of e : Embedding c c'.
theorem ComplexShape.Embedding.op_f E0 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} (e : c.Embedding c') (a : ι),
e.op.f a = e.f a
class ComplexShape.Embedding.IsRelIff E1 #
{ι : Type u_1} → {ι' : Type u_2} → {c : ComplexShape ι} → {c' : ComplexShape ι'} → c.Embedding c' → Prop
An embedding of complex shapes e satisfies e.IsRelIff if the implication
e.rel is an equivalence.
ctor ComplexShape.Embedding.IsRelIff.mk E0 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} {e : c.Embedding c'},
(∀ (i₁ i₂ : ι), c'.Rel (e.f i₁) (e.f i₂) → c.Rel i₁ i₂) → e.IsRelIff
theorem ComplexShape.Embedding.IsRelIff.rel' E1 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} {e : c.Embedding c'} [self : e.IsRelIff]
(i₁ i₂ : ι), c'.Rel (e.f i₁) (e.f i₂) → c.Rel i₁ i₂
theorem ComplexShape.Embedding.rel_iff E0 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} (e : c.Embedding c') [e.IsRelIff]
(i₁ i₂ : ι), c'.Rel (e.f i₁) (e.f i₂) ↔ c.Rel i₁ i₂
instance ComplexShape.Embedding.instIsRelIffOp E0 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} (e : c.Embedding c') [e.IsRelIff],
e.op.IsRelIff
def ComplexShape.Embedding.mk' E1 #
{ι : Type u_1} →
{ι' : Type u_2} →
(c : ComplexShape ι) →
(c' : ComplexShape ι') →
(f : ι → ι') → Function.Injective f → (∀ (i₁ i₂ : ι), c.Rel i₁ i₂ ↔ c'.Rel (f i₁) (f i₂)) → c.Embedding c'
Constructor for embeddings between complex shapes when we have an equivalence
∀ (i₁ i₂ : ι), c.Rel i₁ i₂ ↔ c'.Rel (f i₁) (f i₂).
theorem ComplexShape.Embedding.mk'_f E0 #
∀ {ι : Type u_1} {ι' : Type u_2} (c : ComplexShape ι) (c' : ComplexShape ι') (f : ι → ι') (hf : Function.Injective f)
(iff : ∀ (i₁ i₂ : ι), c.Rel i₁ i₂ ↔ c'.Rel (f i₁) (f i₂)) (a : ι),
(ComplexShape.Embedding.mk' c c' f hf iff).f a = f a
instance ComplexShape.Embedding.IsRelIff.mk' E0 #
∀ {ι : Type u_1} {ι' : Type u_2} (c : ComplexShape ι) (c' : ComplexShape ι') (f : ι → ι') (hf : Function.Injective f)
(iff : ∀ (i₁ i₂ : ι), c.Rel i₁ i₂ ↔ c'.Rel (f i₁) (f i₂)), (ComplexShape.Embedding.mk' c c' f hf iff).IsRelIff
class ComplexShape.Embedding.IsTruncGE E1 #
{ι : Type u_1} → {ι' : Type u_2} → {c : ComplexShape ι} → {c' : ComplexShape ι'} → c.Embedding c' → Prop
The condition that the image of the map e.f of an embedding of
complex shapes e : Embedding c c' is stable by c'.next.
ctor ComplexShape.Embedding.IsTruncGE.mk E0 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} {e : c.Embedding c'}
[toIsRelIff : e.IsRelIff], (∀ {j : ι} {k' : ι'}, c'.Rel (e.f j) k' → ∃ k, e.f k = k') → e.IsTruncGE
instance ComplexShape.Embedding.IsTruncGE.toIsRelIff E0 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} {e : c.Embedding c'} [self : e.IsTruncGE],
e.IsRelIff
theorem ComplexShape.Embedding.IsTruncGE.mem_next E0 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} {e : c.Embedding c'} [self : e.IsTruncGE]
{j : ι} {k' : ι'}, c'.Rel (e.f j) k' → ∃ k, e.f k = k'
theorem ComplexShape.Embedding.mem_next E0 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} (e : c.Embedding c') [e.IsTruncGE] {j : ι}
{k' : ι'}, c'.Rel (e.f j) k' → ∃ k, e.f k = k'
class ComplexShape.Embedding.IsTruncLE E1 #
{ι : Type u_1} → {ι' : Type u_2} → {c : ComplexShape ι} → {c' : ComplexShape ι'} → c.Embedding c' → Prop
The condition that the image of the map e.f of an embedding of
complex shapes e : Embedding c c' is stable by c'.prev.
ctor ComplexShape.Embedding.IsTruncLE.mk E0 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} {e : c.Embedding c'}
[toIsRelIff : e.IsRelIff], (∀ {i' : ι'} {j : ι}, c'.Rel i' (e.f j) → ∃ i, e.f i = i') → e.IsTruncLE
instance ComplexShape.Embedding.IsTruncLE.toIsRelIff E0 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} {e : c.Embedding c'} [self : e.IsTruncLE],
e.IsRelIff
theorem ComplexShape.Embedding.IsTruncLE.mem_prev E0 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} {e : c.Embedding c'} [self : e.IsTruncLE]
{i' : ι'} {j : ι}, c'.Rel i' (e.f j) → ∃ i, e.f i = i'
theorem ComplexShape.Embedding.mem_prev E0 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} (e : c.Embedding c') [e.IsTruncLE]
{i' : ι'} {j : ι}, c'.Rel i' (e.f j) → ∃ i, e.f i = i'
instance ComplexShape.Embedding.instIsTruncLEOpOfIsTruncGE E0 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} (e : c.Embedding c') [e.IsTruncGE],
e.op.IsTruncLE
instance ComplexShape.Embedding.instIsTruncGEOpOfIsTruncLE E0 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} (e : c.Embedding c') [e.IsTruncLE],
e.op.IsTruncGE
def ComplexShape.Embedding.r E1 #
{ι : Type u_1} → {ι' : Type u_2} → {c : ComplexShape ι} → {c' : ComplexShape ι'} → c.Embedding c' → ι' → Option ι
The map ι' → Option ι which sends e.f i to some i and the other elements to none.
theorem ComplexShape.Embedding.r_eq_some E1 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} (e : c.Embedding c') {i : ι} {i' : ι'},
e.f i = i' → e.r i' = some i
theorem ComplexShape.Embedding.r_eq_none E1 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} (e : c.Embedding c') (i' : ι'),
(∀ (i : ι), e.f i ≠ i') → e.r i' = none
theorem ComplexShape.Embedding.r_f E0 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} (e : c.Embedding c') (i : ι),
e.r (e.f i) = some i
theorem ComplexShape.Embedding.f_eq_of_r_eq_some E1 #
∀ {ι : Type u_1} {ι' : Type u_2} {c : ComplexShape ι} {c' : ComplexShape ι'} (e : c.Embedding c') {i : ι} {i' : ι'},
e.r i' = some i → e.f i = i'
def ComplexShape.embeddingUp'Add E1 #
{A : Type u_3} →
[inst : AddCommSemigroup A] →
[inst_1 : IsRightCancelAdd A] → (a : A) → A → (ComplexShape.up' a).Embedding (ComplexShape.up' a)
The embedding from up' a to itself via (· + b).
theorem ComplexShape.embeddingUp'Add_f E0 #
∀ {A : Type u_3} [inst : AddCommSemigroup A] [inst_1 : IsRightCancelAdd A] (a b x : A),
(ComplexShape.embeddingUp'Add a b).f x = x + b
instance ComplexShape.instIsRelIffEmbeddingUp'Add E0 #
∀ {A : Type u_3} [inst : AddCommSemigroup A] [inst_1 : IsRightCancelAdd A] (a b : A),
(ComplexShape.embeddingUp'Add a b).IsRelIff
instance ComplexShape.instIsTruncGEEmbeddingUp'Add E0 #
∀ {A : Type u_3} [inst : AddCommSemigroup A] [inst_1 : IsRightCancelAdd A] (a b : A),
(ComplexShape.embeddingUp'Add a b).IsTruncGE
def ComplexShape.embeddingDown'Add E1 #
{A : Type u_3} →
[inst : AddCommSemigroup A] →
[inst_1 : IsRightCancelAdd A] → (a : A) → A → (ComplexShape.down' a).Embedding (ComplexShape.down' a)
The embedding from down' a to itself via (· + b).
theorem ComplexShape.embeddingDown'Add_f E0 #
∀ {A : Type u_3} [inst : AddCommSemigroup A] [inst_1 : IsRightCancelAdd A] (a b x : A),
(ComplexShape.embeddingDown'Add a b).f x = x + b
instance ComplexShape.instIsRelIffEmbeddingDown'Add E0 #
∀ {A : Type u_3} [inst : AddCommSemigroup A] [inst_1 : IsRightCancelAdd A] (a b : A),
(ComplexShape.embeddingDown'Add a b).IsRelIff
instance ComplexShape.instIsTruncLEEmbeddingDown'Add E0 #
∀ {A : Type u_3} [inst : AddCommSemigroup A] [inst_1 : IsRightCancelAdd A] (a b : A),
(ComplexShape.embeddingDown'Add a b).IsTruncLE
def ComplexShape.embeddingUpNat E1 #
(ComplexShape.up ℕ).Embedding (ComplexShape.up ℤ)
The obvious embedding from up ℕ to up ℤ.
theorem ComplexShape.embeddingUpNat_f E0 #
∀ (n : ℕ), ComplexShape.embeddingUpNat.f n = ↑n
instance ComplexShape.instIsRelIffNatIntEmbeddingUpNat E0 #
ComplexShape.embeddingUpNat.IsRelIff
instance ComplexShape.instIsTruncGENatIntEmbeddingUpNat E0 #
ComplexShape.embeddingUpNat.IsTruncGE
def ComplexShape.embeddingDownNat E1 #
(ComplexShape.down ℕ).Embedding (ComplexShape.up ℤ)
The embedding from down ℕ to up ℤ with sends n to -n.
theorem ComplexShape.embeddingDownNat_f E0 #
∀ (n : ℕ), ComplexShape.embeddingDownNat.f n = -↑n
instance ComplexShape.instIsRelIffNatIntEmbeddingDownNat E0 #
ComplexShape.embeddingDownNat.IsRelIff
instance ComplexShape.instIsTruncLENatIntEmbeddingDownNat E0 #
ComplexShape.embeddingDownNat.IsTruncLE
def ComplexShape.embeddingUpIntGE E1 #
ℤ → (ComplexShape.up ℕ).Embedding (ComplexShape.up ℤ)
The embedding from up ℕ to up ℤ which sends n : ℕ to p + n.
theorem ComplexShape.embeddingUpIntGE_f E0 #
∀ (p : ℤ) (n : ℕ), (ComplexShape.embeddingUpIntGE p).f n = p + ↑n
instance ComplexShape.instIsRelIffNatIntEmbeddingUpIntGE E0 #
∀ (p : ℤ), (ComplexShape.embeddingUpIntGE p).IsRelIff
instance ComplexShape.instIsTruncGENatIntEmbeddingUpIntGE E0 #
∀ (p : ℤ), (ComplexShape.embeddingUpIntGE p).IsTruncGE
def ComplexShape.embeddingUpIntLE E1 #
ℤ → (ComplexShape.down ℕ).Embedding (ComplexShape.up ℤ)
The embedding from down ℕ to up ℤ which sends n : ℕ to p - n.
theorem ComplexShape.embeddingUpIntLE_f E0 #
∀ (p : ℤ) (n : ℕ), (ComplexShape.embeddingUpIntLE p).f n = p - ↑n
instance ComplexShape.instIsRelIffNatIntEmbeddingUpIntLE E0 #
∀ (p : ℤ), (ComplexShape.embeddingUpIntLE p).IsRelIff
instance ComplexShape.instIsTruncLENatIntEmbeddingUpIntLE E0 #
∀ (p : ℤ), (ComplexShape.embeddingUpIntLE p).IsTruncLE
theorem ComplexShape.embeddingUpIntGE_zero E1 #
ComplexShape.embeddingUpIntGE 0 = ComplexShape.embeddingUpNat
theorem ComplexShape.embeddingUpIntLE_zero E1 #
ComplexShape.embeddingUpIntLE 0 = ComplexShape.embeddingDownNat
theorem ComplexShape.notMem_range_embeddingUpIntLE_iff E0 #
∀ (p n : ℤ), (∀ (i : ℕ), (ComplexShape.embeddingUpIntLE p).f i ≠ n) ↔ p < n
theorem ComplexShape.notMem_range_embeddingUpIntGE_iff E0 #
∀ (p n : ℤ), (∀ (i : ℕ), (ComplexShape.embeddingUpIntGE p).f i ≠ n) ↔ n < p