Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - chore: to_additive various results on groups, group actions #20498

Closed
wants to merge 8 commits into from

Conversation

AntoineChambert-Loir
Copy link
Collaborator


Open in Gitpod

Copy link

github-actions bot commented Jan 5, 2025

PR summary dde6eb3927

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ SubAddAction
+ _root_.AddAction.IsBlock.of_addsubgroup_of_conjugate
+ _root_.AddAction.IsBlock.translate

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.


Increase in tech debt: (relative, absolute) = (1.00, 0.00)
Current number Change Type
1514 1 erw

Current commit dde6eb3927
Reference commit a57f31753d

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@github-actions github-actions bot added the t-algebra Algebra (groups, rings, fields, etc) label Jan 5, 2025
@YaelDillies YaelDillies changed the title Feat: to_additive various results on groups, group actions chore: to_additive various results on groups, group actions Jan 5, 2025
Copy link
Collaborator

@YaelDillies YaelDillies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for splitting!

Sorry, I got bored halfway through, but there are more to fix. There are also several missing docstrings on the additivised versions

Mathlib/GroupTheory/GroupAction/Pointwise.lean Outdated Show resolved Hide resolved
Mathlib/GroupTheory/GroupAction/SubMulAction.lean Outdated Show resolved Hide resolved
Mathlib/GroupTheory/GroupAction/SubMulAction.lean Outdated Show resolved Hide resolved
Mathlib/GroupTheory/GroupAction/SubMulAction.lean Outdated Show resolved Hide resolved
Mathlib/GroupTheory/GroupAction/SubMulAction.lean Outdated Show resolved Hide resolved
Mathlib/GroupTheory/GroupAction/SubMulAction.lean Outdated Show resolved Hide resolved
Mathlib/GroupTheory/GroupAction/Basic.lean Outdated Show resolved Hide resolved
@YaelDillies YaelDillies added the awaiting-author A reviewer has asked the author a question or requested changes label Jan 5, 2025
@AntoineChambert-Loir AntoineChambert-Loir removed the awaiting-author A reviewer has asked the author a question or requested changes label Jan 6, 2025
Mathlib/GroupTheory/GroupAction/Blocks.lean Outdated Show resolved Hide resolved
Mathlib/GroupTheory/GroupAction/Blocks.lean Outdated Show resolved Hide resolved
Mathlib/GroupTheory/GroupAction/Blocks.lean Outdated Show resolved Hide resolved
Mathlib/GroupTheory/GroupAction/Blocks.lean Show resolved Hide resolved
Mathlib/GroupTheory/GroupAction/Blocks.lean Show resolved Hide resolved
Mathlib/GroupTheory/GroupAction/Blocks.lean Outdated Show resolved Hide resolved
Mathlib/GroupTheory/GroupAction/Blocks.lean Outdated Show resolved Hide resolved
Mathlib/GroupTheory/GroupAction/Blocks.lean Outdated Show resolved Hide resolved
Mathlib/GroupTheory/GroupAction/Blocks.lean Outdated Show resolved Hide resolved
Mathlib/GroupTheory/GroupAction/Blocks.lean Outdated Show resolved Hide resolved
@YaelDillies YaelDillies added the awaiting-author A reviewer has asked the author a question or requested changes label Jan 6, 2025
@AntoineChambert-Loir AntoineChambert-Loir removed the awaiting-author A reviewer has asked the author a question or requested changes label Jan 6, 2025
Copy link
Collaborator

@YaelDillies YaelDillies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

maintainer delegate

theorem isBlock_subtypeVal {C : SubMulAction G X} {B : Set C} :
IsBlock G (Subtype.val '' B : Set X) ↔ IsBlock G B := by
refine forall₂_congr fun g₁ g₂ ↦ ?_
rw [← SubMulAction.inclusion.coe_eq, ← image_smul_set, ← image_smul_set, ne_eq,
Set.image_eq_image C.inclusion_injective, disjoint_image_iff C.inclusion_injective]

theorem _root_.AddAction.IsBlock.of_addsubgroup_of_conjugate
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
theorem _root_.AddAction.IsBlock.of_addsubgroup_of_conjugate
theorem _root_.AddAction.IsBlock.of_addSubgroup_of_conjugate

Comment on lines +164 to +171
/-- A SubAddAction is a set which is closed under scalar multiplication. -/
structure SubAddAction (R : Type u) (M : Type v) [VAdd R M] : Type v where
/-- The underlying set of a `SubAddAction`. -/
carrier : Set M
/-- The carrier set is closed under scalar multiplication. -/
vadd_mem' : ∀ (c : R) {x : M}, x ∈ carrier → c +ᵥ x ∈ carrier

attribute [to_additive] SubMulAction
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you swap SubAddAction and SubMulAction around and tag SubMulAction with to_additive straight away?

Copy link

github-actions bot commented Jan 6, 2025

🚀 Pull request has been placed on the maintainer queue by YaelDillies.

@fpvandoorn
Copy link
Member

bors d+

@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jan 6, 2025

✌️ AntoineChambert-Loir can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@AntoineChambert-Loir
Copy link
Collaborator Author

AntoineChambert-Loir commented Jan 6, 2025 via email

@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented Jan 6, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: to_additive various results on groups, group actions [Merged by Bors] - chore: to_additive various results on groups, group actions Jan 6, 2025
@mathlib-bors mathlib-bors bot closed this Jan 6, 2025
@mathlib-bors mathlib-bors bot deleted the ACL/Primitive-1 branch January 6, 2025 23:47
@YaelDillies
Copy link
Collaborator

@AntoineChambert-Loir, you didn't address my final comments (probably because you didn't see them via the email system)

@AntoineChambert-Loir
Copy link
Collaborator Author

AntoineChambert-Loir commented Jan 7, 2025 via email

mathlib-bors bot pushed a commit that referenced this pull request Jan 7, 2025
Two adjustments to  #20498 that had been requested by @YaelDillies but hadn't been implemented on time before merge.
mathlib-bors bot pushed a commit that referenced this pull request Jan 7, 2025
Two adjustments to  #20498 that had been requested by Yaël but hadn't been implemented on time before merge.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated maintainer-merge t-algebra Algebra (groups, rings, fields, etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants