Skip to content

feat(FieldTheory/LinearDisjoint): degrees of the compositum and intersection with a Galois extension - #46051

Open
xroblot wants to merge 5 commits into
leanprover-community:masterfrom
xroblot:finrank-sup-mul-finrank-inf
Open

xroblot wants to merge 5 commits into
leanprover-community:masterfrom
xroblot:finrank-sup-mul-finrank-inf

Conversation

@xroblot

@xroblot xroblot commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

If A / F is a finite Galois extension and B is an intermediate field, this PR shows that the relative degree of A ⊔ B over A is the degree of B over A ⊓ B. As a consequence, if A / F is Galois, the product of the degrees of A ⊔ B and A ⊓ B over F is the product of the degrees of A and B over F.

In order to allow B to be infinite over F in this proof, the finiteness assumption on B is removed from IntermediateField.LinearDisjoint.of_inf_eq_bot, and the finrank versions of the degree formulas for linearly disjoint fields are proved without algebraicity assumptions. Some supporting API on IntermediateField.extendScalars and on the compositum is added along the way.

The two instances IsScalarTower F (K₁ ⊓ K₂) K₁ and IsScalarTower F (K₁ ⊓ K₂) K₂ are also added. Without them, these towers can only be found through unfolding the Algebra (K₁ ⊓ K₂) K₁ construction and thus they fail to synthesize unless backward.isDefEq.respectTransparency is set to false.

🤖 This result is used in the proof of Stickelberger's theorem in #46022. It was extracted by Claude from the SKW project.

@xroblot xroblot added WIP Work in progress t-algebra Algebra (groups, rings, fields, etc) labels Nov 15, 2026
@github-actions github-actions Bot added the increases-technical-debt Automatically added label for PRs which increase "strong" technical debts label Nov 15, 2026
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

PR summary a379583575

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.FieldTheory.LinearDisjoint 2056 2058 +2 (+0.10%)
Import changes for all files
Files Import difference
11 files Mathlib.FieldTheory.PurelyInseparable.Tower Mathlib.NumberTheory.FLT.Three Mathlib.NumberTheory.NumberField.Cyclotomic.Basic Mathlib.NumberTheory.NumberField.Cyclotomic.Galois Mathlib.NumberTheory.NumberField.Cyclotomic.Ideal Mathlib.NumberTheory.NumberField.Cyclotomic.PID Mathlib.NumberTheory.NumberField.Cyclotomic.Three Mathlib.NumberTheory.NumberField.Discriminant.Different Mathlib.NumberTheory.NumberField.ExistsRamified Mathlib.NumberTheory.NumberField.Ideal.Basic Mathlib.RingTheory.DedekindDomain.LinearDisjoint
1
Mathlib.FieldTheory.LinearDisjoint 2

Declarations diff (regex)

+ adjoin_finrank_eq_finrank_right
+ extendScalarsAlgEquiv
+ finiteDimensional_adjoin_intermediateField
+ finrank_sup_mul_finrank_inf_eq
+ instance (K₁ K₂ : IntermediateField F E) : IsScalarTower F ↥(K₁ ⊓ K₂) K₁
+ instance (K₁ K₂ : IntermediateField F E) : IsScalarTower F ↥(K₁ ⊓ K₂) K₂
+ of_finrank_right_eq_finrank
+ relfinrank_sup_eq_finrank_inf
+ relfinrank_sup_left
+ restrictScalars_adjoin_intermediateField

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

  • +12 new declarations
  • −0 removed declarations
+IntermediateField.LinearDisjoint.adjoin_finrank_eq_finrank_right
+IntermediateField.LinearDisjoint.of_finrank_right_eq_finrank
+IntermediateField.LinearDisjoint.relfinrank_sup_left
+IntermediateField.extendScalarsAlgEquiv
+IntermediateField.extendScalarsAlgEquiv_apply_coe
+IntermediateField.extendScalarsAlgEquiv_symm_apply_coe
+IntermediateField.finiteDimensional_adjoin_intermediateField
+IntermediateField.finrank_sup_mul_finrank_inf_eq
+IntermediateField.instIsScalarTowerSubtypeMemMin
+IntermediateField.instIsScalarTowerSubtypeMemMin_1
+IntermediateField.relfinrank_sup_eq_finrank_inf
+IntermediateField.restrictScalars_adjoin_intermediateField

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

Current commit a379583575
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).

@github-actions github-actions Bot removed the increases-technical-debt Automatically added label for PRs which increase "strong" technical debts label Nov 16, 2026
@xroblot
xroblot marked this pull request as ready for review November 16, 2026 16:11
@xroblot

xroblot commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator Author

!radar

@leanprover-radar

leanprover-radar commented Nov 16, 2026 •

Copy link
Copy Markdown

Benchmark results for 69711b0 against f78acaf are in. No significant results found. @xroblot

  • 🟥 build//instructions: +38.5G (+0.04%)

Small changes (3✅, 7🟥)

  • 10 hidden

@xroblot xroblot removed the WIP Work in progress label Nov 16, 2026
@tb65536 tb65536 added LLM-generated PRs with substantial input from LLMs - review accordingly and removed LLM-generated PRs with substantial input from LLMs - review accordingly labels Nov 20, 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-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants