Skip to content

[Merged by Bors] - feat(Topology/Group/Profinite): limits in the category of profinite groups#16976

Closed
Thmoas-Guan wants to merge 13 commits intomasterfrom
limit-in-profinite-group
Closed

[Merged by Bors] - feat(Topology/Group/Profinite): limits in the category of profinite groups#16976
Thmoas-Guan wants to merge 13 commits intomasterfrom
limit-in-profinite-group

Conversation

@Thmoas-Guan
Copy link
Copy Markdown
Collaborator

Define the limit in profinite groups as a profinite group.
Co-authored-by: Jujian Zhang jujian.zhang1998@outlook.com Nailin Guan 3571819596@qq.com


Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 20, 2024

PR summary d0b2840479

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.Topology.Algebra.Category.ProfiniteGrp -1363
Mathlib.Topology.Algebra.Category.ProfiniteGrp.Basic 1363

Declarations diff

+ instance : Group (Profinite.limitCone (F ⋙ profiniteGrpToProfinite.{max v u})).pt
+ instance : Limits.HasLimit F
+ instance : Limits.PreservesLimits profiniteGrpToProfinite.{u}
+ instance : TopologicalGroup (Profinite.limitCone (F ⋙ profiniteGrpToProfinite.{max v u})).pt
+ instance : profiniteGrpToProfinite.Faithful := {
+ limit
+ limitCone
+ limitConeIsLimit
+ limitConePtAux
+ profiniteGrpToProfinite

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.

@Thmoas-Guan Thmoas-Guan added t-topology Topological spaces, uniform spaces, metric spaces, filters t-algebra Algebra (groups, rings, fields, etc) labels Sep 23, 2024
@dagurtomas dagurtomas self-assigned this Sep 23, 2024
Copy link
Copy Markdown
Contributor

@dagurtomas dagurtomas left a comment

Choose a reason for hiding this comment

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

Could you also add a PreservesLimits profiniteGrpToProfinite instance? It shouldn't be too hard using what you already have

@dagurtomas dagurtomas added the awaiting-author A reviewer has asked the author a question or requested changes. label Sep 23, 2024
@dagurtomas
Copy link
Copy Markdown
Contributor

To prove that the functor from profinite groups to profinite sets preserves limits, I would suggest using https://leanprover-community.github.io/mathlib4_docs/Mathlib/CategoryTheory/Limits/Preserves/Basic.html#CategoryTheory.Limits.preservesLimitOfPreservesLimitCone applied to Profinite.limitCone.

@Thmoas-Guan
Copy link
Copy Markdown
Collaborator Author

Thmoas-Guan commented Sep 23, 2024

To prove that the functor from profinite groups to profinite sets preserves limits, I would suggest using https://leanprover-community.github.io/mathlib4_docs/Mathlib/CategoryTheory/Limits/Preserves/Basic.html#CategoryTheory.Limits.preservesLimitOfPreservesLimitCone applied to Profinite.limitCone.

Thank a lot, I just got some ugly things because of lacking this.

@Thmoas-Guan Thmoas-Guan removed the awaiting-author A reviewer has asked the author a question or requested changes. label Sep 23, 2024
@dagurtomas dagurtomas added the awaiting-author A reviewer has asked the author a question or requested changes. label Sep 23, 2024
@dagurtomas
Copy link
Copy Markdown
Contributor

Did you forget to remove awaiting-author? It LGTM now, just one minor comment above

@Thmoas-Guan Thmoas-Guan removed the awaiting-author A reviewer has asked the author a question or requested changes. label Sep 24, 2024
@dagurtomas
Copy link
Copy Markdown
Contributor

Thanks!

maintainer merge

@github-actions
Copy link
Copy Markdown

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

@github-actions github-actions bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Sep 26, 2024
toFun := ((Profinite.limitConeIsLimit (F ⋙ profiniteGrpToProfinite)).lift
(profiniteGrpToProfinite.mapCone cone)).toFun
map_one' := by
apply SetCoe.ext
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.

I'm a bit sad to see that this is necessary (rather than just calling ext). It indicates to me that perhaps we haven't set up @[ext] lemmas sufficiently for TopCat.

Doesn't need to block this PR, I'll pass that decision back to @dagurtomas. :-)

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.

Let me investigate a bit

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.

I don't have time to dig more so I'd recommend that we just merge this. I added a TODO.

Let me just note that even adding the lemma

@[ext]
lemma limitCone_ext {J : Type v} [SmallCategory J] {F : J ⥤ ProfiniteGrp.{max v u}}
    {x y : (limitCone F).pt} (h : ∀ i, x.1 i = y.1 i) : x = y := Subtype.ext (funext fun i ↦ h i)

wasn't enough to get the ext tactic to work.

@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Sep 29, 2024

bors merge

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Sep 29, 2024
mathlib-bors bot pushed a commit that referenced this pull request Sep 29, 2024
…roups (#16976)

Define the limit in profinite groups as a profinite group.
Co-authored-by: Jujian Zhang <jujian.zhang1998@outlook.com> Nailin Guan <3571819596@qq.com>



Co-authored-by: dagurtomas <dagurtomas@gmail.com>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Sep 29, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(Topology/Group/Profinite): limits in the category of profinite groups [Merged by Bors] - feat(Topology/Group/Profinite): limits in the category of profinite groups Sep 29, 2024
@mathlib-bors mathlib-bors bot closed this Sep 29, 2024
@mathlib-bors mathlib-bors bot deleted the limit-in-profinite-group branch September 29, 2024 08:21
fbarroero pushed a commit that referenced this pull request Oct 2, 2024
…roups (#16976)

Define the limit in profinite groups as a profinite group.
Co-authored-by: Jujian Zhang <jujian.zhang1998@outlook.com> Nailin Guan <3571819596@qq.com>



Co-authored-by: dagurtomas <dagurtomas@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. ready-to-merge This PR has been sent to bors. t-algebra Algebra (groups, rings, fields, etc) t-topology Topological spaces, uniform spaces, metric spaces, filters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants