Download data/lean/OAI/Algebra/AuslanderReiten/Tensor/EnvelopingBalancedProjective.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.78 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Algebra/AuslanderReiten/Tensor/EnvelopingBalancedProjective.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Algebra/AuslanderReiten/Tensor/EnvelopingBalancedProjective.lean
-
curl -L -o EnvelopingBalancedProjective.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Algebra/AuslanderReiten/Tensor/EnvelopingBalancedProjective.lean
4.78 kB
| import OAI.Algebra.AuslanderReiten.Tensor.EnvelopingBalancedRegular | |
| import Mathlib.LinearAlgebra.TensorProduct.Basis | |
| import Mathlib.Algebra.Module.Projective | |
| import Mathlib.LinearAlgebra.Pi | |
| import Mathlib.RingTheory.Finiteness.Cardinality | |
| namespace OAI | |
| noncomputable section | |
| open CategoryTheory | |
| open scoped TensorProduct ModuleCat.Algebra | |
| namespace ArExplicit.EnvelopingBimodule | |
| universe u | |
| variable {k R : Type u} [Field k] [Ring R] [Algebra k R] | |
| variable (X : ModuleCat.{u} R) [Module k X] [IsScalarTower k R X] | |
| private instance finitePiProjective {V : Type u} [AddCommGroup V] [Module R V] | |
| [Module.Projective R V] (n : β) : Module.Projective R (Fin n β V) := | |
| Module.Projective.of_equiv (DFinsupp.linearEquivFunOnFintype : | |
| (Ξ β _ : Fin n, V) ββ[R] (Fin n β V)) | |
| instance regular_projective : | |
| Module.Projective R (BalancedTensor k R (EnvelopingBimodule k R (regularObject k R)) X) := | |
| Module.Projective.of_equiv (regularEquiv k R X).symm | |
| variable (M : ModuleCat.{u} (R β[k] Rα΅α΅α΅)) | |
| variable [Module k M] [IsScalarTower k (R β[k] Rα΅α΅α΅) M] | |
| abbrev piObject (n : β) : ModuleCat.{u} (R β[k] Rα΅α΅α΅) := | |
| ModuleCat.of (R β[k] Rα΅α΅α΅) (Fin n β M) | |
| def piProjection (n : β) (i : Fin n) : piObject M n βΆ M := | |
| ModuleCat.ofHom (LinearMap.proj i) | |
| def piInclusion (n : β) (i : Fin n) : M βΆ piObject M n := | |
| ModuleCat.ofHom (LinearMap.single (R β[k] Rα΅α΅α΅) (fun _ : Fin n => M) i) | |
| def tensorPiCoordinates (n : β) : | |
| BalancedTensor k R (EnvelopingBimodule k R (piObject M n)) X ββ[R] | |
| (Fin n β BalancedTensor k R (EnvelopingBimodule k R M) X) := | |
| LinearMap.pi fun i => tensorMap X (piProjection M n i) | |
| def tensorPiRecombine (n : β) : | |
| (Fin n β BalancedTensor k R (EnvelopingBimodule k R M) X) ββ[R] | |
| BalancedTensor k R (EnvelopingBimodule k R (piObject M n)) X := | |
| β i, (tensorMap X (piInclusion M n i)).comp (LinearMap.proj i) | |
| omit [IsScalarTower k R X] in | |
| @[simp] theorem tensorPiRecombine_apply (n : β) | |
| (v : Fin n β BalancedTensor k R (EnvelopingBimodule k R M) X) : | |
| tensorPiRecombine X M n v = β i, tensorMap X (piInclusion M n i) (v i) := by | |
| simp only [tensorPiRecombine, LinearMap.sum_apply, LinearMap.comp_apply, LinearMap.proj_apply] | |
| private theorem pi_reconstruct (n : β) (f : EnvelopingBimodule k R (piObject M n)) : | |
| β i, map (piInclusion M n i) (map (piProjection M n i) f) = f := by | |
| apply EnvelopingBimodule.ext | |
| change (scalarEquiv (piObject M n)) (β i, map (piInclusion M n i) (map (piProjection M n i) f)) = f.value | |
| rw [_root_.map_sum] | |
| change (β i, Pi.single i (f.value i)) = f.value | |
| exact Finset.univ_sum_single f.value | |
| omit [IsScalarTower k R X] in | |
| theorem tensorPi_retraction (n : β) : | |
| (tensorPiRecombine X M n).comp (tensorPiCoordinates X M n) = LinearMap.id := by | |
| apply LinearMap.ext | |
| intro z | |
| change tensorPiRecombine X M n (tensorPiCoordinates X M n z) = z | |
| induction z using BalancedTensor.induction_on with | |
| | zero => simp only [_root_.map_zero] | |
| | add z w hz hw => simp only [_root_.map_add, hz, hw] | |
| | tmul f x => | |
| rw [tensorPiRecombine_apply] | |
| change (β i, tensorMap X (piInclusion M n i) | |
| (tensorMap X (piProjection M n i) (BalancedTensor.tmul f x))) = BalancedTensor.tmul f x | |
| simp only [tensorMap_tmul] | |
| change (β i, ((BalancedTensor.mk (k := k) (R := R)).flip x) | |
| (map (piInclusion M n i) (map (piProjection M n i) f))) = _ | |
| rw [β _root_.map_sum, pi_reconstruct] | |
| rfl | |
| omit [IsScalarTower k R X] in | |
| theorem tensorPi_projective | |
| [Module.Projective R (BalancedTensor k R (EnvelopingBimodule k R M) X)] (n : β) : | |
| Module.Projective R (BalancedTensor k R (EnvelopingBimodule k R (piObject M n)) X) := | |
| Module.Projective.of_split (R := R) (tensorPiCoordinates X M n) (tensorPiRecombine X M n) | |
| (tensorPi_retraction X M n) | |
| theorem tensor_projective [Module.Finite (R β[k] Rα΅α΅α΅) M] | |
| [Module.Projective (R β[k] Rα΅α΅α΅) M] : | |
| Module.Projective R (BalancedTensor k R (EnvelopingBimodule k R M) X) := by | |
| obtain β¨n, p, hpβ© := Module.Finite.exists_fin' (R β[k] Rα΅α΅α΅) M | |
| obtain β¨s, hsβ© := Module.projective_lifting_property p | |
| (LinearMap.id : M ββ[R β[k] Rα΅α΅α΅] M) hp | |
| let := regular_projective (k := k) (R := R) X | |
| let : Module.Projective R (BalancedTensor k R | |
| (EnvelopingBimodule k R (piObject (regularObject k R) n)) X) := | |
| tensorPi_projective X (regularObject k R) n | |
| apply Module.Projective.of_split (tensorMap X (ModuleCat.ofHom s)) | |
| (tensorMap X (ModuleCat.ofHom p)) | |
| rw [β tensorMap_comp] | |
| have hsp : ModuleCat.ofHom s β« ModuleCat.ofHom p = π M := by | |
| apply ModuleCat.hom_ext | |
| exact hs | |
| rw [hsp, tensorMap_id] | |
| end ArExplicit.EnvelopingBimodule | |
| end | |
| end OAI | |