Source context 6 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Foundations.HomologicalAlgebra.Proofs
namespace DoubleComplex_exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation
universe u
open DoubleComplex P1SOL
Lean source · full declarationtheorem _root_.DoubleComplex.exists_HTot_equiv_mk_eq_mk_single_of_rows_exact_of_augmentation
{R : Type u} [CommRing R] (D : DoubleComplex.Bounded R)
(A : ℕ → Type u) [∀ m, AddCommGroup (A m)] [∀ m, Module R (A m)]
(dA : ∀ m, A m →ₗ[R] A (m + 1)) (ε : ∀ m, A m →ₗ[R] D.C 0 m)
(hε : ∀ m, Function.Injective (ε m))
(hεd : ∀ m, D.dV 0 m ∘ₗ ε m = ε (m + 1) ∘ₗ dA m)
(hker : ∀ m, LinearMap.ker (D.dH 0 m) = LinearMap.range (ε m))
(hrows : ∀ p m, LinearMap.ker (D.dH (p + 1) m) ≤ LinearMap.range (D.dH p m)) :
(∃ e : LinearMap.ker (dA 0) ≃ₗ[R] DoubleComplex.HTot D 0,
∀ (a : A 0) (ha : a ∈ LinearMap.ker (dA 0)),
∃ hE : Pi.single (M := fun i : DoubleComplex.Diag 0 => D.C i.1.1 i.1.2) ⟨(0, 0), rfl⟩ (ε
0 a)
∈ LinearMap.ker (DoubleComplex.dTot D 0),
e ⟨a, ha⟩ = Submodule.Quotient.mk ⟨_, hE⟩) ∧
∀ n : ℕ, ∃ e : (LinearMap.ker (dA (n + 1)) ⧸
(LinearMap.range (dA n)).comap (LinearMap.ker (dA (n + 1))).subtype) ≃ₗ[R]
DoubleComplex.HTot D (n + 1),
∀ (a : A (n + 1)) (ha : a ∈ LinearMap.ker (dA (n + 1))),
∃ hE : Pi.single (M := fun i : DoubleComplex.Diag (n + 1) => D.C i.1.1 i.1.2) ⟨(0, n +
1), by omega⟩ (ε (n + 1) a)
∈ LinearMap.ker (DoubleComplex.dTot D (n + 1)),
e (Submodule.Quotient.mk ⟨a, ha⟩) = Submodule.Quotient.mk ⟨_, hE⟩ := by
classical
refine ⟨?_, fun n => ?_⟩
· let f : LinearMap.ker (dA 0) →ₗ[R] LinearMap.ker (DoubleComplex.dTot D 0) :=
((edge ε 0).comp (LinearMap.ker (dA 0)).subtype).codRestrict
(LinearMap.ker (DoubleComplex.dTot D 0))
fun y => LinearMap.mem_ker.mpr <| by
have hch := LinearMap.congr_fun (edge_chain ε hεd hker 0) y.1
rw [LinearMap.comp_apply, LinearMap.comp_apply] at hch
exact hch.trans ((congrArg _ (LinearMap.mem_ker.mp y.2)).trans (map_zero _))
have hf : Function.Bijective f := by
refine ⟨fun y₁ y₂ hy => Subtype.ext (hε 0
((edge_apply_zero ε (Nat.zero_add 0) y₁.1).symm.trans
((congrFun (Subtype.ext_iff.mp hy) ⟨(0,0), Nat.zero_add 0⟩).trans
(edge_apply_zero ε (Nat.zero_add 0) y₂.1)))),
fun ⟨c, hc⟩ => ?_⟩
have hdH : D.dH 0 0 (c ⟨(0,0), Nat.zero_add 0⟩) = 0 := by
have h1 := congrFun (LinearMap.mem_ker.mp hc) ⟨(1, 0), rfl⟩
rwa [Pi.zero_apply, DoubleComplex.dTot_apply_succ_zero] at h1
obtain ⟨y, hy⟩ := exists_aug_eq ε hker 0 _ hdH
have hdy : dA 0 y = 0 := by
have hcomm : D.dV 0 0 (ε 0 y) = ε 1 (dA 0 y) := LinearMap.congr_fun (hεd 0) y
refine hε 1 ?_
rw [map_zero, ← hcomm, hy]
have h0 := congrFun (LinearMap.mem_ker.mp hc) ⟨(0, 1), rfl⟩
rwa [Pi.zero_apply, DoubleComplex.dTot_apply_zero_succ] at h0
refine ⟨⟨y, LinearMap.mem_ker.mpr hdy⟩, Subtype.ext (funext fun ⟨⟨pp, q⟩, hpq⟩ => ?_)⟩
obtain ⟨rfl, rfl⟩ : pp = 0 ∧ q = 0 := by omega
exact (edge_apply_zero ε (Nat.zero_add 0) y).trans hy
refine ⟨(LinearEquiv.ofBijective f hf).trans
(Submodule.quotEquivOfEqBot (DoubleComplex.HTotB D 0) rfl).symm, fun a ha => ?_⟩
exact ⟨(f ⟨a, ha⟩).2, rfl⟩
· refine ⟨LinearEquiv.ofBijective (Hedge ε hεd hker n)
⟨by
rw [injective_iff_map_eq_zero]
intro x hmap
obtain ⟨⟨y, hy⟩, rfl⟩ := Submodule.Quotient.mk_surjective _ x
simp only [Hedge, Submodule.mapQ_apply, Submodule.Quotient.mk_eq_zero] at hmap
obtain ⟨bb, hbb⟩ := hmap
obtain ⟨y', hy'⟩ := stair_inj ε hε hεd hker hrows n y bb hbb.symm
exact (Submodule.Quotient.mk_eq_zero _).mpr ⟨y', hy'.symm⟩,
fun x => by
obtain ⟨⟨c, hc⟩, rfl⟩ := Submodule.Quotient.mk_surjective _ x
obtain ⟨y, bb, hdy, hceq⟩ := stair_surj ε hε hεd hker hrows n c (LinearMap.mem_ker.mp hc)
refine ⟨Submodule.Quotient.mk ⟨y, LinearMap.mem_ker.mpr hdy⟩, ?_⟩
simp only [Hedge, Submodule.mapQ_apply, Submodule.Quotient.eq]
exact ⟨-bb, by
change DoubleComplex.dTot D n (-bb) = edge ε (n + 1) y - c
rw [map_neg, hceq, sub_add_eq_sub_sub, sub_self, zero_sub]⟩⟩, fun a ha => ?_⟩
have hE : edge ε (n + 1) a ∈ LinearMap.ker (DoubleComplex.dTot D (n + 1)) := by
rw [LinearMap.mem_ker]
have hch := LinearMap.congr_fun (edge_chain ε hεd hker (n + 1)) a
rw [LinearMap.comp_apply, LinearMap.comp_apply, LinearMap.mem_ker.mp ha, map_zero] at hch
exact hch
exact ⟨hE, rfl⟩