Skip to content

feat(NumberTheory/NumberField/InfinitePlace): a Galois extension of ℚ is totally real or totally complex - #46384

Open
xroblot wants to merge 3 commits into
leanprover-community:masterfrom
xroblot:galois-totally-real-or-complex
Open

xroblot wants to merge 3 commits into
leanprover-community:masterfrom
xroblot:galois-totally-real-or-complex

Conversation

@xroblot

@xroblot xroblot commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

This PR proves that a Galois extension of ℚ is either totally real or totally complex. This follows from a more general result, also added: in a Galois extension K/k, two infinite places of K above the same place of k are either both real or both complex.

🤖 This result is used in the proof of the Kronecker-Weber theorem in #46376. Claude extracted it from my SKW project.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

PR summary c67295a2e1

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

+ isComplex_iff_of_comap_eq
+ isReal_iff_of_comap_eq
+ isTotallyReal_or_isTotallyComplex

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

  • +3 new declarations
  • −0 removed declarations
+NumberField.InfinitePlace.isComplex_iff_of_comap_eq
+NumberField.InfinitePlace.isReal_iff_of_comap_eq
+NumberField.isTotallyReal_or_isTotallyComplex

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

Current commit c67295a2e1
Reference commit d16077d8a7

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

@github-actions github-actions Bot added the t-number-theory Number theory (also use t-algebra or t-analysis to specialize) label Nov 23, 2026

@Multramate Multramate 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.

LGTM otherwise. You say it's used in the Kronecker--Weber theorem, but I can't find any of the three new lemmas anywhere in that PR?

@xroblot

xroblot commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator Author

LGTM otherwise. You say it's used in the Kronecker--Weber theorem, but I can't find any of the three new lemmas anywhere in that PR?

Oh, you're right! Good point. I think somehow I have some duplicated code since they are definitely used at some point. Lemme fix that.

xroblot added a commit to xroblot/mathlib4 that referenced this pull request Nov 30, 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

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.

3 participants