Skip to content

feat(Algebra/Adjoin): CoeT instances for Algebra.adjoin on singletons#36439

Open
xgenereux wants to merge 2 commits intoleanprover-community:masterfrom
xgenereux:Adjoin/Polynomial/coeinsts
Open

feat(Algebra/Adjoin): CoeT instances for Algebra.adjoin on singletons#36439
xgenereux wants to merge 2 commits intoleanprover-community:masterfrom
xgenereux:Adjoin/Polynomial/coeinsts

Conversation

@xgenereux
Copy link
Copy Markdown
Collaborator

@xgenereux xgenereux commented Mar 10, 2026

Is it a common occurrence that I need to consider an element x or some polynomial evaluated in x, p.eval x as an element of Algebra.adjoin R {x}.

This makes it so that we can write

  • (x : adjoin R {x}) instead of ⟨x, self_mem_adjoin_singleton A x⟩
  • (p.eval x : adjoin R {x}) instead of ⟨p.aeval x, aeval_mem_adjoin_singleton A x⟩

This is particularly useful when we need to write the type anyways, so that we need not to write (⟨p.aeval x, aeval_mem_adjoin_singleton A x⟩ : adjoin R {x}) anymore.

Co-authored-by: María Inés de Frutos Fernández <[email protected]>


Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 10, 2026

PR summary 34f85c5f24

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ instance {A B : Type*} [CommSemiring A] [Semiring B] [Algebra A B] (x : B) (p : Polynomial A) :
+ instance {A B : Type*} [CommSemiring A] [Semiring B] [Algebra A B] (x : B) :

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

@sgouezel sgouezel removed their assignment Mar 16, 2026
@mathlib-merge-conflicts
Copy link
Copy Markdown

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

@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 Mar 27, 2026
@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 Mar 27, 2026
@Multramate Multramate added t-algebra Algebra (groups, rings, fields, etc) t-ring-theory Ring theory labels Apr 2, 2026
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) t-ring-theory Ring theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants