Skip to content

[Merged by Bors] - feat(InfinitePlace/Ramification): LiesOver class for absolute values and derived results on infinite places#27978

Closed
smmercuri wants to merge 14 commits intoleanprover-community:masterfrom
smmercuri:smmercuri/InfinitePlaceExtension
Closed

[Merged by Bors] - feat(InfinitePlace/Ramification): LiesOver class for absolute values and derived results on infinite places#27978
smmercuri wants to merge 14 commits intoleanprover-community:masterfrom
smmercuri:smmercuri/InfinitePlaceExtension

Conversation

@smmercuri
Copy link
Copy Markdown
Collaborator

@smmercuri smmercuri commented Aug 5, 2025

If w is an absolute value on L/K and v is an absolute value of K then w.LiesOver v is the class defining the property that v is the restriction of w to K.

This PR continues the work from #24881.

Original PR: #24881


@github-actions github-actions bot added the t-number-theory Number theory (also use t-algebra or t-analysis to specialize) label Aug 5, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Aug 5, 2025

PR summary 3a0b00eed1

Import changes exceeding 2%

% File
+2.04% Mathlib.Analysis.Normed.Ring.WithAbs

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Analysis.Normed.Ring.WithAbs 1227 1252 +25 (+2.04%)
Mathlib.NumberTheory.NumberField.InfinitePlace.Ramification 2626 2627 +1 (+0.04%)
Import changes for all files
Files Import difference
12 files Mathlib.NumberTheory.Cyclotomic.PID Mathlib.NumberTheory.FLT.Three Mathlib.NumberTheory.NumberField.CMField Mathlib.NumberTheory.NumberField.ClassNumber Mathlib.NumberTheory.NumberField.Cyclotomic.PID Mathlib.NumberTheory.NumberField.DedekindZeta Mathlib.NumberTheory.NumberField.Discriminant.Basic Mathlib.NumberTheory.NumberField.Embeddings Mathlib.NumberTheory.NumberField.Ideal.Asymptotics Mathlib.NumberTheory.NumberField.Ideal Mathlib.NumberTheory.NumberField.InfinitePlace.Ramification Mathlib.NumberTheory.NumberField.InfinitePlace.TotallyRealComplex
1
Mathlib.Analysis.Normed.Ring.WithAbs 25

Declarations diff

+ LiesOver
+ LiesOver.comp_eq
+ comap_eq
+ embedding_comp_eq_or_conjugate_embedding_comp_eq
+ isComplex_of_isComplex_under
+ isReal_of_isReal_over
+ mk_embedding_comp

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

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

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


No changes to technical debt.

You can run this locally as

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

@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 Aug 5, 2025
@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Sep 19, 2025
@mathlib4-dependent-issues-bot
Copy link
Copy Markdown
Collaborator

This PR/issue depends on:

@mathlib4-merge-conflict-bot mathlib4-merge-conflict-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Sep 19, 2025
@mathlib4-merge-conflict-bot
Copy link
Copy Markdown
Collaborator

This pull request has conflicts, please merge master and resolve them.

@github-actions github-actions bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is 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
@MichaelStollBayreuth MichaelStollBayreuth added the awaiting-author A reviewer has asked the author a question or requested changes. label Oct 11, 2025
@smmercuri smmercuri changed the title feat: InfinitePlace.Extension API for extensions of infinite places. feat(InfinitePlace/Ramification): LiesOver class for infinite places Oct 15, 2025
@smmercuri
Copy link
Copy Markdown
Collaborator Author

I've replaced the subtype of places above v : InfinitePlace K (previously InfinitePlace.Extension) with a class LiesOver defining the same property, which makes things a lot easier than working with subtypes!

@MichaelStollBayreuth
Copy link
Copy Markdown
Contributor

I've replaced the subtype of places above v : InfinitePlace K (previously InfinitePlace.Extension) with a class LiesOver defining the same property, which makes things a lot easier than working with subtypes!

I think it would make sense to have this more generally for absolute values.

@github-actions github-actions bot added the large-import Automatically added label for PRs with a significant increase in transitive imports label Oct 17, 2025
@smmercuri
Copy link
Copy Markdown
Collaborator Author

I've replaced the subtype of places above v : InfinitePlace K (previously InfinitePlace.Extension) with a class LiesOver defining the same property, which makes things a lot easier than working with subtypes!

I think it would make sense to have this more generally for absolute values.

Yes good idea! However it was not easy to find a good place for the definition, because of the current location of AbsoluteValue.comp. I placed it in Ring/WithAbs.lean since ultimately LiesOver leads to connections between respective topologies. But probably that has led to a large import

@smmercuri smmercuri changed the title feat(InfinitePlace/Ramification): LiesOver class for infinite places feat(InfinitePlace/Ramification): LiesOver class for absolute values and derived results on infinite places Oct 17, 2025
@smmercuri smmercuri removed the awaiting-author A reviewer has asked the author a question or requested changes. label Oct 20, 2025
@MichaelStollBayreuth MichaelStollBayreuth added the awaiting-author A reviewer has asked the author a question or requested changes. label Oct 28, 2025
smmercuri and others added 2 commits October 28, 2025 11:33
Co-authored-by: Michael Stoll <99838730+MichaelStollBayreuth@users.noreply.github.com>
Co-authored-by: Michael Stoll <99838730+MichaelStollBayreuth@users.noreply.github.com>
@smmercuri smmercuri removed the awaiting-author A reviewer has asked the author a question or requested changes. label Oct 28, 2025
@MichaelStollBayreuth
Copy link
Copy Markdown
Contributor

CI fails with some cache problem. I'd suggest to merge master (I also noticed that it seemed to build all of Mathlib) and try again.

@MichaelStollBayreuth
Copy link
Copy Markdown
Contributor

LGTM now.
maintainer merge

@github-actions
Copy link
Copy Markdown

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

@ghost ghost added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Oct 28, 2025
@riccardobrasca
Copy link
Copy Markdown
Member

Thanks!

bors merge

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Oct 29, 2025
mathlib-bors bot pushed a commit that referenced this pull request Oct 29, 2025
…s and derived results on infinite places (#27978)

If `w` is an absolute value on `L/K` and `v` is an absolute value of `K` then `w.LiesOver v` is the class defining the property that `v` is the restriction of `w` to `K`.

This PR continues the work from #24881.

Original PR: #24881
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Oct 29, 2025

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(InfinitePlace/Ramification): LiesOver class for absolute values and derived results on infinite places [Merged by Bors] - feat(InfinitePlace/Ramification): LiesOver class for absolute values and derived results on infinite places Oct 29, 2025
@mathlib-bors mathlib-bors bot closed this Oct 29, 2025
BeibeiX0 pushed a commit to BeibeiX0/mathlib4 that referenced this pull request Nov 7, 2025
…s and derived results on infinite places (leanprover-community#27978)

If `w` is an absolute value on `L/K` and `v` is an absolute value of `K` then `w.LiesOver v` is the class defining the property that `v` is the restriction of `w` to `K`.

This PR continues the work from leanprover-community#24881.

Original PR: leanprover-community#24881
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FLT part of the ongoing formalization of Fermat's Last Theorem large-import Automatically added label for PRs with a significant increase in transitive imports 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.

5 participants