math / data /lean /OAI /Algebra /Finitistic /Rectification /FullTensorRectification.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
7.5 kB
import OAI.Algebra.Finitistic.Rectification.TensorArrowComparison
import OAI.Algebra.Finitistic.Rectification.CanonicalArrowCompatibility
namespace OAI
noncomputable section
open CategoryTheory CategoryTheory.Limits HomologicalComplex
namespace LittleFinitistic.FullTensorRectification
open ExternalTensor.Section4 QuadraticEncoding
universe u
variable {k : Type u} [Field k] {d t : β„•} (P : Relations k d t)
variable (Dβ‚€ D₁ Dβ‚‚ : RightComplex (B P))
variable (f : Fin (d+1) β†’ (Dβ‚€ ⟢ D₁)) (g : Fin (d+1) β†’ (D₁ ⟢ Dβ‚‚))
variable (H : βˆ€ r, Homotopy (relationMap (ConcreteQuadraticDiagram.quadratic P) Dβ‚€ D₁ Dβ‚‚ f g r) 0)
variable (N : Type u) [AddCommGroup N] [Module k N] [Module (B P) N]
/-- The actual left B-module complex P tensor_B N. -/
abbrev tensor := ((BimoduleBalancedTensor.functor k (B P) N).mapHomologicalComplex (.up β„€)).obj
(InducedRectification.total (ConcreteQuadraticDiagram.quadratic P) Dβ‚€ D₁ Dβ‚‚ f g H)
abbrev source (v : Fin 3) :=
((BalancedTensor.tensorFunctor k (B P) N).mapHomologicalComplex (.up β„€)).obj
(VertexHomotopyEquivalence.source P Dβ‚€ D₁ Dβ‚‚ v)
abbrev target (v : Fin 3) :=
((LeftVertexHomology.vertex k (B P) (ThreeVertexAlgebra.vertex (composition P) v)).mapHomologicalComplex
(.up β„€)).obj (tensor P Dβ‚€ D₁ Dβ‚‚ f g H N)
/-- The original vertex insertion after balanced tensoring and the canonical comparison. -/
def iota (v : Fin 3) : source P Dβ‚€ D₁ Dβ‚‚ N v ⟢ target P Dβ‚€ D₁ Dβ‚‚ f g H N v :=
((BalancedTensor.tensorFunctor k (B P) N).mapHomologicalComplex (.up β„€)).map
(VertexHomotopyEquivalence.iota P Dβ‚€ D₁ Dβ‚‚ f g H v) ≫
(TensorArrowComparison.complexIso k (B P) N (ThreeVertexAlgebra.vertex (composition P) v)
((ThreeVertexAlgebra.directedSystem (composition P)).idem v)
(InducedRectification.total (ConcreteQuadraticDiagram.quadratic P) Dβ‚€ D₁ Dβ‚‚ f g H)).hom
/-- The equivalences retain the full left B-valued tensor target and the exact original maps. -/
theorem equivalence (v : Fin 3) (lo hi : β„€)
(bβ‚€ : βˆ€ n, n < lo ∨ hi < n β†’ IsZero (Dβ‚€.X n))
(b₁ : βˆ€ n, n < lo ∨ hi < n β†’ IsZero (D₁.X n))
(bβ‚‚ : βˆ€ n, n < lo ∨ hi < n β†’ IsZero (Dβ‚‚.X n))
(pβ‚€ : βˆ€ n, Module.Projective (B P)ᡐᡒᡖ (Dβ‚€.X n))
(p₁ : βˆ€ n, Module.Projective (B P)ᡐᡒᡖ (D₁.X n))
(pβ‚‚ : βˆ€ n, Module.Projective (B P)ᡐᡒᡖ (Dβ‚‚.X n)) :
βˆƒ E : HomotopyEquiv (source P Dβ‚€ D₁ Dβ‚‚ N v) (target P Dβ‚€ D₁ Dβ‚‚ f g H N v),
E.hom = iota P Dβ‚€ D₁ Dβ‚‚ f g H N v := by
obtain ⟨j,⟨hβ‚βŸ©,⟨hβ‚‚βŸ©βŸ© := VertexHomotopyEquivalence.homotopy_inverse P Dβ‚€ D₁ Dβ‚‚ f g H
v lo hi bβ‚€ b₁ bβ‚‚ pβ‚€ p₁ pβ‚‚
let E : HomotopyEquiv (VertexHomotopyEquivalence.source P Dβ‚€ D₁ Dβ‚‚ v)
(VertexHomotopyEquivalence.target P Dβ‚€ D₁ Dβ‚‚ f g H v) :=
⟨VertexHomotopyEquivalence.iota P Dβ‚€ D₁ Dβ‚‚ f g H v,j,h₁,hβ‚‚βŸ©
exact ⟨((BalancedTensor.tensorFunctor k (B P) N).mapHomotopyEquiv E).trans
(HomotopyEquiv.ofIso (TensorArrowComparison.complexIso k (B P) N
(ThreeVertexAlgebra.vertex (composition P) v)
((ThreeVertexAlgebra.directedSystem (composition P)).idem v)
(InducedRectification.total (ConcreteQuadraticDiagram.quadratic P) Dβ‚€ D₁ Dβ‚‚ f g H))),rfl⟩
abbrev arrow01Map (a : Fin (d+1)) :=
((LeftVertexHomology.arrow k (B P) (ThreeVertexAlgebra.vertex (composition P) 0)
(ThreeVertexAlgebra.vertex (composition P) 1) (arrow01 P a)
(CanonicalArrowCompatibility.arrow01_target P a)).mapHomologicalComplex (.up β„€)).app
(tensor P Dβ‚€ D₁ Dβ‚‚ f g H N)
abbrev arrow12Map (b : Fin (d+1)) :=
((LeftVertexHomology.arrow k (B P) (ThreeVertexAlgebra.vertex (composition P) 1)
(ThreeVertexAlgebra.vertex (composition P) 2) (arrow12 P b)
(CanonicalArrowCompatibility.arrow12_target P b)).mapHomologicalComplex (.up β„€)).app
(tensor P Dβ‚€ D₁ Dβ‚‚ f g H N)
lemma original_iota0 : VertexHomotopyEquivalence.iota P Dβ‚€ D₁ Dβ‚‚ f g H 0 =
FirstVertex.iota P Dβ‚€ D₁ Dβ‚‚ f g H := by rfl
lemma original_iota1 : VertexHomotopyEquivalence.iota P Dβ‚€ D₁ Dβ‚‚ f g H 1 =
SecondVertex.iota P Dβ‚€ D₁ Dβ‚‚ f g H := by rfl
lemma original_iota2 : VertexHomotopyEquivalence.iota P Dβ‚€ D₁ Dβ‚‚ f g H 2 =
ThirdVertex.iota P Dβ‚€ D₁ Dβ‚‚ f g H := by rfl
/-- Actual arrow compatibility on the vertex diagram of the full B-valued tensor. -/
def compatibility01 (a : Fin (d+1)) : Homotopy
(iota P Dβ‚€ D₁ Dβ‚‚ f g H N 0 ≫ arrow01Map P Dβ‚€ D₁ Dβ‚‚ f g H N a)
(((BalancedTensor.tensorFunctor k (B P) N).mapHomologicalComplex (.up β„€)).map (f a) ≫
iota P Dβ‚€ D₁ Dβ‚‚ f g H N 1) := by
have h := ((BalancedTensor.tensorFunctor k (B P) N).mapHomotopy
(CanonicalArrowCompatibility.compatibility01 P Dβ‚€ D₁ Dβ‚‚ f g H a)).compRight
(TensorArrowComparison.complexIso k (B P) N (ThreeVertexAlgebra.vertex (composition P) 1)
((ThreeVertexAlgebra.directedSystem (composition P)).idem 1)
(InducedRectification.total (ConcreteQuadraticDiagram.quadratic P) Dβ‚€ D₁ Dβ‚‚ f g H)).hom
erw [Functor.map_comp_assoc _ (FirstVertex.iota P Dβ‚€ D₁ Dβ‚‚ f g H)
(CanonicalArrowCompatibility.arrow01Map P Dβ‚€ D₁ Dβ‚‚ f g H a),
Functor.map_comp_assoc _ (f a) (SecondVertex.iota P Dβ‚€ D₁ Dβ‚‚ f g H)] at h
have hs := TensorArrowComparison.complex_arrow_square k (B P) N
(ThreeVertexAlgebra.vertex (composition P) 0) (ThreeVertexAlgebra.vertex (composition P) 1)
(arrow01 P a) ((ThreeVertexAlgebra.directedSystem (composition P)).idem 0)
((ThreeVertexAlgebra.directedSystem (composition P)).idem 1)
(CanonicalArrowCompatibility.arrow01_target P a)
(InducedRectification.total (ConcreteQuadraticDiagram.quadratic P) Dβ‚€ D₁ Dβ‚‚ f g H)
erw [hs] at h
dsimp only [iota]
erw [original_iota0, original_iota1, Category.assoc]
exact h
/-- The second arrow family retains its original maps as well. -/
def compatibility12 (b : Fin (d+1)) : Homotopy
(iota P Dβ‚€ D₁ Dβ‚‚ f g H N 1 ≫ arrow12Map P Dβ‚€ D₁ Dβ‚‚ f g H N b)
(((BalancedTensor.tensorFunctor k (B P) N).mapHomologicalComplex (.up β„€)).map (g b) ≫
iota P Dβ‚€ D₁ Dβ‚‚ f g H N 2) := by
have h := ((BalancedTensor.tensorFunctor k (B P) N).mapHomotopy
(CanonicalArrowCompatibility.compatibility12 P Dβ‚€ D₁ Dβ‚‚ f g H b)).compRight
(TensorArrowComparison.complexIso k (B P) N (ThreeVertexAlgebra.vertex (composition P) 2)
((ThreeVertexAlgebra.directedSystem (composition P)).idem 2)
(InducedRectification.total (ConcreteQuadraticDiagram.quadratic P) Dβ‚€ D₁ Dβ‚‚ f g H)).hom
erw [Functor.map_comp_assoc _ (SecondVertex.iota P Dβ‚€ D₁ Dβ‚‚ f g H)
(CanonicalArrowCompatibility.arrow12Map P Dβ‚€ D₁ Dβ‚‚ f g H b),
Functor.map_comp_assoc _ (g b) (ThirdVertex.iota P Dβ‚€ D₁ Dβ‚‚ f g H)] at h
have hs := TensorArrowComparison.complex_arrow_square k (B P) N
(ThreeVertexAlgebra.vertex (composition P) 1) (ThreeVertexAlgebra.vertex (composition P) 2)
(arrow12 P b) ((ThreeVertexAlgebra.directedSystem (composition P)).idem 1)
((ThreeVertexAlgebra.directedSystem (composition P)).idem 2)
(CanonicalArrowCompatibility.arrow12_target P b)
(InducedRectification.total (ConcreteQuadraticDiagram.quadratic P) Dβ‚€ D₁ Dβ‚‚ f g H)
erw [hs] at h
dsimp only [iota]
erw [original_iota1, original_iota2, Category.assoc]
exact h
end LittleFinitistic.FullTensorRectification
end
end OAI