Download data/lean/OAI/RepresentationTheory/PartialPermutation/IsotypicMatrices.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.47 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/RepresentationTheory/PartialPermutation/IsotypicMatrices.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/RepresentationTheory/PartialPermutation/IsotypicMatrices.lean
-
curl -L -o IsotypicMatrices.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/RepresentationTheory/PartialPermutation/IsotypicMatrices.lean
5.47 kB
| import Mathlib | |
| namespace OAI | |
| section | |
| open scoped Classical | |
| open scoped BigOperators ComplexConjugate MonoidAlgebra | |
| open scoped BigOperators ComplexConjugate | |
| open scoped MonoidAlgebra BigOperators | |
| open scoped BigOperators MonoidAlgebra Classical | |
| attribute [local instance] Classical.propDecidable | |
| open scoped BigOperators | |
| namespace PartialPermutation | |
| section Burnside | |
| variable {R S : Type*} [Ring R] [Algebra β R] [AddCommGroup S] | |
| [Module β S] [Module R S] [IsScalarTower β R S] | |
| [IsSimpleModule R S] [FiniteDimensional β S] | |
| lemma simple_action_surjective : Function.Surjective (Algebra.lsmul β β S (A := R)) := by | |
| intro f | |
| let E := Module.End R S | |
| let f' : Module.End E S := | |
| { toFun := f | |
| map_add' := f.map_add | |
| map_smul' := fun c x => by | |
| obtain β¨t, rflβ© := (IsSimpleModule.algebraMap_end_bijective_of_isAlgClosed β | |
| (A := R) (V := S)).surjective c | |
| change f (t β’ x) = t β’ f x | |
| exact f.map_smul t x } | |
| have : Module.Finite E S := Module.Finite.of_restrictScalars_finite β E S | |
| obtain β¨r, hrβ© := (Module.Finite.toModuleEnd_moduleEnd_surjective (R := R) (M := S)) f' | |
| refine β¨r, ?_β© | |
| ext x | |
| exact congrArg (fun A : Module.End E S => A x) hr | |
| end Burnside | |
| def diagonalEnd {S : Type*} [AddCommGroup S] [Module β S] (m : β) : | |
| Module.End β S ββ[β] Module.End β (Fin m β S) where | |
| toFun A := LinearMap.pi fun i => A.comp (LinearMap.proj i) | |
| map_zero' := by ext; rfl | |
| map_one' := by ext; rfl | |
| map_add' := by intros; ext; rfl | |
| map_mul' := by intros; ext; rfl | |
| commutes' := by intro; ext; rfl | |
| section Isotypic | |
| variable {R M S : Type*} [Ring R] [Algebra β R] | |
| [AddCommGroup M] [Module β M] [Module R M] [IsScalarTower β R M] | |
| [AddCommGroup S] [Module β S] [Module R S] [IsScalarTower β R S] | |
| noncomputable def isotypicLift {m : β} (e : M ββ[R] Fin m β S) : | |
| Module.End β S ββ[β] Module.End β M := | |
| (e.restrictScalars β).symm.conjAlgEquiv β |>.toAlgHom.comp (diagonalEnd m) | |
| lemma isotypicLift_action {m : β} (e : M ββ[R] Fin m β S) (r : R) : | |
| isotypicLift e (Algebra.lsmul β β S r) = Algebra.lsmul β β M r := by | |
| ext x | |
| apply (e.restrictScalars β).injective | |
| simp [isotypicLift, diagonalEnd, LinearEquiv.conjAlgEquiv_apply, map_smul] | |
| ext i | |
| rfl | |
| lemma isotypicLift_range [IsSimpleModule R S] [FiniteDimensional β S] | |
| {m : β} (e : M ββ[R] Fin m β S) (A : Module.End β S) : | |
| β r : R, isotypicLift e A = Algebra.lsmul β β M r := by | |
| obtain β¨r, rflβ© := simple_action_surjective (R := R) A | |
| exact β¨r, isotypicLift_action e rβ© | |
| noncomputable def isotypicOrbitMap {m : β} (e : M ββ[R] Fin m β S) (v : M) : | |
| Module.End β S ββ[β] M where | |
| toFun A := isotypicLift e A v | |
| map_add' A B := by simp | |
| map_smul' c A := by simp | |
| lemma mem_isotypicOrbitMap_range {m : β} (e : M ββ[R] Fin m β S) (v : M) : | |
| v β LinearMap.range (isotypicOrbitMap e v) := by | |
| refine β¨1, ?_β© | |
| simp [isotypicOrbitMap] | |
| lemma isotypicOrbitMap_range_invariant {m : β} (e : M ββ[R] Fin m β S) | |
| (v : M) (r : R) (x : M) (hx : x β LinearMap.range (isotypicOrbitMap e v)) : | |
| r β’ x β LinearMap.range (isotypicOrbitMap e v) := by | |
| obtain β¨A, rflβ© := hx | |
| refine β¨Algebra.lsmul β β S r * A, ?_β© | |
| change isotypicLift e (_ * A) v = r β’ (isotypicLift e A v) | |
| rw [map_mul, Module.End.mul_apply, isotypicLift_action] | |
| rfl | |
| lemma finrank_isotypicOrbitMap_range [FiniteDimensional β S] {m : β} | |
| (e : M ββ[R] Fin m β S) (v : M) : | |
| Module.finrank β (LinearMap.range (isotypicOrbitMap e v)) β€ | |
| (Module.finrank β S) ^ 2 := by | |
| calc | |
| _ β€ Module.finrank β (Module.End β S) := LinearMap.finrank_range_le _ | |
| _ = _ := by rw [Module.finrank_linearMap]; ring | |
| end Isotypic | |
| structure IsotypicMatrixModel (R M : Type*) [Ring R] [Algebra β R] | |
| [AddCommGroup M] [Module β M] [Module R M] [IsScalarTower β R M] where | |
| degree : β | |
| degree_pos : 0 < degree | |
| lift : Matrix (Fin degree) (Fin degree) β ββ[β] Module.End β M | |
| lift_image : β A, β r : R, lift A = Algebra.lsmul β β M r | |
| orbit : β v : M, β W : Submodule β M, v β W β§ | |
| (β r : R, β x β W, r β’ x β W) β§ Module.finrank β W β€ degree ^ 2 | |
| lemma exists_isotypicMatrixModel {R M : Type*} [Ring R] [Algebra β R] | |
| [AddCommGroup M] [Module β M] [Module R M] [IsScalarTower β R M] | |
| [FiniteDimensional β M] [Nontrivial M] [IsSemisimpleModule R M] | |
| (h : IsIsotypic R M) : Nonempty (IsotypicMatrixModel R M) := by | |
| have : Module.Finite R M := Module.Finite.of_restrictScalars_finite β R M | |
| obtain β¨m, hm, S, hS, β¨eβ©β© := h.linearEquiv_fun | |
| let : IsSimpleModule R S := hS | |
| have : Nontrivial S := IsSimpleModule.nontrivial R S | |
| have : FiniteDimensional β S := | |
| Module.Finite.of_injective (S.subtype.restrictScalars β) S.subtype_injective | |
| let F := (isotypicLift e).comp (Matrix.toLinAlgEquiv (Module.finBasis β S)).toAlgHom | |
| refine β¨{ degree := Module.finrank β S | |
| degree_pos := Module.finrank_pos | |
| lift := F | |
| lift_image := ?_ | |
| orbit := ?_ }β© | |
| Β· intro A | |
| exact isotypicLift_range e _ | |
| Β· intro v | |
| exact β¨LinearMap.range (isotypicOrbitMap e v), mem_isotypicOrbitMap_range e v, | |
| isotypicOrbitMap_range_invariant e v, finrank_isotypicOrbitMap_range e vβ© | |
| end PartialPermutation | |
| end | |
| end OAI | |