Skip to content

[Merged by Bors] - feat(InfinitePlace/Completion): embeddings of w.Completion factor through embeddings of v.Completion when w lies over v#29942

Closed
smmercuri wants to merge 88 commits intoleanprover-community:masterfrom
smmercuri:extensionEmbeddingAlgebraMap
Closed

[Merged by Bors] - feat(InfinitePlace/Completion): embeddings of w.Completion factor through embeddings of v.Completion when w lies over v#29942
smmercuri wants to merge 88 commits intoleanprover-community:masterfrom
smmercuri:extensionEmbeddingAlgebraMap

Conversation

@smmercuri
Copy link
Copy Markdown
Collaborator

@smmercuri smmercuri commented Sep 24, 2025

The class ComplexEmbedding.LiesOver ψ φ formalises the property that the complex field embedding φ : L →+* ℂ restricted to K gives ψ : K →+* ℂ, whenever Algebra K L.

If w : InfinitePlace L and v : InfinitePlace K are such that we have Algebra v.Completion w.Completion, then extensionEmbedding w : L →+* ℂ restricted to K gives extensionEmbedding v : K →+* ℂ.

To avoid diamonds arising from propeq instances when K = L we do not construct the global instance Algebra v.Completion w.Completion from Algebra K L, but assume it instead. It is then required to assume the following compatibility assumptions for the main result of this PR to be true:

  • IsScalarTower (WithAbs v.1) v.Completion w.Completion
  • ContinuousSMul v.Completion w.Completion

Open in Gitpod

@smmercuri smmercuri changed the title Extension embedding algebra map feat(InfinitePlace/Completion): embeddings of w.Completion factor through embeddings of v.Completion when w extends v. Sep 24, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 24, 2025

PR summary 7c0aa26a8b

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.NumberTheory.NumberField.InfinitePlace.Completion 2695 2696 +1 (+0.04%)
Import changes for all files
Files Import difference
3 files Mathlib.NumberTheory.NumberField.AdeleRing Mathlib.NumberTheory.NumberField.InfiniteAdeleRing Mathlib.NumberTheory.NumberField.InfinitePlace.Completion
1

Declarations diff

+ LiesOver
+ algebraMap_coe
+ embedding_liesOver_of_isReal
+ extensionEmbeddingOfIsReal_apply
+ extensionEmbedding_liesOver_of_isReal
+ isometry_algebraMap
+ liesOver_conjugate_extensionEmbedding
+ liesOver_extensionEmbedding

You can run this locally as follows
## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh contains some details about this script.


Increase in tech debt: (relative, absolute) = (2.00, 0.00)
Current number Change Type
10051 2 backward.isDefEq

Current commit fb6b0f5bbb
Reference commit 7c0aa26a8b

You can run this locally as

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

@smmercuri smmercuri changed the title feat(InfinitePlace/Completion): embeddings of w.Completion factor through embeddings of v.Completion when w extends v. feat(InfinitePlace/Completion): embeddings of w.Completion factor through embeddings of v.Completion when w extends v Sep 24, 2025
@mathlib4-dependent-issues-bot mathlib4-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 24, 2025
@smmercuri smmercuri added the FLT part of the ongoing formalization of Fermat's Last Theorem label Sep 24, 2025
@github-actions github-actions bot removed the large-import Automatically added label for PRs with a significant increase in transitive imports label Mar 2, 2026
@smmercuri smmercuri changed the title feat(InfinitePlace/Completion): embeddings of w.Completion factor through embeddings of v.Completion when w extends v feat(InfinitePlace/Completion): embeddings of w.Completion factor through embeddings of v.Completion when w lies over v Mar 2, 2026
@smmercuri smmercuri requested a review from riccardobrasca March 4, 2026 09:03
@riccardobrasca riccardobrasca self-assigned this Mar 4, 2026
Copy link
Copy Markdown
Member

@riccardobrasca riccardobrasca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Mar 4, 2026

✌️ smmercuri can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@mathlib-triage mathlib-triage bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Mar 4, 2026
@smmercuri
Copy link
Copy Markdown
Collaborator Author

bors r+

mathlib-bors bot pushed a commit that referenced this pull request Mar 4, 2026
…hrough embeddings of `v.Completion` when `w` lies over `v` (#29942)

The class `ComplexEmbedding.LiesOver ψ φ` formalises the property that the complex field embedding `φ : L →+* ℂ` restricted to `K` gives `ψ : K →+* ℂ`, whenever `Algebra K L`. 

If `w : InfinitePlace L` and `v : InfinitePlace K` are such that we have `Algebra v.Completion w.Completion`, then `extensionEmbedding w : L →+* ℂ` restricted to `K` gives `extensionEmbedding v : K  →+* ℂ`.

To avoid diamonds arising from propeq instances when `K = L` we do not construct the global instance `Algebra v.Completion w.Completion` from `Algebra K L`, but assume it instead. It is then required to assume the following compatibility assumptions for the main result of this PR to be true:
- `IsScalarTower (WithAbs v.1) v.Completion w.Completion`
- `ContinuousSMul v.Completion w.Completion`
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Mar 4, 2026

Build failed:

@kbuzzard
Copy link
Copy Markdown
Member

kbuzzard commented Mar 4, 2026

This is failing in bors; the error is

Error: error: Mathlib/NumberTheory/NumberField/InfinitePlace/Completion.lean:237:10: failed to synthesize instance of type class
  Algebra (WithAbs ↑v) w.Completion

Can you merge master and try again?

@kbuzzard
Copy link
Copy Markdown
Member

kbuzzard commented Mar 4, 2026

bors r-

@mathlib-triage mathlib-triage bot removed the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Mar 4, 2026
@kbuzzard
Copy link
Copy Markdown
Member

kbuzzard commented Mar 4, 2026

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Mar 4, 2026

✌️ smmercuri can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@mathlib-triage mathlib-triage bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Mar 4, 2026
@smmercuri
Copy link
Copy Markdown
Collaborator Author

bors r+

mathlib-bors bot pushed a commit that referenced this pull request Mar 4, 2026
…hrough embeddings of `v.Completion` when `w` lies over `v` (#29942)

The class `ComplexEmbedding.LiesOver ψ φ` formalises the property that the complex field embedding `φ : L →+* ℂ` restricted to `K` gives `ψ : K →+* ℂ`, whenever `Algebra K L`. 

If `w : InfinitePlace L` and `v : InfinitePlace K` are such that we have `Algebra v.Completion w.Completion`, then `extensionEmbedding w : L →+* ℂ` restricted to `K` gives `extensionEmbedding v : K  →+* ℂ`.

To avoid diamonds arising from propeq instances when `K = L` we do not construct the global instance `Algebra v.Completion w.Completion` from `Algebra K L`, but assume it instead. It is then required to assume the following compatibility assumptions for the main result of this PR to be true:
- `IsScalarTower (WithAbs v.1) v.Completion w.Completion`
- `ContinuousSMul v.Completion w.Completion`
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Mar 4, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(InfinitePlace/Completion): embeddings of w.Completion factor through embeddings of v.Completion when w lies over v [Merged by Bors] - feat(InfinitePlace/Completion): embeddings of w.Completion factor through embeddings of v.Completion when w lies over v Mar 4, 2026
@mathlib-bors mathlib-bors bot closed this Mar 4, 2026
xroblot pushed a commit to xroblot/mathlib4 that referenced this pull request Mar 10, 2026
…hrough embeddings of `v.Completion` when `w` lies over `v` (leanprover-community#29942)

The class `ComplexEmbedding.LiesOver ψ φ` formalises the property that the complex field embedding `φ : L →+* ℂ` restricted to `K` gives `ψ : K →+* ℂ`, whenever `Algebra K L`. 

If `w : InfinitePlace L` and `v : InfinitePlace K` are such that we have `Algebra v.Completion w.Completion`, then `extensionEmbedding w : L →+* ℂ` restricted to `K` gives `extensionEmbedding v : K  →+* ℂ`.

To avoid diamonds arising from propeq instances when `K = L` we do not construct the global instance `Algebra v.Completion w.Completion` from `Algebra K L`, but assume it instead. It is then required to assume the following compatibility assumptions for the main result of this PR to be true:
- `IsScalarTower (WithAbs v.1) v.Completion w.Completion`
- `ContinuousSMul v.Completion w.Completion`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). FLT part of the ongoing formalization of Fermat's Last Theorem 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.

7 participants