Repository navigation
[Merged by Bors] - feat(Algebra/Group): add theorems about Submonoid.pi - #28665
staroperator wants to merge 9 commits into
Conversation
PR summary fd9fa0be7f
|
| File | Base Count | Head Count | Change |
|---|---|---|---|
| Mathlib.Algebra.Group.Submonoid.Operations | 331 | 335 | +4 (+1.21%) |
Import changes for all files
| Files | Import difference |
|---|---|
10 filesMathlib.CategoryTheory.Galois.Decomposition Mathlib.CategoryTheory.Galois.GaloisObjects Mathlib.CategoryTheory.Galois.Prorepresentability Mathlib.Combinatorics.Additive.VerySmallDoubling Mathlib.GroupTheory.CoprodI Mathlib.GroupTheory.GroupAction.SubMulAction.OfFixingSubgroup Mathlib.GroupTheory.GroupAction.SubMulAction.OfStabilizer Mathlib.GroupTheory.MonoidLocalization.Cardinality Mathlib.MeasureTheory.Constructions.SubmoduleQuotient Mathlib.RingTheory.OreLocalization.Cardinality |
1 |
32 filesMathlib.Algebra.Algebra.Field Mathlib.Algebra.Category.Grp.Limits Mathlib.Algebra.CharZero.Quotient Mathlib.Algebra.ModEq Mathlib.Algebra.Order.Archimedean.Class Mathlib.Algebra.Order.Monoid.LocallyFiniteOrder Mathlib.Algebra.Order.Ring.Star Mathlib.Algebra.Order.Star.Basic Mathlib.Algebra.Order.Star.Prod Mathlib.Algebra.Pointwise.Stabilizer Mathlib.Algebra.Ring.NonZeroDivisors Mathlib.Algebra.Ring.Submonoid.Pointwise Mathlib.Algebra.Star.NonUnitalSubsemiring Mathlib.CategoryTheory.Monoidal.Cartesian.CommGrp_ Mathlib.CategoryTheory.Monoidal.Cartesian.Grp_ Mathlib.Data.Int.Star Mathlib.Data.Rat.Star Mathlib.LinearAlgebra.Quotient.Defs Mathlib.NumberTheory.FrobeniusNumber Mathlib.RingTheory.Congruence.Basic Mathlib.RingTheory.Congruence.Opposite Mathlib.RingTheory.Ideal.Quotient.Defs Mathlib.RingTheory.Localization.Defs Mathlib.RingTheory.NonUnitalSubsemiring.Basic Mathlib.RingTheory.OreLocalization.Ring Mathlib.RingTheory.SimpleRing.Basic Mathlib.RingTheory.SimpleRing.Defs Mathlib.RingTheory.TwoSidedIdeal.Basic Mathlib.RingTheory.TwoSidedIdeal.BigOperators Mathlib.RingTheory.TwoSidedIdeal.Instances Mathlib.RingTheory.TwoSidedIdeal.Kernel Mathlib.RingTheory.TwoSidedIdeal.Lattice |
2 |
11 filesMathlib.Algebra.Group.Submonoid.Pointwise Mathlib.Algebra.Group.Submonoid.Units Mathlib.Algebra.GroupWithZero.Submonoid.Pointwise Mathlib.Geometry.Group.Growth.QuotientInter Mathlib.GroupTheory.FreeGroup.Basic Mathlib.GroupTheory.FreeGroup.IsFreeGroup Mathlib.GroupTheory.FreeGroup.Reduce Mathlib.GroupTheory.GroupAction.Basic Mathlib.GroupTheory.GroupAction.FixingSubgroup Mathlib.GroupTheory.QuotientGroup.Defs Mathlib.GroupTheory.Submonoid.Inverses |
3 |
24 filesMathlib.Algebra.Group.Graph Mathlib.Algebra.Group.Subgroup.Ker Mathlib.Algebra.Group.Subgroup.Lattice Mathlib.Algebra.Group.Subgroup.Map Mathlib.Algebra.Group.Subgroup.ZPowers.Basic Mathlib.Algebra.Group.Submonoid.Membership Mathlib.Algebra.Group.Submonoid.Operations Mathlib.Algebra.GroupWithZero.NonZeroDivisors Mathlib.Algebra.Order.Hom.Submonoid Mathlib.Algebra.PresentedMonoid.Basic Mathlib.Algebra.Ring.Subring.Units Mathlib.GroupTheory.Congruence.Basic Mathlib.GroupTheory.Coprod.Basic Mathlib.GroupTheory.MonoidLocalization.Away Mathlib.GroupTheory.MonoidLocalization.Basic Mathlib.GroupTheory.MonoidLocalization.DivPairs Mathlib.GroupTheory.MonoidLocalization.GrothendieckGroup Mathlib.GroupTheory.MonoidLocalization.MonoidWithZero Mathlib.GroupTheory.MonoidLocalization.Order Mathlib.GroupTheory.NoncommCoprod Mathlib.GroupTheory.Subgroup.Saturated Mathlib.GroupTheory.Submonoid.Center Mathlib.GroupTheory.Submonoid.Centralizer Mathlib.RingTheory.OreLocalization.NonZeroDivisors |
4 |
Declarations diff
+ coe_pi
+ le_pi_iff
+ mem_pi
+ mulSingle_mem_pi
+ pi
+ pi_bot
+ pi_empty
+ pi_eq_bot_iff
+ pi_top
+ subset_pi_iff
+ univ_pi_eq_singleton_iff
+ update_mem_pi_iff
+ update_mem_pi_iff_of_mem
- _root_.Submonoid.pi
You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>The doc-module for script/declarations_diff.sh contains some details about this script.
No changes to technical debt.
You can run this locally as
./scripts/technical-debt-metrics.sh 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).
| simpa using h hj | ||
| · simpa [heq] using ha j hj | ||
|
|
||
| theorem univ_pi_eq_singleton_iff {a} : pi univ t = {a} ↔ ∀ i, t i = {a i} := by |
There was a problem hiding this comment.
| theorem univ_pi_eq_singleton_iff {a} : pi univ t = {a} ↔ ∀ i, t i = {a i} := by | |
| theorem pi_univ_eq_singleton_iff {a} : pi univ t = {a} ↔ ∀ i, t i = {a i} := by |
There was a problem hiding this comment.
Following Set.empty_pi and Set.univ_pi_eq_empty, the first argument of Set.pi should be placed before pi in theorem name.
There was a problem hiding this comment.
These are misnamed, unfortunately. Since Set.pi does not have infix notation, we preserve the order of appearance when naming declarations.
There was a problem hiding this comment.
Then let me add a note in the module doc.
There was a problem hiding this comment.
I think we often allow definitions to be named with infix convention even if they have no notation allocated.
Co-authored-by: Christian Merten <[email protected]>
13fcc8e to
6c013a7
Compare
This reverts commit 6c013a7.
| Set.subset_pi_iff | ||
|
|
||
| @[to_additive (attr := simp)] | ||
| theorem mulSingle_mem_pi [DecidableEq ι] {I : Set ι} {S : ∀ i, Submonoid (M i)} (i : ι) (x : M i) : |
There was a problem hiding this comment.
| theorem mulSingle_mem_pi [DecidableEq ι] {I : Set ι} {S : ∀ i, Submonoid (M i)} (i : ι) (x : M i) : | |
| theorem mulSingle_mem_pi [DecidableEq ι] {I : Set ι} {S : ∀ i, Submonoid (M i)} {i : ι} {x : M i} : |
to match the set one.
There was a problem hiding this comment.
Oh nevermind, this doesn't match Subgroup
There was a problem hiding this comment.
Out of curiosity, does Mathlib have a style guide on when to make arguments explicit and when implicit?
|
bors d+ Things are still slightly messy here, but it's no longer the fault of your PR. We're no longer repeating any interesting proofs, so I think this is already an overall improvement. Thanks! |
|
✌️ staroperator can now approve this pull request. To approve and merge a pull request, simply reply with |
|
bors r+ |
This PR adds theorems on `Submonoid.pi`, which are the same theorems on `Subgroup.pi`. Also chore: 1. moved `Submonoid.pi` from Subgroup/Basic.lean to Submonoid/Operations.lean, which is a more suitable place. 2. changed the type of `Subgroup.le_pi_iff`, to align with its simp normal form in `Set` (see [`Set.image_subset_iff`](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Data/Set/Image.html#Set.image_subset_iff)). Co-authored-by: staroperator <[email protected]>
|
Pull request successfully merged into master. Build succeeded: |
Submonoid.piSubmonoid.pi
…mmunity#28665) This PR adds theorems on `Submonoid.pi`, which are the same theorems on `Subgroup.pi`. Also chore: 1. moved `Submonoid.pi` from Subgroup/Basic.lean to Submonoid/Operations.lean, which is a more suitable place. 2. changed the type of `Subgroup.le_pi_iff`, to align with its simp normal form in `Set` (see [`Set.image_subset_iff`](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Data/Set/Image.html#Set.image_subset_iff)). Co-authored-by: staroperator <[email protected]>
This PR adds theorems on
Submonoid.pi, which are the same theorems onSubgroup.pi.Also chore:
Submonoid.pifrom Subgroup/Basic.lean to Submonoid/Operations.lean, which is a more suitable place.Subgroup.le_pi_iff, to align with its simp normal form inSet(seeSet.image_subset_iff).