Repository navigation
[Merged by Bors] - chore(RepresentationTheory): Refactor Rep - #36127
Closed
Whysoserioushah wants to merge 235 commits into
Closed
Whysoserioushah wants to merge 235 commits into
Whysoserioushah wants to merge 235 commits into
Conversation
….lean Co-authored-by: Riccardo Brasca <[email protected]>
kbuzzard
reviewed
Mar 24, 2026
kbuzzard
reviewed
Mar 24, 2026
…lib4 into edison/refactor_rep
Member
|
!radar |
|
Benchmark results for 9c18916 against 817fb21 are in. Significant changes detected! @riccardobrasca
Large changes (2✅)
Medium changes (5✅, 1🟥)
Small changes (5✅, 7🟥)
|
Member
|
!radar |
|
Benchmark results for 3af8f13 against 817fb21 are in. Significant changes detected! @riccardobrasca
Large changes (2✅)
Medium changes (5✅, 1🟥)
Small changes (4✅, 7🟥)
|
Member
|
Thanks! bors merge |
mathlib-bors Bot
pushed a commit
that referenced
this pull request
Mar 24, 2026
In this PR I've added three more files in a folder "Rep" to replace the old `RepresentationTheory.Rep` as it's quite a long file. `Rep.Basic`: Defines `Rep` in terms of bundled `Representation`s instead of using `Action`. `Rep.Iso`: Proves the category equivalence between `Rep k G` and `ModuleCat k k[G]`. `Rep.Res`: Introduces restriction on a representation induced by a group homomorphism, this is upstreamed from ClassFieldTheory project to avoid the use of `Action`. Co-authored-by: Kevin Buzzard <[email protected]>
Contributor
|
Pull request successfully merged into master. Build succeeded:
|
justus-springer
pushed a commit
to justus-springer/mathlib4
that referenced
this pull request
Mar 28, 2026
In this PR I've added three more files in a folder "Rep" to replace the old `RepresentationTheory.Rep` as it's quite a long file. `Rep.Basic`: Defines `Rep` in terms of bundled `Representation`s instead of using `Action`. `Rep.Iso`: Proves the category equivalence between `Rep k G` and `ModuleCat k k[G]`. `Rep.Res`: Introduces restriction on a representation induced by a group homomorphism, this is upstreamed from ClassFieldTheory project to avoid the use of `Action`. Co-authored-by: Kevin Buzzard <[email protected]>
YaelDillies
added a commit
to YaelDillies/mathlib4
that referenced
this pull request
Apr 1, 2026
…`Monoid` This was accidentally ungeneralised in leanprover-community#36127.
aditya-ramabadran
pushed a commit
to aditya-ramabadran/mathlib4
that referenced
this pull request
Apr 1, 2026
…`Monoid` (leanprover-community#37483) This was accidentally ungeneralised in leanprover-community#36127. From ClassFieldTheory
xroblot
pushed a commit
to xroblot/mathlib4
that referenced
this pull request
Apr 3, 2026
…`Monoid` (leanprover-community#37483) This was accidentally ungeneralised in leanprover-community#36127. From ClassFieldTheory
eohjelle
pushed a commit
to eohjelle/TauCeti
that referenced
this pull request
Oct 19, 2026
…ality (TauCetiProject#16535) This PR exposes the bodies of `TauCeti.conjRepFunctor`, `TauCeti.conjRep`, `TauCeti.conjFDRepFunctor` and `TauCeti.conjFDRep`, and restates the lemmas about the conjugate action as plain equalities instead of heterogeneous equalities and casts. These four definitions were sealed, so in every importing module the carrier `(conjRep s A).V` is not definitionally `A.V`. As a result the statement a consumer actually wants, `(conjRep s A).ρ x = A.ρ (conjSubgroupEquiv s H x)`, does not elaborate outside `Conjugate.lean`. It fails with `Type mismatch … The following definitions were not unfolded because their definition is not exposed: TauCeti.conjRep`. Even `(conjRep s A).V = A.V := by rfl` fails there. The same restriction applies to public statements inside the defining file, so the API was forced into workarounds: - `conjRep_ρ`, `conjRep_ρ_mk`, `conjFDRep_ρ`, `conjRepFunctor_map_hom_toLinearMap` and the two `conjRepSubrepresentationOrderIso_…_toSubmodule` lemmas were `HEq` statements; - `conjRep_ρ_apply` and `conjFDRep_ρ_cast` were stated through `cast` along `conjRep_V` and `conjFDRep_V`. An `HEq` lemma cannot be used by `rw` or `simp`, so the two `@[simp]` ones never fired as rewrites. With the bodies exposed, all of these lemmas are equalities, and most are `rfl`. For example, `conjFDRep_ρ` drops from an eight-line proof (a `change`, three rewrites through `FDRep.hom_hom_action_ρ` and `Action.res_obj_ρ`, then `congrArg`) to `rfl`. `conjRep_V` and `conjFDRep_V` drop their `change` steps and are proved by `(rfl)`, so they are not added to `dsimp`'s defeq set. The file shrinks by 22 lines. No caller outside the file uses the changed statements: the Mackey files go through `res_obj_eq_conjRep` and `res_obj_eq_conjFDRep`, which are unchanged. This matches Mathlib's restriction functor, which `conjRep` specialises. [`Rep.resFunctor`](https://github.com/leanprover-community/mathlib4/blob/3b531c35df33d6bbe64b4e87dec056211d3a5676/Mathlib/RepresentationTheory/Rep/Res.lean#L37) and [`Rep.res`](https://github.com/leanprover-community/mathlib4/blob/3b531c35df33d6bbe64b4e87dec056211d3a5676/Mathlib/RepresentationTheory/Rep/Res.lean#L42) are `abbrev`s. Because of that, [`Rep.coe_res_obj_ρ'`](https://github.com/leanprover-community/mathlib4/blob/3b531c35df33d6bbe64b4e87dec056211d3a5676/Mathlib/RepresentationTheory/Rep/Res.lean#L50) and [`Rep.res_obj_V`](https://github.com/leanprover-community/mathlib4/blob/3b531c35df33d6bbe64b4e87dec056211d3a5676/Mathlib/RepresentationTheory/Rep/Res.lean#L52) are equalities proved by `rfl`. They were introduced in that form by leanprover-community/mathlib4#36127 and kept when leanprover-community/mathlib4#38480 removed superfluous file-level `@[expose]`. [`Action.res`](https://github.com/leanprover-community/mathlib4/blob/3b531c35df33d6bbe64b4e87dec056211d3a5676/Mathlib/CategoryTheory/Action/Basic.lean#L328), which `conjFDRepFunctor` wraps, sits in an `@[expose] public section` with `@[simps]`. Within this file, the normal-subgroup sibling `conjNormalRepFunctor`/`conjNormalRep` was already `@[expose]` (TauCetiProject#1513) for exactly this reason, which makes `conjNormalRep_ρ` `rfl`. Its docstrings, which contrasted it with the heterogeneous `conjRep_ρ`, are updated. A sealed body lets the encoding change without touching importers, and stops downstream proofs from depending on it definitionally. Here there is no rival encoding to protect: `res_obj_eq_conjRep` and `res_obj_eq_conjFDRep` already record, by `rfl`, that the conjugate *is* Mathlib's restriction along `conjSubgroupEquiv s H`. Exposure does not change reducibility, so `rw` and `simp` still do not unfold these definitions. Removed public declarations: - `TauCeti.conjFDRep_ρ_cast`: replaced by `TauCeti.conjFDRep_ρ`, which is now the equality `(conjFDRep s A).ρ x = A.ρ (conjSubgroupEquiv s H x)`. Restated under the same names, as equalities: `TauCeti.conjRep_ρ`, `TauCeti.conjRep_ρ_apply` (no casts), `TauCeti.conjRep_ρ_mk`, `TauCeti.conjFDRep_ρ`, `TauCeti.conjRepFunctor_map_hom_toLinearMap`, `TauCeti.conjRepSubrepresentationOrderIso_apply_toSubmodule` and `TauCeti.conjRepSubrepresentationOrderIso_symm_apply_toSubmodule`. Each old `HEq` form is recovered by `heq_of_eq`. Roadmap: RepresentationTheory <!--tauceti-target:v1 {"focus":"RepresentationTheory","id":"conjrep"}--> 🤖 Prepared with Claude Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In this PR I've added three more files in a folder "Rep" to replace the old
RepresentationTheory.Repas it's quite a long file.Rep.Basic: DefinesRepin terms of bundledRepresentations instead of usingAction.Rep.Iso: Proves the category equivalence betweenRep k GandModuleCat k k[G].Rep.Res: Introduces restriction on a representation induced by a group homomorphism, this is upstreamed from ClassFieldTheory project to avoid the use ofAction.I believe I tried to make the minimal change to the rest of the files just enough to make it build without any
erws :-/Future plans :
Action(very hard) or refactorRepeven more to make it completely independent ofAction.