← Back to Pull requests

[Merged by Bors] - chore(GroupTheory/Perm/Support): split into smaller files #46277

Closed
unknown closed this pull request without merging on Nov 30, 2026 09:08 UTC
View on GitHub
unknown unknown commented on Nov 20, 2026 10:59 UTC
Author

Split Mathlib/GroupTheory/Perm/Support.lean into:
Support/Basic.lean: the set_support_ lemmas, with no finiteness assumptions;
Support/Disjoint.lean: the Equiv.Perm.Disjoint API that does not involve support;
Support/Finset/Basic.lean: the Finset-valued Equiv.Perm.support and its API;
Support/Finset/Card.lean: lemmas about the cardinality of support, including fixed_point_card_lt_of_ne_one;
Support/NoncommProd.lean: lemmas about Finset.noncommProd of permutations.

----

Part of the Equiv.Perm.support refactor discussed on Zulip.

This is a move of content to prepare the ground for future work. Splitting the file Perm/Support.lean separates the material that needs no finiteness assumptions from the current Finset-valued support, so that the later changes stay small and easy to review. Some splits have also been made to reduce unnecessary imports.

Mathlib.GroupTheory.Perm.Support is deleted here and reinstated as a deprecated module in #46428.

This prepares for a Set-valued definition of Equiv.Perm.support, which needs no Fintype or DecidableEq assumptions.

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.

  • depends on: #46119
  • Diff: 183 lines (+137 / -46) across 2 files Reviewer: grunweg Review duration: 14289m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 183 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.312
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #46277"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 35.6% (MEDIUM) · Higher = larger blast radius
    35.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.1% · Safe to merge
    14.1%