Skip to content

[Merged by Bors] - feat(Algebra/Field/Subfield): the map/comap Galois coinsertion - #43925

Closed
xroblot wants to merge 13 commits into
leanprover-community:masterfrom
xroblot:subfield-map-comap-gci
Closed

xroblot wants to merge 13 commits into
leanprover-community:masterfrom
xroblot:subfield-map-comap-gci

Conversation

@xroblot

@xroblot xroblot commented Sep 18, 2026 •

Copy link
Copy Markdown
Collaborator

A ring homomorphism out of a field is injective, so the existing Galois connection between map and comap on subfields is in fact a GaloisCoinsertion, added here as Subfield.gciMapComap, along with what it yields: comap_surjective, map_injective, map_le_map_iff, the compatibility of comap with ⊓, ⊔, ⨅ and ⨆, and three lemmas on comap along s.subtype.

The same is done for IntermediateField and AlgHom, as IntermediateField.gciMapComap, together with the basic comap lemmas that were missing there.

The mathematics and design are mine. Claude Code was used as a coding assistant and for the housekeeping around this PR. 🤖


@github-actions

github-actions Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

PR summary 8fbb303d5b

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

+ _root_.Subfield.map_top
+ coe_comap
+ comap_comap
+ comap_iInf
+ comap_inf
+ comap_subtype_eq_top
+ comap_subtype_self
+ comap_top
+ comap_val_eq_top
+ comap_val_self
+ map_comap_subtype
+ map_comap_val
+ map_injective
+ map_top
+ mem_comap
++ comap_eq_top_iff
++ comap_iInf_map
++ comap_iSup
++ comap_iSup_map
++ comap_inf_map
++ comap_sup
++ comap_sup_map
++ comap_surjective
++ gciMapComap
++ map_le_map_iff

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.

Declarations diff (Lean)

✅ Lean-aware diff — post-build, computed from the Lean environment (commit 8fbb303).

  • +35 new declarations
  • −0 removed declarations
+IntermediateField.coe_comap
+IntermediateField.comap_comap
+IntermediateField.comap_eq_top_iff
+IntermediateField.comap_iInf
+IntermediateField.comap_iInf_map
+IntermediateField.comap_iSup
+IntermediateField.comap_iSup_map
+IntermediateField.comap_inf
+IntermediateField.comap_inf_map
+IntermediateField.comap_sup
+IntermediateField.comap_sup_map
+IntermediateField.comap_surjective
+IntermediateField.comap_top
+IntermediateField.comap_val_eq_top
+IntermediateField.comap_val_self
+IntermediateField.gciMapComap
+IntermediateField.map_comap_val
+IntermediateField.map_le_map_iff
+IntermediateField.map_top
+IntermediateField.mem_comap
+Subfield.comap_eq_top_iff
+Subfield.comap_iInf_map
+Subfield.comap_iSup
+Subfield.comap_iSup_map
+Subfield.comap_inf_map
+Subfield.comap_subtype_eq_top
+Subfield.comap_subtype_self
+Subfield.comap_sup
+Subfield.comap_sup_map
+Subfield.comap_surjective
+Subfield.gciMapComap
+Subfield.map_comap_subtype
+Subfield.map_injective
+Subfield.map_le_map_iff
+Subfield.map_top

No changes to strong technical debt.
No changes to weak technical debt.

Current commit 8fbb303d5b
Reference commit 2270f87f5f

This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:

git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py 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 Sep 18, 2026
@tb65536 tb65536 added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Oct 27, 2026
@xroblot xroblot removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Oct 28, 2026
@tb65536 tb65536 added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Nov 4, 2026
@xroblot xroblot removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Nov 11, 2026

@tb65536 tb65536 left a comment

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.

Thanks!

maintainer delegate

@github-actions

Copy link
Copy Markdown

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

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Nov 13, 2026

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

Thanks 🎉

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Nov 17, 2026
@mathlib-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Nov 17, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Nov 17, 2026
A ring homomorphism out of a field is injective, so the existing Galois connection between `map` and `comap` on subfields is in fact a `GaloisCoinsertion`, added here as `Subfield.gciMapComap`, along with what it yields: `comap_surjective`, `map_injective`, `map_le_map_iff`, the compatibility of `comap` with `⊓`, `⊔`, `⨅` and `⨆`, and three lemmas on `comap` along `s.subtype`.

The same is done for `IntermediateField` and `AlgHom`, as `IntermediateField.gciMapComap`, together with the basic `comap` lemmas that were missing there.

The mathematics and design are mine. Claude Code was used as a coding assistant and for the housekeeping around this PR. 🤖
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Nov 17, 2026
@mathlib-bors

mathlib-bors Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title feat(Algebra/Field/Subfield): the map/comap Galois coinsertion [Merged by Bors] - feat(Algebra/Field/Subfield): the map/comap Galois coinsertion Nov 17, 2026
@mathlib-bors mathlib-bors Bot closed this Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bors-staging This PR is currently being built by bors on the staging branch. 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.

4 participants