Commit 2026-11-04 11:27 61902271

View on Github →

chore(NumberTheory/PellMatiyasevic): fix privateInPublic (#45627) In this (very old) file, many public declarations refer to a private definition d. This PR makes d into a local notation instead of a definition, avoiding the issue without introducing a global definition with a one-letter name. (This required removing an unnecessary proof argument, and hence some adjustment to later call locations.)

<!-- Your PR title will become the first line of the commit message. In this box, the text above the `---` (if not empty) will be appended to the commit message, and can be used to give additional context or details. Please leave a blank newline before the `---`, otherwise GitHub will format the text above it as a title. For details on the "pull request lifecycle" in mathlib, please see: https://leanprover-community.github.io/contribute/index.html In particular, note that most reviewers will only notice your PR if it passes the continuous integration checks. Please ask for help on https://leanprover.zulipchat.com if needed. When merging, all the commits will be squashed into a single commit listing all co-authors. Co-authors in the squash commit are gathered from two sources: First, all authors of commits to this PR branch are included. Thus, one way to add co-authors is to include at least one commit authored by each co-author among the commits in the pull request. If necessary, you may create empty commits to indicate co-authorship, using commands like so: git commit --author="Author Name <[email protected]>" --allow-empty -m "add Author Name as coauthor" Second, co-authors can also be listed in lines at the very bottom of the commit message (that is, directly before the `---`) using the following format: If you are moving or deleting declarations, please include these lines at the bottom of the commit message (before the `---`, and also before any "Co-authored-by" lines) using the following format: Moves: - Vector.* -> List.Vector.* - ... Deletions: - Nat.bit1_add_bit1 - ... Any other comments you want to keep out of the PR commit should go below the `---`, and placed outside this HTML comment, or else they will be invisible to reviewers. If this PR depends on other PRs, please list them below this comment, using the following format: - [ ] depends on: #abc [optional extra text] - [ ] depends on: #xyz [optional extra text] -->

Estimated changes

modified theorem Pell.d_pos
added theorem Pell.dnsq
modified theorem Pell.dz_val
modified theorem Pell.eq_pell
modified theorem Pell.eq_pellZd
modified theorem Pell.eq_pell_lem
modified theorem Pell.isPell_nat
modified theorem Pell.isPell_one
modified def Pell.pell
modified def Pell.pellZd
modified theorem Pell.pell_eq
modified theorem Pell.pell_eqz
modified theorem Pell.xn_add
modified theorem Pell.xn_modEq_x2n_add_lem
modified theorem Pell.xn_succ
modified theorem Pell.xz_succ