Skip to content

chore(FieldTheory/SplittingField/Construction): don't expose the construction - #37854

Closed
JovanGerb wants to merge 8 commits into
leanprover-community:masterfrom
JovanGerb:Jovan-SplittingField-private
Closed

JovanGerb wants to merge 8 commits into
leanprover-community:masterfrom
JovanGerb:Jovan-SplittingField-private

Conversation

@JovanGerb

Copy link
Copy Markdown
Contributor

This PR removes @[expose] public section from the implementation of SplittingField, so that none of the constants with "aux" in the name are exported.

Additionally, remove some defeq abuse.


Open in Gitpod

@github-actions

github-actions Bot commented Apr 9, 2026 •

Copy link
Copy Markdown

PR summary fa7db6bce0

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ instAlgebraAux
+ instCommRingAux
+ instance : Algebra K (SplittingField f) := inferInstance
+ instance : CommRing (SplittingField f)
+ instance {R : Type*} [CommSemiring R] [Algebra R K] : Algebra R (SplittingField f)
+ instance {R : Type*} [CommSemiring R] [Algebra R K] : IsScalarTower R K (SplittingField f)
+ inv

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.


Decrease in tech debt: (relative, absolute) = (1.17, 0.00)
Current number Change Type
638 -1 erw
6805 -3 backward.isDefEq.respectTransparency

Current commit c346e2fc1e
Reference commit fa7db6bce0

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-algebra Algebra (groups, rings, fields, etc) label Apr 9, 2026
@JovanGerb
JovanGerb marked this pull request as draft April 10, 2026 11:46
@mathlib-bors

mathlib-bors Bot commented Apr 10, 2026

Copy link
Copy Markdown
Contributor

This pull request is now in draft mode. No active bors state needed cleanup.

While this PR remains draft, bors will ignore commands on this PR. Mark it ready for review before using commands like bors r+ or bors try.

@mathlib-merge-conflicts mathlib-merge-conflicts 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 May 5, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

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

@plp127

plp127 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

@JovanGerb Are you still working on this?

@JovanGerb

Copy link
Copy Markdown
Contributor Author

No I haven't looked at this in a while. I couldn't quite figure out how to do the no_expose while still exposing enough to avoid diamonds. Though back then we didn't get the nsmul/zsmul fields for free from a SMul instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) t-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants