Skip to content

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

Closed
AntoineChambert-Loir wants to merge 8 commits into
masterfrom
ACL/Primitive-1
Closed

AntoineChambert-Loir wants to merge 8 commits into
masterfrom
ACL/Primitive-1

Conversation

@AntoineChambert-Loir

Copy link
Copy Markdown
Collaborator

Open in Gitpod

@github-actions

github-actions Bot commented Jan 5, 2025 •

Copy link
Copy Markdown

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

@YaelDillies YaelDillies left a comment •

Copy link
Copy Markdown
Contributor

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

@YaelDillies YaelDillies added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jan 5, 2025
@AntoineChambert-Loir AntoineChambert-Loir removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jan 6, 2025
@YaelDillies YaelDillies added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jan 6, 2025
@AntoineChambert-Loir AntoineChambert-Loir removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jan 6, 2025

@YaelDillies YaelDillies left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

maintainer delegate

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
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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?

@github-actions

github-actions Bot commented Jan 6, 2025

Copy link
Copy Markdown

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

@github-actions github-actions Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jan 6, 2025
@fpvandoorn

Copy link
Copy Markdown
Member

bors d+

@mathlib-bors

mathlib-bors Bot commented Jan 6, 2025

Copy link
Copy Markdown
Contributor

✌️ 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.

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Jan 6, 2025
@AntoineChambert-Loir

AntoineChambert-Loir commented Jan 6, 2025 via email

Copy link
Copy Markdown
Collaborator Author

@mathlib-bors

mathlib-bors Bot commented Jan 6, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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

@AntoineChambert-Loir

AntoineChambert-Loir commented Jan 7, 2025 via email

Copy link
Copy Markdown
Collaborator Author

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 This pull request has been delegated to the PR author (or occasionally another non-maintainer). maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. t-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants