Skip to content

feat(SetTheory/Cardinal): strong induction on Nat.card for finite types#41978

Open
rosborn wants to merge 1 commit into
leanprover-community:masterfrom
rosborn:rosborn/finite-strong-induction
Open

feat(SetTheory/Cardinal): strong induction on Nat.card for finite types#41978
rosborn wants to merge 1 commit into
leanprover-community:masterfrom
rosborn:rosborn/finite-strong-induction

Conversation

@rosborn

@rosborn rosborn commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Add the Finite analogue for induction_subsingleton_or_nontrivial.


This version uses a bare motive Type* → Prop since Finite carries no data. This allows it to be used directly with the induction tactic. I've found I've needed this when working with finite groups. It also cleans up the current IsPGroup.isNilpotent proof.

@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown

PR summary 8141c6231d

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

+ induction_subsingleton_or_nontrivial

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 8141c62).

  • +1 new declarations
  • −0 removed declarations
+Finite.induction_subsingleton_or_nontrivial

No changes to strong technical debt.

No changes to weak technical debt.

Current commit 8141c6231d
Reference commit 910a7566b3

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.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-set-theory Set theory label Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-set-theory Set theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant