Skip to content

chore(FunctionField): rename vars when constant field is not nec. finite#37894

Open
xgenereux wants to merge 4 commits intoleanprover-community:masterfrom
xgenereux:FunctionField-var-name
Open

chore(FunctionField): rename vars when constant field is not nec. finite#37894
xgenereux wants to merge 4 commits intoleanprover-community:masterfrom
xgenereux:FunctionField-var-name

Conversation

@xgenereux
Copy link
Copy Markdown
Collaborator

@xgenereux xgenereux commented Apr 10, 2026

Asked by @MichaelStollBayreuth here.

I've also slightly adjusted the doc to reflect this.

I used the notation which I know from Rosen - Number Theory in Function Field.


Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 10, 2026

PR summary 05953fe9ce

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ instance : IsDomain (ringOfIntegers F K)
+ instance : IsFractionRing (ringOfIntegers F K) K
+ instance : IsIntegralClosure (ringOfIntegers F K) F[X] K
+ instance : IsIntegrallyClosed (ringOfIntegers F K)
+ instance : Valuation.IsNontrivial (inftyValuation F) := ⟨RatFunc.X, by simp⟩
+ instance : Valuation.IsTrivialOn F (inftyValuation F)
+ instance [Algebra.IsSeparable (RatFunc F) K] : IsDedekindDomain (ringOfIntegers F K)
+ instance [Algebra.IsSeparable (RatFunc F) K] : IsNoetherian F[X] (ringOfIntegers F K)
+-+- algebraMap_injective
- instance : IsDomain (ringOfIntegers Fq F)
- instance : IsFractionRing (ringOfIntegers Fq F) F
- instance : IsIntegralClosure (ringOfIntegers Fq F) Fq[X] F
- instance : IsIntegrallyClosed (ringOfIntegers Fq F)
- instance : Valuation.IsNontrivial (inftyValuation Fq) := ⟨RatFunc.X, by simp⟩
- instance : Valuation.IsTrivialOn Fq (inftyValuation Fq)
- instance [Algebra.IsSeparable (RatFunc Fq) F] : IsDedekindDomain (ringOfIntegers Fq F)
- instance [Algebra.IsSeparable (RatFunc Fq) F] : IsNoetherian Fq[X] (ringOfIntegers Fq F)

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.


No changes to technical debt.

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

@github-actions github-actions bot added the t-number-theory Number theory (also use t-algebra or t-analysis to specialize) label Apr 10, 2026
def _root_.FunctionField.FqtInfty := UniformSpace.Completion (RatFunc Fq)
deriving Field, Algebra (RatFunc Fq), Coe (RatFunc Fq), Inhabited
/-- The completion `F((t⁻¹))` of `F(t)` with respect to the valuation at infinity. -/
def _root_.FunctionField.FqtInfty := UniformSpace.Completion (RatFunc F)
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.

Similarly here. InftyCompletionRatFunc?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

But then this shouldn't be in this file right? I feel like the InftyValuation should be in the RatFunc folder no?

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.

I guess so. (And at some point, it would make sense to move the current content of this file out of NumberTheory into FieldTheory. I think this place should be for material that is specifically about function fields over finite fields. But don't feel obliged to do that now, too!)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Would you like me to do this move in this PR or in another?
I am asking because all of these lemmas will have to change name (out of the FunctionField namespace) and will need to be deprecated.

Copy link
Copy Markdown
Contributor

@MichaelStollBayreuth MichaelStollBayreuth left a comment

Choose a reason for hiding this comment

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

Looks good, modulo a few fixes in docstrings and fixing some names.

@MichaelStollBayreuth MichaelStollBayreuth added the awaiting-author A reviewer has asked the author a question or requested changes. label Apr 10, 2026
@MichaelStollBayreuth MichaelStollBayreuth self-assigned this Apr 10, 2026
@xgenereux xgenereux removed the awaiting-author A reviewer has asked the author a question or requested changes. label Apr 10, 2026
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.

2 participants