Skip to content

chore(GroupTheory/Coset): reduce defeq abuse - #15483

Closed
astrainfinita wants to merge 6 commits into
masterfrom
FR_real_quotientgroup_defeqabuse
Closed

astrainfinita wants to merge 6 commits into
masterfrom
FR_real_quotientgroup_defeqabuse

Conversation

@astrainfinita

@astrainfinita astrainfinita commented Aug 4, 2024 •

Copy link
Copy Markdown
Collaborator

@mergify

mergify Bot commented Aug 4, 2024

Copy link
Copy Markdown

⚠️ The sha of the head commit of this PR conflicts with #15482. Mergify cannot evaluate rules on this PR. ⚠️

@github-actions

github-actions Bot commented Aug 4, 2024 •

Copy link
Copy Markdown

PR summary 69418e6d36

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ congr'
+ induction_on₂
+ map'
+ map'_mk
+ mk
+ ofQuotient
+ ofQuotient_mk
+ ofQuotient_toQuotient
+ toQuotient
+ toQuotient_mk
+ toQuotient_ofQuotient

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.

@ghost ghost added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Aug 4, 2024
@mergify

mergify Bot commented Aug 4, 2024

Copy link
Copy Markdown

⚠️ The sha of the head commit of this PR conflicts with #15482. Mergify cannot evaluate rules on this PR. ⚠️

@astrainfinita
astrainfinita force-pushed the FR_real_quotientgroup_defeqabuse branch from 138c3ae to efc402f Compare August 4, 2024 11:51
@astrainfinita
astrainfinita force-pushed the FR_real_quotientgroup_defeqabuse branch from efc402f to dd5fa22 Compare August 4, 2024 11:57
@astrainfinita

Copy link
Copy Markdown
Collaborator Author

!bench

@leanprover-bot

Copy link
Copy Markdown

Here are the benchmark results for commit b292044.
There were significant changes against commit 10a631f:

  Benchmark                         Metric         Change
  =======================================================
+ ~Mathlib.GroupTheory.CosetCover   instructions   -18.1%

@ghost ghost removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Aug 5, 2024
@ghost

ghost commented Aug 5, 2024

Copy link
Copy Markdown

This PR/issue depends on:

Comment on lines +354 to +357
/-- Reinterpret `x : Quotient (leftRel s)` as an element of `α ⧸ s`. -/
@[to_additive "Reinterpret `x : Quotient (leftRel s)` as an element of `α ⧸ s`."]
def ofQuotient (x : Quotient (leftRel s)) : α ⧸ s :=
x

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This all seems a bit weird to me; do we even want these to be separate types in the first place? Would making HasQuotient and its projections reducible work instead?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Another option is to make HasQuotient output a Setoid, then take a quotient w.r.t. this setoid. I don't know what will be slow/fast, though.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

#15585 #15586 I think if making QuotientAddGroup.mk an abbrev, neither method will resolve the timeout.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@mattrobball What's your opinion here?

@mattrobball

Copy link
Copy Markdown
Contributor

If you want to implement #15474 (which I certainly do), you just need to remove some simp theorems that really should not be simp theorems to begin with #15591. Then other changes can be evaluated on their own.

@urkud

urkud commented Aug 8, 2024

Copy link
Copy Markdown
Member

I sent #15591 to bors.

@mattrobball

Copy link
Copy Markdown
Contributor

The fixes to to_additive should build with master shortly then

@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Aug 10, 2024
@grunweg

grunweg commented Apr 15, 2025

Copy link
Copy Markdown
Contributor

Coming here from PR triage: do the changes still apply in principle? If so, can you merge master, please?

@joneugster

Copy link
Copy Markdown
Member

Mathlib has moved to PRs from forks. This PR is still from a branch of the main repository and will soon be closed! Please migrate the content to a fork and reopen a PR from there if you wish to do so. See Zulip topic for more instructions. Thank you for contributing to mathlib!

@joneugster joneugster added the will-close-soon Unless something changes, we will close this PR soon label Sep 19, 2026
@joneugster joneugster closed this Oct 24, 2026
@YaelDillies
YaelDillies deleted the FR_real_quotientgroup_defeqabuse branch October 24, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) t-algebra Algebra (groups, rings, fields, etc) will-close-soon Unless something changes, we will close this PR soon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants