Skip to content

[Merged by Bors] - chore: refactor perfect rings / fields - #6182

Closed
ocfnash wants to merge 21 commits into
masterfrom
ocfnash/perfect_fields
Closed

ocfnash wants to merge 21 commits into
masterfrom
ocfnash/perfect_fields

Conversation

@ocfnash

@ocfnash ocfnash commented Jul 27, 2023 •

Copy link
Copy Markdown
Contributor

The main changes are:

  • we replace the data-bearing PerfectRing typeclass with a Prop-valued (non-constructive) version,
  • we introduce a new typeclass PerfectField,
  • we add a proof that a perfect field of positive characteristic has surjective Frobenius map,
  • we add some basic facts such as perfection of finite rings / fields and products of perfect rings.

Open in Gitpod

@ocfnash ocfnash added WIP Work in progress t-algebra Algebra (groups, rings, fields, etc) labels Jul 27, 2023
Comment thread Mathlib/FieldTheory/Perfect.lean Resolved
Comment thread Mathlib/FieldTheory/Perfect.lean Resolved
Comment thread Mathlib/FieldTheory/Perfect.lean Resolved
Comment thread Mathlib/FieldTheory/Perfect.lean Resolved
@acmepjz

acmepjz commented Jul 30, 2023

Copy link
Copy Markdown
Collaborator

Would you like to add the equivalent definition that a field is perfect if and only if every (finite) algebraic extension is surjective?

@ocfnash

ocfnash commented Jul 30, 2023

Copy link
Copy Markdown
Contributor Author

Would you like to add the equivalent definition that a field is perfect if and only if every (finite) algebraic extension is surjective?

I don't plan to do this, but I encourage you to do it in a follow-up PR if you're interested!

@ocfnash ocfnash added awaiting-review awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. and removed WIP Work in progress labels Jul 30, 2023
@eric-wieser

Copy link
Copy Markdown
Member
  • we replace the data-bearing PerfectRing typeclass with a Prop-valued (non-constructive) version,

What do we gain by removing the data here? Is the problem that the class would not be subsingleton?

@github-actions github-actions Bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jul 30, 2023
@ocfnash

ocfnash commented Jul 31, 2023

Copy link
Copy Markdown
Contributor Author

Is the problem that the class would not be subsingleton?

In fact the existing class is subsingleton:

-- Using old definition of `PerfectRing` (which I propose to remove):
example : Subsingleton (PerfectRing R p) := by
  constructor
  rintro ⟨f, -, hfr⟩ ⟨g, hgl, -⟩
  congr
  exact LeftInverse.eq_rightInverse hfr hgl

so this is not the problem.

What do we gain by removing the data here?

I claim the advantages are:

  1. We get a type-theoretic expression of the above uniqueness.
  2. Our formalisation becomes classical as opposed to constructive. [Albeit you might argue this begs your question.]
  3. The sociological advantage that proposed new definition is what most mathematicians would expect.
  4. We cannot author lemmas which depend on a particular instance of PerfectRing (e.g., stemming from finiteness) that might fail in a rewrite when PerfectRing is available some other way. [I admit, slightly speculative.]

@ocfnash ocfnash removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Aug 10, 2023
Comment thread Mathlib/FieldTheory/PerfectClosure.lean Resolved

@jcommelin jcommelin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

bors d+

@bors

bors Bot commented Aug 14, 2023

Copy link
Copy Markdown

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

@ghost ghost added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels Aug 14, 2023
@ocfnash

ocfnash commented Aug 14, 2023

Copy link
Copy Markdown
Contributor Author

bors merge

@github-actions github-actions Bot added the ready-to-merge This PR has been sent to bors. label Aug 14, 2023
bors Bot pushed a commit that referenced this pull request Aug 14, 2023
The main changes are:

- we replace the data-bearing `PerfectRing` typeclass with a `Prop`-valued (non-constructive) version,
- we introduce a new typeclass `PerfectField`,
- we add a proof that a perfect field of positive characteristic has surjective Frobenius map,
- we add some basic facts such as perfection of finite rings / fields and products of perfect rings.
@bors

bors Bot commented Aug 14, 2023

Copy link
Copy Markdown

This PR was included in a batch that was canceled, it will be automatically retried

bors Bot pushed a commit that referenced this pull request Aug 14, 2023
The main changes are:

- we replace the data-bearing `PerfectRing` typeclass with a `Prop`-valued (non-constructive) version,
- we introduce a new typeclass `PerfectField`,
- we add a proof that a perfect field of positive characteristic has surjective Frobenius map,
- we add some basic facts such as perfection of finite rings / fields and products of perfect rings.
bors Bot pushed a commit that referenced this pull request Aug 14, 2023
The main changes are:

- we replace the data-bearing `PerfectRing` typeclass with a `Prop`-valued (non-constructive) version,
- we introduce a new typeclass `PerfectField`,
- we add a proof that a perfect field of positive characteristic has surjective Frobenius map,
- we add some basic facts such as perfection of finite rings / fields and products of perfect rings.
bors Bot pushed a commit that referenced this pull request Aug 14, 2023
The main changes are:

- we replace the data-bearing `PerfectRing` typeclass with a `Prop`-valued (non-constructive) version,
- we introduce a new typeclass `PerfectField`,
- we add a proof that a perfect field of positive characteristic has surjective Frobenius map,
- we add some basic facts such as perfection of finite rings / fields and products of perfect rings.
bors Bot pushed a commit that referenced this pull request Aug 14, 2023
The main changes are:

- we replace the data-bearing `PerfectRing` typeclass with a `Prop`-valued (non-constructive) version,
- we introduce a new typeclass `PerfectField`,
- we add a proof that a perfect field of positive characteristic has surjective Frobenius map,
- we add some basic facts such as perfection of finite rings / fields and products of perfect rings.
bors Bot pushed a commit that referenced this pull request Aug 14, 2023
The main changes are:

- we replace the data-bearing `PerfectRing` typeclass with a `Prop`-valued (non-constructive) version,
- we introduce a new typeclass `PerfectField`,
- we add a proof that a perfect field of positive characteristic has surjective Frobenius map,
- we add some basic facts such as perfection of finite rings / fields and products of perfect rings.
bors Bot pushed a commit that referenced this pull request Aug 14, 2023
The main changes are:

- we replace the data-bearing `PerfectRing` typeclass with a `Prop`-valued (non-constructive) version,
- we introduce a new typeclass `PerfectField`,
- we add a proof that a perfect field of positive characteristic has surjective Frobenius map,
- we add some basic facts such as perfection of finite rings / fields and products of perfect rings.
bors Bot pushed a commit that referenced this pull request Aug 14, 2023
The main changes are:

- we replace the data-bearing `PerfectRing` typeclass with a `Prop`-valued (non-constructive) version,
- we introduce a new typeclass `PerfectField`,
- we add a proof that a perfect field of positive characteristic has surjective Frobenius map,
- we add some basic facts such as perfection of finite rings / fields and products of perfect rings.
bors Bot pushed a commit that referenced this pull request Aug 14, 2023
The main changes are:

- we replace the data-bearing `PerfectRing` typeclass with a `Prop`-valued (non-constructive) version,
- we introduce a new typeclass `PerfectField`,
- we add a proof that a perfect field of positive characteristic has surjective Frobenius map,
- we add some basic facts such as perfection of finite rings / fields and products of perfect rings.
@bors

bors Bot commented Aug 14, 2023

Copy link
Copy Markdown

Build failed (retrying...):

bors Bot pushed a commit that referenced this pull request Aug 14, 2023
The main changes are:

- we replace the data-bearing `PerfectRing` typeclass with a `Prop`-valued (non-constructive) version,
- we introduce a new typeclass `PerfectField`,
- we add a proof that a perfect field of positive characteristic has surjective Frobenius map,
- we add some basic facts such as perfection of finite rings / fields and products of perfect rings.
@bors

bors Bot commented Aug 14, 2023

Copy link
Copy Markdown

Build failed (retrying...):

bors Bot pushed a commit that referenced this pull request Aug 14, 2023
The main changes are:

- we replace the data-bearing `PerfectRing` typeclass with a `Prop`-valued (non-constructive) version,
- we introduce a new typeclass `PerfectField`,
- we add a proof that a perfect field of positive characteristic has surjective Frobenius map,
- we add some basic facts such as perfection of finite rings / fields and products of perfect rings.
@bors

bors Bot commented Aug 14, 2023

Copy link
Copy Markdown

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors Bot changed the title chore: refactor perfect rings / fields [Merged by Bors] - chore: refactor perfect rings / fields Aug 14, 2023
@bors bors Bot closed this Aug 14, 2023
@bors
bors Bot deleted the ocfnash/perfect_fields branch August 14, 2023 22:04
kim-em pushed a commit that referenced this pull request Aug 15, 2023
The main changes are:

- we replace the data-bearing `PerfectRing` typeclass with a `Prop`-valued (non-constructive) version,
- we introduce a new typeclass `PerfectField`,
- we add a proof that a perfect field of positive characteristic has surjective Frobenius map,
- we add some basic facts such as perfection of finite rings / fields and products of perfect rings.
kim-em pushed a commit that referenced this pull request Aug 15, 2023
The main changes are:

- we replace the data-bearing `PerfectRing` typeclass with a `Prop`-valued (non-constructive) version,
- we introduce a new typeclass `PerfectField`,
- we add a proof that a perfect field of positive characteristic has surjective Frobenius map,
- we add some basic facts such as perfection of finite rings / fields and products of perfect rings.
kim-em pushed a commit that referenced this pull request Aug 15, 2023
The main changes are:

- we replace the data-bearing `PerfectRing` typeclass with a `Prop`-valued (non-constructive) version,
- we introduce a new typeclass `PerfectField`,
- we add a proof that a perfect field of positive characteristic has surjective Frobenius map,
- we add some basic facts such as perfection of finite rings / fields and products of perfect rings.
kim-em pushed a commit that referenced this pull request Aug 17, 2023
The main changes are:

- we replace the data-bearing `PerfectRing` typeclass with a `Prop`-valued (non-constructive) version,
- we introduce a new typeclass `PerfectField`,
- we add a proof that a perfect field of positive characteristic has surjective Frobenius map,
- we add some basic facts such as perfection of finite rings / fields and products of perfect rings.
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). ready-to-merge This PR has been sent to bors. t-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants