Skip to content

[Merged by Bors] - chore(GroupTheory/Perm/Support): move IsSwap and Perm pow-apply lemmas to Algebra/Group/End - #46119

Closed
wrenna-robson wants to merge 2 commits into
leanprover-community:masterfrom
wrenna-robson:perm-powapply-isswap-to-end
Closed

wrenna-robson wants to merge 2 commits into
leanprover-community:masterfrom
wrenna-robson:perm-powapply-isswap-to-end

Conversation

@wrenna-robson

@wrenna-robson wrenna-robson commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Part of the Equiv.Perm.support refactor discussed on Zulip: #46119 (move IsSwap and pow-apply lemmas) → #46277 (split Support.lean) → #46082 (rename to supportFinset) → #46126 (Set-valued support).

Move Equiv.Perm.IsSwap and the lemmas about fixed points of powers of a permutation from Mathlib/GroupTheory/Perm/Support.lean to Mathlib/Algebra/Group/End.lean.

None of these are about the support of a permutation. They only need the group structure on Equiv.Perm, so they belong earlier in the import tree, next to that structure. The aim is for the Support files to contain only material about the support. It is a pure move with no renames or statement changes.

An LLM has been used in the preparation of this PR but as it contains no new content - i.e. it is just a move - I am omitting the LLM-generated tag.

Move `Equiv.Perm.IsSwap` (with `ofSubtype_swap_eq`, `IsSwap.of_subtype_isSwap`,
`ne_and_ne_of_swap_mul_apply_ne_self`) and the fixed-point lemmas for powers of a
permutation (`pow_apply_eq_self_of_apply_eq_self`, `apply_pow_apply_eq_iff`, ...)
from `GroupTheory/Perm/Support` to `Algebra/Group/End`. None of them involve
`support`, and they need nothing beyond what `End` already imports.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

PR summary 086ea53df9

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.

Declarations diff (Lean)

✅ Lean-aware diff — post-build, computed from the Lean environment (commit 086ea53).

  • +0 new declarations
  • −0 removed declarations

No declaration differences.


No changes to strong technical debt.
No changes to weak technical debt.

Current commit 086ea53df9
Reference commit 6201aea845

This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:

git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py 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-group-theory Group theory label Nov 17, 2026
@wrenna-robson
wrenna-robson marked this pull request as ready for review November 17, 2026 17:47
@themathqueen themathqueen added the t-algebra Algebra (groups, rings, fields, etc) label Nov 17, 2026
Comment thread Mathlib/Algebra/Group/End.lean Resolved

@themathqueen themathqueen left a comment

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.

maintainer delegate

@github-actions

Copy link
Copy Markdown

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

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Nov 17, 2026
@wrenna-robson wrenna-robson changed the title chore: move IsSwap and Perm pow-apply lemmas to Algebra/Group/End chore(GroupTheory/Perm/Support): move IsSwap and Perm pow-apply lemmas to Algebra/Group/End Nov 20, 2026
@Vierkantor

Copy link
Copy Markdown
Contributor

Thanks! 🎉

bors r+

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Nov 20, 2026
@mathlib-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Nov 20, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Nov 20, 2026
…emmas to `Algebra/Group/End` (#46119)

Part of the `Equiv.Perm.support` refactor discussed on [Zulip](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/support.20of.20permutations.20on.20Type.20instead.20of.20Fintype/near/640706043): #46119 (move `IsSwap` and pow-apply lemmas) → #46277 (split `Support.lean`) → #46082 (rename to `supportFinset`) → #46126 (`Set`-valued `support`).

Move `Equiv.Perm.IsSwap` and the lemmas about fixed points of powers of a permutation from `Mathlib/GroupTheory/Perm/Support.lean` to `Mathlib/Algebra/Group/End.lean`.

None of these are about the support of a permutation. They only need the group structure on `Equiv.Perm`, so they belong earlier in the import tree, next to that structure. The aim is for the `Support` files to contain only material about the support. It is a pure move with no renames or statement changes.

An LLM has been used in the preparation of this PR but as it contains no new content - i.e. it is just a move - I am omitting the LLM-generated tag.
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Nov 20, 2026
@mathlib-bors

mathlib-bors Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title chore(GroupTheory/Perm/Support): move IsSwap and Perm pow-apply lemmas to Algebra/Group/End [Merged by Bors] - chore(GroupTheory/Perm/Support): move IsSwap and Perm pow-apply lemmas to Algebra/Group/End Nov 20, 2026
@mathlib-bors mathlib-bors Bot closed this Nov 20, 2026
TJHeeringa pushed a commit to TJHeeringa/mathlib4 that referenced this pull request Dec 2, 2026
…emmas to `Algebra/Group/End` (leanprover-community#46119)

Part of the `Equiv.Perm.support` refactor discussed on [Zulip](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/support.20of.20permutations.20on.20Type.20instead.20of.20Fintype/near/640706043): leanprover-community#46119 (move `IsSwap` and pow-apply lemmas) → leanprover-community#46277 (split `Support.lean`) → leanprover-community#46082 (rename to `supportFinset`) → leanprover-community#46126 (`Set`-valued `support`).

Move `Equiv.Perm.IsSwap` and the lemmas about fixed points of powers of a permutation from `Mathlib/GroupTheory/Perm/Support.lean` to `Mathlib/Algebra/Group/End.lean`.

None of these are about the support of a permutation. They only need the group structure on `Equiv.Perm`, so they belong earlier in the import tree, next to that structure. The aim is for the `Support` files to contain only material about the support. It is a pure move with no renames or statement changes.

An LLM has been used in the preparation of this PR but as it contains no new content - i.e. it is just a move - I am omitting the LLM-generated tag.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bors-staging This PR is currently being built by bors on the staging branch. ready-to-merge This PR has been sent to bors. t-algebra Algebra (groups, rings, fields, etc) t-group-theory Group theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants