Download data/lean/OAI/Algebra/Finitistic/Rectification/FullTensorRectification.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 7.5 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Algebra/Finitistic/Rectification/FullTensorRectification.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Algebra/Finitistic/Rectification/FullTensorRectification.lean
-
curl -L -o FullTensorRectification.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Algebra/Finitistic/Rectification/FullTensorRectification.lean
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 | |