Skip to content

doc(1000-yaml): add Goodstein's theorem and the Kirby–Paris theorem - #41337

Open
gotrevor wants to merge 2 commits into
leanprover-community:masterfrom
gotrevor:goodstein-kirby-paris-1000
Open

gotrevor wants to merge 2 commits into
leanprover-community:masterfrom
gotrevor:goodstein-kirby-paris-1000

Conversation

@gotrevor

@gotrevor gotrevor commented Jul 4, 2026 •

Copy link
Copy Markdown

Claims two listed-but-unclaimed entries in the 1000+ theorems scoreboard by adding external-formalization pointers (no mathlib declaration; same pattern as Löb's theorem Q204884, the flypitch continuum-hypothesis independence Q208416, and Arrow's impossibility theorem Q33481).

Entries

Wikidata Theorem Formalization
Q1149185 Goodstein's theorem — every Goodstein sequence terminates lean-gallery (ordinal-descent proof)
Q1149185X Kirby–Paris theorem — PA does not prove that every Goodstein sequence terminates goodstein-independence

Notes

  • Q1149185X (Kirby–Paris, 1982) is built on the FormalizedFormalLogic/Foundation library (the same library that backs the existing Löb's-theorem entry Q204884), via the Wainer growth-rate route (Goodstein outgrows every PA-provably-total function). The headline peano_not_proves_goodstein is sorry-free and #print axioms-clean — it rests on exactly [propext, Classical.choice, Quot.sound].
  • Q1149185 is Goodstein's theorem proper (the termination statement, provable in ZFC / Lean); mathlib does not currently contain it.
  • Both formalizations are by Trevor Morris, developed with AI assistance: Claude Code (Fable 5, Opus), Codex, and Harmonic's Aristotle.

🤖 Generated with Claude Code

gotrevor and others added 2 commits July 3, 2026 15:53
Both entries were listed but unclaimed. Add external-formalization pointers:

- Q1149185 (Goodstein's theorem): every Goodstein sequence terminates,
  formalized in the lean-gallery showcase.
- Q1149185X (Kirby–Paris theorem): PA does not prove that every Goodstein
  sequence terminates, formalized on top of the FormalizedFormalLogic/
  Foundation library. Kernel-checked to rest only on the three standard
  axioms (propext, Classical.choice, Quot.sound).

Both by Trevor Morris.
Use the default-branch (main) file URLs instead of pinned commit hashes so
the links always reflect the current formalization, and drop the #L line
anchors (which drift on a moving branch) — matching the branch-URL style
already used by the other external entries in this file (Arrow, Kneser,
Grundy, Dilworth, Brouwer, Carleson, …).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@github-actions github-actions Bot added the new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community! label Jul 4, 2026
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown

Welcome new contributor!

Thank you for contributing to Mathlib! If you haven't done so already, please review our contribution guidelines, as well as the style guide and naming conventions. In particular, we kindly remind contributors that we have guidelines regarding the use of AI when making pull requests.

We use a review queue to manage reviews. If your PR does not appear there, it is probably because it is not successfully building (i.e., it doesn't have a green checkmark), has the awaiting-author tag, or another reason described in the Lifecycle of a PR. The review dashboard has a dedicated webpage which shows whether your PR is on the review queue, and (if not), why.

If you haven't already done so, please come to https://leanprover.zulipchat.com/, introduce yourself, and mention your new PR.

Thank you again for joining our community.

@github-actions

github-actions Bot commented Jul 4, 2026 •

Copy link
Copy Markdown

PR summary 7b7137d84e

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

  • +0 new declarations
  • −0 removed declarations

No declaration differences.


No changes to strong technical debt.

No changes to weak technical debt.

Current commit 7b7137d84e
Reference commit 9e735227e7

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 commented Jul 4, 2026 •

Copy link
Copy Markdown

✅ PR Title Formatted Correctly

The title of this PR has been updated to match our commit style conventions.
Thank you!

@gotrevor gotrevor changed the title doc(1000.yaml): add Goodstein's theorem and the Kirby–Paris theorem doc(1000-yaml): add Goodstein's theorem and the Kirby–Paris theorem Jul 4, 2026
@felixpernegger

Copy link
Copy Markdown
Contributor

LLM-generated

@github-actions github-actions Bot added the LLM-generated PRs with substantial input from LLMs - review accordingly label Jul 4, 2026
@gotrevor

Copy link
Copy Markdown
Author

@bryangingechen - you landed the FFL-backed Löb and Tarski entries; would you take a look at this one when you have a moment? At their request, I transferred goodstein-independence to FormalizedFormalLogic, but this submission links my fork.

@wwylele

wwylele commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator

There is a movement to move all non-mathlib items in 1000.yaml from mathlib repo to the community website repo (#44115). It is not finalized yet but this likely will need to wait on that decision

@SnirBroshi

Copy link
Copy Markdown
Collaborator

As such I'll mark this

awaiting-zulip

@github-actions github-actions Bot added the awaiting-zulip There is a Zulip discussion; the author should await and report/implement the decision reached there label Oct 4, 2026

This branch has not been deployed

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

Labels

awaiting-zulip There is a Zulip discussion; the author should await and report/implement the decision reached there LLM-generated PRs with substantial input from LLMs - review accordingly new-contributor This PR was made by a contributor with at most 5 merged PRs. Welcome to the community!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants