Download lean/OAI/Algebra/AuslanderReiten/Triangular/TriangularProjective.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 4.59 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Algebra/AuslanderReiten/Triangular/TriangularProjective.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Algebra/AuslanderReiten/Triangular/TriangularProjective.lean
-
curl -L -o TriangularProjective.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Algebra/AuslanderReiten/Triangular/TriangularProjective.lean
4.59 kB
Lean 4 · 11
declarations statementsfull
private instance finitePiProjective {S P ι : Type*} [Ring S] [AddCommGroup P]
[Module S P] [Module.Projective S P] [Fintype ι] : Module.Projective S (ι → P) := body · 2 lines
Module.Projective.of_equiv (DFinsupp.linearEquivFunOnFintype :
(Π₀ _ : ι, P) ≃ₗ[S] (ι → P))def eRegularInclusion : TriangularE k R F R →ₗ[Triangular R F] Triangular R F where body · 11 lines
toFun x := ⟨x.top, 0, BalancedTensor.runitLeft (S := R) x.bottom⟩
map_add' x y := by ext <;> simp
map_smul' a x := by
ext
· rfl
· simp
· change BalancedTensor.runitLeft (S := R)
(BalancedTensor.tmul a.off x.top + a.bottom • x.bottom) =
a.bottom • BalancedTensor.runitLeft (S := R) x.bottom + MulOpposite.op x.top • a.off
rw [map_add, map_smul]
exact add_comm _ _def eRegularProjection : Triangular R F →ₗ[Triangular R F] TriangularE k R F R where body · 12 lines
toFun a := ⟨a.top, (BalancedTensor.runitLeft (k := k) (R := R) (S := R)).symm a.off⟩
map_add' a b := by ext <;> simp
map_smul' a b := by
ext
· rfl
· change (BalancedTensor.runitLeft (S := R)).symm
(a.bottom • b.off + MulOpposite.op b.top • a.off) =
BalancedTensor.tmul a.off b.top +
a.bottom • (BalancedTensor.runitLeft (S := R)).symm b.off
apply (BalancedTensor.runitLeft (S := R)).injective
rw [LinearEquiv.apply_symm_apply, map_add, map_smul, LinearEquiv.apply_symm_apply]
exact add_comm _ _theorem eRegular_split :
(eRegularProjection (k := k) (R := R) (F := F)).comp eRegularInclusion = LinearMap.id := by proof · 5 lines
apply LinearMap.ext
intro x
ext
· rfl
· exact (BalancedTensor.runitLeft (S := R)).symm_apply_apply x.bottominstance eRegular_projective : Module.Projective (Triangular R F) (TriangularE k R F R) := body · 1 line
Module.Projective.of_split eRegularInclusion eRegularProjection eRegular_splitdef jRegularInclusion : TriangularJ k R F R →ₗ[Triangular R F] Triangular R F where body · 3 lines
toFun x := ⟨0, x.bottom, 0⟩
map_add' x y := by ext <;> simp
map_smul' a x := by ext <;> simpdef jRegularProjection : Triangular R F →ₗ[Triangular R F] TriangularJ k R F R where body · 3 lines
toFun a := ⟨0, a.bottom⟩
map_add' a b := by ext; simp
map_smul' a b := by ext; simptheorem jRegular_split :
(jRegularProjection (k := k) (R := R) (F := F)).comp jRegularInclusion = LinearMap.id := by proof · 4 lines
apply LinearMap.ext
intro x
ext
exact rflinstance jRegular_projective : Module.Projective (Triangular R F) (TriangularJ k R F R) := body · 1 line
Module.Projective.of_split jRegularInclusion jRegularProjection jRegular_splittheorem eProjective [Module.Finite R M] [Module.Projective R M] :
Module.Projective (Triangular R F) (TriangularE k R F M) := by proof · 6 lines
obtain ⟨n, p, hp⟩ := Module.Finite.exists_fin' R M
obtain ⟨s, hs⟩ := Module.projective_lifting_property p (LinearMap.id : M →ₗ[R] M) hp
let : Module.Projective (Triangular R F) (TriangularE k R F (Fin n → R)) :=
Module.Projective.of_equiv (ePi (k := k) (R := R) (F := F) (M := R) (Fin n)).symm
apply Module.Projective.of_split (eMap s) (eMap p)
rw [← eMap_comp, hs, eMap_id]theorem jProjective [Module.Finite R M] [Module.Projective R M] :
Module.Projective (Triangular R F) (TriangularJ k R F M) := by proof · 6 lines
obtain ⟨n, p, hp⟩ := Module.Finite.exists_fin' R M
obtain ⟨s, hs⟩ := Module.projective_lifting_property p (LinearMap.id : M →ₗ[R] M) hp
let : Module.Projective (Triangular R F) (TriangularJ k R F (Fin n → R)) :=
Module.Projective.of_equiv (jPi (k := k) (R := R) (F := F) (M := R) (Fin n)).symm
apply Module.Projective.of_split (jMap s) (jMap p)
rw [← jMap_comp, hs, jMap_id]Outline