Skip to content

feat: Fodor's lemma#37685

Open
vihdzp wants to merge 130 commits into
leanprover-community:masterfrom
vihdzp:stat
Open

feat: Fodor's lemma#37685
vihdzp wants to merge 130 commits into
leanprover-community:masterfrom
vihdzp:stat

Conversation

@vihdzp

@vihdzp vihdzp commented Apr 6, 2026

Copy link
Copy Markdown
Collaborator

We define stationary sets and prove Fodor's lemma, following the proof at Wikipedia.


I'm surprised that this has a Wikipedia article but isn't listed in 1000.yaml. Is it just because the name has "lemma" instead of "theorem"?

Open in Gitpod

@vihdzp vihdzp added t-order Order theory t-set-theory Set theory labels Apr 6, 2026
@github-actions github-actions Bot added the large-import Automatically added label for PRs with a significant increase in transitive imports label Apr 6, 2026
@github-actions

github-actions Bot commented Apr 6, 2026

Copy link
Copy Markdown

PR summary 8319de3ea3

Import changes exceeding 2%

% File
+7.33% Mathlib.SetTheory.Cardinal.Cofinality.Club

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.SetTheory.Cardinal.Cofinality.Club 696 747 +51 (+7.33%)
Import changes for all files
Files Import difference
Mathlib.SetTheory.Cardinal.Cofinality.Club 51

Declarations diff (regex)

+ ciSup_mem
+ diag
+ exists_isStationary_preimage_singleton

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 8319de3).

  • +3 new declarations
  • −0 removed declarations
+IsClub.ciSup_mem
+IsClub.diag
+exists_isStationary_preimage_singleton

No changes to strong technical debt.

No changes to weak technical debt.

Current commit 8319de3ea3
Reference commit 914b89d98d

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

@mathlib-dependent-issues mathlib-dependent-issues Bot added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Apr 6, 2026
Comment thread Mathlib/SetTheory/Cardinal/Club.lean Outdated
@mathlib-merge-conflicts mathlib-merge-conflicts Bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Apr 21, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Apr 22, 2026
@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 24, 2026
@mathlib-merge-conflicts mathlib-merge-conflicts Bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label May 26, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

@github-actions github-actions Bot removed merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) file-removed A Lean module was (re)moved without a `deprecated_module` annotation labels May 27, 2026
@mathlib-dependent-issues mathlib-dependent-issues Bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Jun 21, 2026
@mathlib-dependent-issues

Copy link
Copy Markdown

This PR/issue depends on:

@vihdzp
vihdzp requested a review from YaelDillies June 22, 2026 00:47
Comment thread Mathlib/SetTheory/Cardinal/Cofinality/Club.lean
Comment thread Mathlib/SetTheory/Cardinal/Cofinality/Club.lean Outdated
Comment on lines +151 to +152
protected theorem diag [IsRegularCardinalOrder α] {f : α → Set α} (hα : cof α ≠ ℵ₀)
(hf : ∀ a, IsClub (f a)) : IsClub {a | ∀ b < a, a ∈ f b} where

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.

What's diagonal about this? Mayve worth giving the lemma a more syntactic name?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It's called diagonal intersection in Kunen's book (page 220).
Image

@YaelDillies YaelDillies added the awaiting-author A reviewer has asked the author a question or requested changes. label Jun 22, 2026
@YaelDillies YaelDillies self-assigned this Jun 22, 2026
vihdzp and others added 2 commits June 22, 2026 08:59
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
@mathlib-merge-conflicts mathlib-merge-conflicts Bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jul 3, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-author A reviewer has asked the author a question or requested changes. large-import Automatically added label for PRs with a significant increase in transitive imports merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) t-order Order theory t-set-theory Set theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants