Download data/lean/OAI/NumberTheory/PiExponent/Polynomials/GradedSubring.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.09 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/PiExponent/Polynomials/GradedSubring.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/NumberTheory/PiExponent/Polynomials/GradedSubring.lean
-
curl -L -o GradedSubring.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/PiExponent/Polynomials/GradedSubring.lean
2.09 kB
| import Mathlib | |
| namespace OAI | |
| noncomputable section | |
| namespace PiExponent | |
| open DirectSum | |
| variable {A : Type*} [CommRing A] | |
| (π : β β Submodule β€ A) [GradedAlgebra π] | |
| (S : Subring A) | |
| def subringGrade (n : β) : Submodule β€ S := | |
| (π n).comap S.subtype.toAddMonoidHom.toIntLinearMap | |
| theorem subringGrade_independent : iSupIndep (subringGrade π S) := by | |
| have h := (DirectSum.Decomposition.isInternal π).submodule_iSupIndep | |
| intro i | |
| rw [disjoint_iff_inf_le] | |
| intro x hx | |
| apply Subtype.ext | |
| apply (disjoint_iff_inf_le.mp (h i)) | |
| refine β¨hx.1, ?_β© | |
| have hle : (β¨ j, β¨ (_ : j β i), subringGrade π S j) β€ | |
| (β¨ j, β¨ (_ : j β i), π j).comap S.subtype.toAddMonoidHom.toIntLinearMap := by | |
| refine iSup_le fun j => iSup_le fun hj => ?_ | |
| exact Submodule.comap_mono (le_iSup_of_le j (le_iSup_of_le hj le_rfl)) | |
| exact hle hx.2 | |
| theorem subringGrade_spans | |
| (hS : β n x, x β S β (decompose π x n : A) β S) : | |
| (β¨ n, subringGrade π S n) = β€ := by | |
| classical | |
| apply top_unique | |
| intro x _ | |
| let c : β β S := fun n => β¨decompose π x.1 n, hS n x.1 x.2β© | |
| have he : x = β n β (decompose π x.1).support, c n := by | |
| apply Subtype.ext | |
| change x.1 = S.subtype (β n β (decompose π x.1).support, c n) | |
| rw [map_sum] | |
| exact (sum_support_decompose π x.1).symm | |
| rw [he] | |
| apply Submodule.sum_mem | |
| intro n hn | |
| exact (le_iSup (subringGrade π S) n) (show c n β subringGrade π S n from | |
| (decompose π x.1 n).2) | |
| @[instance_reducible] | |
| def subringGradedAlgebra | |
| (hS : β n x, x β S β (decompose π x n : A) β S) : | |
| GradedAlgebra (subringGrade π S) where | |
| one_mem := show (1 : A) β π 0 from SetLike.one_mem_graded π | |
| mul_mem := by | |
| intro i j x y hx hy | |
| change (x.1 * y.1) β π (i + j) | |
| exact SetLike.mul_mem_graded hx hy | |
| toDecomposition := | |
| (DirectSum.isInternal_submodule_of_iSupIndep_of_iSup_eq_top | |
| (subringGrade_independent π S) (subringGrade_spans π S hS)).chooseDecomposition | |
| end PiExponent | |
| end | |
| end OAI | |