Repository navigation
Conversation
PR summary 620b1fc34aImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
| Current number | Change | Type (strong) |
|---|---|---|
| 3509 | -4 | backward.isDefEq.respectTransparency |
| 12 | -1 | backward.isDefEq.respectTransparency.instanceSearchTypes |
| 362 | -1 | adaptation notes |
Current commit 620b1fc34a
Reference commit 29c91d5f70
This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py pr_summary
- The
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
| simp | ||
|
|
||
| @[simp] | ||
| theorem asModuleEquiv_symm_map_rho (g : G) (x : V) : |
There was a problem hiding this comment.
Is rho really a mathlib style name?
There was a problem hiding this comment.
now that I'm looking at this this is indeed not a good name, do you have any suggestions for a better name?
There was a problem hiding this comment.
not really, but I don't mind an @[deprecated] since it follows from simp now
There was a problem hiding this comment.
First of all, MonoidAlgebra.of k G g is just a wrapper of single g (1 : k) so this lemma follows from your single_smul_asModuleEquiv_symm_apply. We can record it as a rewrite lemma
lemma single_one_smul_asModuleEquiv_symm_apply (g : G) (x : V) :
single g (1 : k) • ρ.asModuleEquiv.symm x = ρ.asModuleEquiv.symm (ρ g x) := by
simp
By the way, in line 83 RepresentationTheory.Submodule.lean we can use a better proof
exact ρ.asModuleEquiv.injective (by simp)⟩
| @[simp] | ||
| theorem asModuleEquiv_symm_map_rho (g : G) (x : V) : | ||
| ρ.asModuleEquiv.symm (ρ g x) = MonoidAlgebra.of k G g • ρ.asModuleEquiv.symm x := by | ||
| rw [LinearEquiv.symm_apply_eq] |
There was a problem hiding this comment.
Now this lemma follows from by simp with the helf of your new design single_smul_asModuleEquiv_symm_apply
| @@ -174,12 +174,25 @@ theorem asModuleEquiv_symm_map_smul (r : k) (x : V) : | |||
| rw [LinearEquiv.symm_apply_eq] | |||
There was a problem hiding this comment.
This lemma can be proved from by simp now with the help of single_smul_asModuleEquiv_symm_apply
| noncomputable def equivLinearMapAsModule : | ||
| IntertwiningMap ρ σ ≃ₗ[A] ρ.asModule →ₗ[A[G]] σ.asModule where | ||
| toFun f := | ||
| { toFun := f.toLinearMap | ||
| map_add' := f.toLinearMap.map_add' | ||
| { toFun := σ.asModuleEquiv.symm ∘ₗ f.toLinearMap ∘ₗ ρ.asModuleEquiv | ||
| map_add' := by simp | ||
| map_smul' m v := by | ||
| induction m using MonoidAlgebra.induction_linear with | ||
| | zero => simp [f.toLinearMap.map_zero] | ||
| | zero => simp | ||
| | add x y hx hy => simp [add_smul, map_add, hx, hy] | ||
| | single g a => simp [f.isIntertwining]; rfl } | ||
| | single g a => simp [f.isIntertwining] } | ||
| invFun f := | ||
| { toLinearMap := { f with | ||
| { toLinearMap := | ||
| { σ.asModuleEquiv.toLinearMap ∘ₗ f.restrictScalars A ∘ₗ ρ.asModuleEquiv.symm.toLinearMap with | ||
| map_smul' a v := by simp } | ||
| isIntertwining' g := by ext v; simpa using! f.map_smul' (MonoidAlgebra.single g 1) v } | ||
| isIntertwining' g := by | ||
| ext v | ||
| calc | ||
| _ = _ := by simp | ||
| _ = _ := congrArg σ.asModuleEquiv | ||
| (f.map_smul' (MonoidAlgebra.single g 1) (ρ.asModuleEquiv.symm v)) | ||
| _ = _ := by simp } | ||
| map_add' g₁ g₂ := by ext; simp | ||
| map_smul' t g := by ext; simp | ||
| left_inv f := rfl | ||
| right_inv f := rfl |
There was a problem hiding this comment.
| noncomputable def equivLinearMapAsModule : | |
| IntertwiningMap ρ σ ≃ₗ[A] ρ.asModule →ₗ[A[G]] σ.asModule where | |
| toFun f := | |
| { toFun := σ.asModuleEquiv.symm ∘ₗ f.toLinearMap ∘ₗ ρ.asModuleEquiv | |
| map_add' := by simp | |
| map_smul' m _ := by | |
| refine MonoidAlgebra.induction_linear m (by simp) ?_ (by simp [f.isIntertwining]) | |
| exact fun _ _ hx hy => by simp [add_smul, map_add, hx, hy] } | |
| invFun f := | |
| { toLinearMap := σ.asModuleEquiv.toLinearMap ∘ₗ f ∘ₗ ρ.asModuleEquiv.symm.toLinearMap | |
| isIntertwining' g := LinearMap.ext fun v => by simpa using congrArg σ.asModuleEquiv <| | |
| (f.map_smul' (MonoidAlgebra.single g 1) (ρ.asModuleEquiv.symm v)) } | |
| map_add' _ _ := by ext; simp | |
| map_smul' _ _ := by ext; simp | |
| left_inv _ := rfl | |
| right_inv _ := rfl |
There was a problem hiding this comment.
I prefer using the induction tactic to do induction.
There was a problem hiding this comment.
| invFun f := | |
| { toLinearMap := σ.asModuleEquiv.toLinearMap ∘ₗ f ∘ₗ ρ.asModuleEquiv.symm.toLinearMap |
This should be an improvement
Co-authored-by: JX-Mo <[email protected]>
Co-authored-by: JX-Mo <[email protected]>
Representation.asModuleRepresentation.asModule
|
This pull request has conflicts, please merge |
Reduce defeq abuse around
Representation.asModuleby adding explicitly uses ofRepresentation.asModuleEquivto convert betweenVandρ.asModule. Also reorganize some@[simp]lemmas and fix some naming issues.