Skip to content

[Merged by Bors] - feat(Logic/Function): add Lawvere fixed-point theorem - #35239

Closed
JohnnyTeutonic wants to merge 5 commits into
leanprover-community:masterfrom
JohnnyTeutonic:lawvere-fixed-point
Closed

JohnnyTeutonic wants to merge 5 commits into
leanprover-community:masterfrom
JohnnyTeutonic:lawvere-fixed-point

Conversation

@JohnnyTeutonic

@JohnnyTeutonic JohnnyTeutonic commented Feb 13, 2026 •

Copy link
Copy Markdown
Contributor

Adds Lawvere's fixed-point theorem.

This is the classical diagonal argument that generalizes \cantor_surjective\ and \cantor_injective\ (both already in Mathlib). The proof is a two-line term-mode construction.

@github-actions

github-actions Bot commented Feb 13, 2026 •

Copy link
Copy Markdown

PR summary 23a892a87c

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ exists_fixed_point_of_surjective

You can run this locally as follows
## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>

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

The doc-module for scripts/pr_summary/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./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-logic Logic (model theory, etc) label Feb 13, 2026
Comment thread Mathlib/Logic/Function/Basic.lean Resolved
Comment thread Mathlib/Logic/Function/Basic.lean Resolved
@robin-carlier robin-carlier added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Feb 13, 2026
Comment thread Mathlib/Logic/Function/Basic.lean Resolved

@vihdzp vihdzp left a comment

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.

I like this :)

@JohnnyTeutonic

Copy link
Copy Markdown
Contributor Author

Ready for merge queue?

@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 Feb 25, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

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

# Conflicts:
#	Mathlib/Logic/Function/Basic.lean
@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 Mar 23, 2026
@JohnnyTeutonic

Copy link
Copy Markdown
Contributor Author

Conflicts resolved. Ready for merge queue? @robin-carlier

@robin-carlier robin-carlier removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Mar 29, 2026
@robin-carlier

Copy link
Copy Markdown
Contributor

Thanks!

maintainer merge

@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by robin-carlier.


issue_comment, wf_run

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Mar 29, 2026
@b-mehta

b-mehta commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Thanks!

bors merge

mathlib-bors Bot pushed a commit that referenced this pull request Mar 30, 2026
Adds Lawvere's fixed-point theorem.

This is the classical diagonal argument that generalizes \cantor_surjective\ and \cantor_injective\ (both already in Mathlib). The proof is a two-line term-mode construction.
@mathlib-triage mathlib-triage Bot added ready-to-merge This PR has been sent to bors. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Mar 30, 2026
@mathlib-bors

mathlib-bors Bot commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(Logic/Function): add Lawvere fixed-point theorem [Merged by Bors] - feat(Logic/Function): add Lawvere fixed-point theorem Mar 30, 2026
@mathlib-bors mathlib-bors Bot closed this Mar 30, 2026
aditya-ramabadran pushed a commit to aditya-ramabadran/mathlib4 that referenced this pull request Apr 1, 2026
…munity#35239)

Adds Lawvere's fixed-point theorem.

This is the classical diagonal argument that generalizes \cantor_surjective\ and \cantor_injective\ (both already in Mathlib). The proof is a two-line term-mode construction.
mathlib-bors Bot pushed a commit that referenced this pull request May 11, 2026
…in Cantor's theorem (#39147)

#6114 and #35752 removed the defeq abuse in `Function.cantor_surjective`, then #35239 golfed it, reintroducing defeq abuse.
This reverts the golf to avoid defeq abuse, and cleans up a bit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors. t-logic Logic (model theory, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants