Skip to content

[Merged by Bors] - feat(NumberTheory/NumberField): generalize isTotallyReal_sup - #43924

Closed
xroblot wants to merge 7 commits into
leanprover-community:masterfrom
xroblot:subfield-comap-sup-totally-real
Closed

xroblot wants to merge 7 commits into
leanprover-community:masterfrom
xroblot:subfield-comap-sup-totally-real

Conversation

@xroblot

@xroblot xroblot commented Sep 18, 2026 •

Copy link
Copy Markdown
Collaborator

Generalize NumberField.isTotallyReal_sup and NumberField.isTotallyReal_iSup so they no longer require the ambient field to be of characteristic zero and algebraic over ℚ: a compositum of totally real subfields of any field is totally real.

🤖 Claude extracted this PR from my SKW project.


@xroblot xroblot added t-algebra Algebra (groups, rings, fields, etc) t-number-theory Number theory (also use t-algebra or t-analysis to specialize) labels Sep 18, 2026
@github-actions

github-actions Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

PR summary 9bad660b67

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

  • +0 new declarations
  • −0 removed declarations

No declaration differences.


No changes to strong technical debt.
No changes to weak technical debt.

Current commit 9bad660b67
Reference commit c47f9ad906

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

@xroblot xroblot added the WIP Work in progress label Sep 18, 2026
@xroblot xroblot changed the title feat(Algebra/Field/Subfield): the map/comap Galois coinsertion, and generalize isTotallyReal_sup feat(NumberTheory/NumberField): generalize isTotallyReal_sup Sep 18, 2026
@xroblot xroblot removed WIP Work in progress t-algebra Algebra (groups, rings, fields, etc) labels Sep 18, 2026
@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 Sep 18, 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 Nov 17, 2026
@mathlib-dependent-issues

Copy link
Copy Markdown

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>

@MichaelStollBayreuth MichaelStollBayreuth left a comment •

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.

LGTM, thanks!

maintainer merge

@github-actions

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by MichaelStollBayreuth.

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Nov 20, 2026

@ocfnash ocfnash left a comment

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.

Thanks!

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Nov 24, 2026
@mathlib-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Nov 24, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Nov 24, 2026
Generalize `NumberField.isTotallyReal_sup` and `NumberField.isTotallyReal_iSup` so they no longer require the ambient field to be of characteristic zero and algebraic over `ℚ`: a compositum of totally real subfields of any field is totally real.

:robot: Claude extracted this PR from my [SKW project](https://github.com/xroblot/SKW).
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Nov 24, 2026
@mathlib-bors

mathlib-bors Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title feat(NumberTheory/NumberField): generalize isTotallyReal_sup [Merged by Bors] - feat(NumberTheory/NumberField): generalize isTotallyReal_sup Nov 24, 2026
@mathlib-bors mathlib-bors Bot closed this Nov 24, 2026
TJHeeringa pushed a commit to TJHeeringa/mathlib4 that referenced this pull request Dec 2, 2026
…ver-community#43924)

Generalize `NumberField.isTotallyReal_sup` and `NumberField.isTotallyReal_iSup` so they no longer require the ambient field to be of characteristic zero and algebraic over `ℚ`: a compositum of totally real subfields of any field is totally real.

:robot: Claude extracted this PR from my [SKW project](https://github.com/xroblot/SKW).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bors-staging This PR is currently being built by bors on the staging branch. ready-to-merge This PR has been sent to bors. t-number-theory Number theory (also use t-algebra or t-analysis to specialize)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants