Module

GaloisClosedSubschemes.lean

Nyll.SchemeTheory.Descent.GaloisClosedSubschemes
24 declarations indexed from sourceView source ↗

Descent of scheme morphisms through finite Galois field extensions

Imports10
  • Mathlib.AlgebraicGeometry.Cover.MorphismProperty
  • Mathlib.AlgebraicGeometry.Morphisms.SchemeTheoreticallyDominant
  • Mathlib.AlgebraicGeometry.Morphisms.Separated
  • Mathlib.AlgebraicGeometry.Sites.Fpqc
  • Mathlib.FieldTheory.Galois.Basic
  • Mathlib.LinearAlgebra.Dual.Lemmas
  • Mathlib.LinearAlgebra.LinearIndependent.Lemmas
  • Mathlib.RingTheory.Spectrum.Prime.RingHom
  • Mathlib.RingTheory.TensorProduct.Free
  • Mathlib.Util.WithWeakNamespace
Imported by2

Declarations

abbrev

gK

L56 ↗
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.gK

The morphism of spectra attached to the field extension.

Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section Twist
variable {k K : Type u} [Field k] [Field K] [Algebra k K] {X : Scheme.{u}} (fX : X ⟶ Spec
    (CommRingCat.of k))
abbrev gK (k K : Type u) [Field k] [Field K] [Algebra k K] :
    Spec (CommRingCat.of K) ⟶ Spec (CommRingCat.of k)
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.specMap_algEquiv_comp_gK
Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section Twist
variable {k K : Type u} [Field k] [Field K] [Algebra k K] {X : Scheme.{u}} (fX : X ⟶ Spec
    (CommRingCat.of k))
theorem specMap_algEquiv_comp_gK (σ : K ≃ₐ[k] K) :
    Spec.map (CommRingCat.ofHom ((σ : K →ₐ[k] K) : K →+* K)) ≫ gK k K = gK k K
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.galTwist

The base change automorphism induced by a field automorphism.

Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section Twist
variable {k K : Type u} [Field k] [Field K] [Algebra k K] {X : Scheme.{u}} (fX : X ⟶ Spec
    (CommRingCat.of k))
def galTwist (σ : K ≃ₐ[k] K) :
    pullback fX (gK k K) ⟶ pullback fX (gK k K)
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.galTwist_fst
Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section Twist
variable {k K : Type u} [Field k] [Field K] [Algebra k K] {X : Scheme.{u}} (fX : X ⟶ Spec
    (CommRingCat.of k))
theorem galTwist_fst (σ : K ≃ₐ[k] K) : galTwist fX σ ≫ pullback.fst fX (gK k K) =
    pullback.fst fX (gK k K)
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.galTwist_snd
Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section Twist
variable {k K : Type u} [Field k] [Field K] [Algebra k K] {X : Scheme.{u}} (fX : X ⟶ Spec
    (CommRingCat.of k))
theorem galTwist_snd (σ : K ≃ₐ[k] K) :
    galTwist fX σ ≫ pullback.snd fX (gK k K) =
      pullback.snd fX (gK k K) ≫ Spec.map (CommRingCat.ofHom ((σ : K →ₐ[k] K) : K →+* K))
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.pullback_map_eq_galTwist
Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section Twist
variable {k K : Type u} [Field k] [Field K] [Algebra k K] {X : Scheme.{u}} (fX : X ⟶ Spec
    (CommRingCat.of k))
theorem pullback_map_eq_galTwist (σ : K ≃ₐ[k] K)
    (h₁ : fX ≫ 𝟙 (Spec (CommRingCat.of k)) = 𝟙 X ≫ fX)
    (h₂ : gK k K ≫ 𝟙 (Spec (CommRingCat.of k)) =
      Spec.map (CommRingCat.ofHom ((σ : K →ₐ[k] K) : K →+* K)) ≫ gK k K) :
    pullback.map fX (gK k K) fX (gK k K) (𝟙 X) (Spec.map (CommRingCat.ofHom ((σ : K →ₐ[k] K) : K
        →+* K))) (𝟙 _) h₁ h₂ =
      galTwist fX σ
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.tensorSelfToPi

Evaluation of a Galois tensor product at its field automorphisms.

Source context 13 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section KernelPair
variable {k K : Type u} [Field k] [Field K] [Algebra k K] {X : Scheme.{u}} (fX : X ⟶ Spec
    (CommRingCat.of k))
section
variable (k K : Type u) [Field k] [Field K] [Algebra k K]
def tensorSelfToPi : K ⊗[k] K →ₐ[K] ((K ≃ₐ[k] K) → K)
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.tensorSelfToPi_tmul
Source context 13 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section KernelPair
variable {k K : Type u} [Field k] [Field K] [Algebra k K] {X : Scheme.{u}} (fX : X ⟶ Spec
    (CommRingCat.of k))
section
variable (k K : Type u) [Field k] [Field K] [Algebra k K]
theorem tensorSelfToPi_tmul (a b : K) :
    tensorSelfToPi k K (a ⊗ₜ[k] b) = fun σ => a * σ b := by
  rw [tensorSelfToPi, Algebra.TensorProduct.lift_tmul]
  funext σ
  rfl
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.tensorSelfToPi_surjective
Source context 15 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section KernelPair
variable {k K : Type u} [Field k] [Field K] [Algebra k K] {X : Scheme.{u}} (fX : X ⟶ Spec
    (CommRingCat.of k))
section
variable (k K : Type u) [Field k] [Field K] [Algebra k K]
variable [FiniteDimensional k K] [IsGalois k K]
omit [IsGalois k K] in
theorem tensorSelfToPi_surjective : Function.Surjective (tensorSelfToPi k K)
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.tensorSelfToPi_bijective
Source context 14 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section KernelPair
variable {k K : Type u} [Field k] [Field K] [Algebra k K] {X : Scheme.{u}} (fX : X ⟶ Spec
    (CommRingCat.of k))
section
variable (k K : Type u) [Field k] [Field K] [Algebra k K]
variable [FiniteDimensional k K] [IsGalois k K]
theorem tensorSelfToPi_bijective : Function.Bijective (tensorSelfToPi k K)
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.tensorSelfAlgEquivPi

The splitting equivalence for the tensor square of a finite Galois extension.

Source context 14 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section KernelPair
variable {k K : Type u} [Field k] [Field K] [Algebra k K] {X : Scheme.{u}} (fX : X ⟶ Spec
    (CommRingCat.of k))
section
variable (k K : Type u) [Field k] [Field K] [Algebra k K]
variable [FiniteDimensional k K] [IsGalois k K]
def tensorSelfAlgEquivPi
    (k K : Type u) [Field k] [Field K] [Algebra k K] [FiniteDimensional k K] [IsGalois k K] :
    K ⊗[k] K ≃ₐ[K] ((K ≃ₐ[k] K) → K)
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.tensorSelfAlgEquivPi_tmul
Source context 14 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section KernelPair
variable {k K : Type u} [Field k] [Field K] [Algebra k K] {X : Scheme.{u}} (fX : X ⟶ Spec
    (CommRingCat.of k))
section
variable (k K : Type u) [Field k] [Field K] [Algebra k K]
variable [FiniteDimensional k K] [IsGalois k K]
theorem tensorSelfAlgEquivPi_tmul
    (k K : Type u) [Field k] [Field K] [Algebra k K] [FiniteDimensional k K] [IsGalois k K] (a b :
        K) :
    tensorSelfAlgEquivPi k K (a ⊗ₜ[k] b) = fun σ => a * σ b := by
  rw [tensorSelfAlgEquivPi, AlgEquiv.ofBijective_apply, tensorSelfToPi_tmul]
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.kpInj

The graph of a Galois twist in the kernel pair of the base change.

Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section KernelPair
variable {k K : Type u} [Field k] [Field K] [Algebra k K] {X : Scheme.{u}} (fX : X ⟶ Spec
    (CommRingCat.of k))
def kpInj (σ : K ≃ₐ[k] K) :
    pullback fX (gK k K) ⟶ pullback (pullback.fst fX (gK k K)) (pullback.fst fX (gK k K))
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.kpInj_fst
Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section KernelPair
variable {k K : Type u} [Field k] [Field K] [Algebra k K] {X : Scheme.{u}} (fX : X ⟶ Spec
    (CommRingCat.of k))
theorem kpInj_fst (σ : K ≃ₐ[k] K) : kpInj fX σ ≫ pullback.fst _ _ = 𝟙 _
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.kpInj_snd
Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section KernelPair
variable {k K : Type u} [Field k] [Field K] [Algebra k K] {X : Scheme.{u}} (fX : X ⟶ Spec
    (CommRingCat.of k))
theorem kpInj_snd (σ : K ≃ₐ[k] K) : kpInj fX σ ≫ pullback.snd _ _ = galTwist fX σ
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.rho

The coordinate projection of the split Galois tensor product.

Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section KernelPair
variable {k K : Type u} [Field k] [Field K] [Algebra k K] {X : Scheme.{u}} (fX : X ⟶ Spec
    (CommRingCat.of k))
def rho [FiniteDimensional k K] [IsGalois k K] (σ : K ≃ₐ[k] K) : K ⊗[k] K →+* K
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.rho_comp_includeLeft
Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section KernelPair
variable {k K : Type u} [Field k] [Field K] [Algebra k K] {X : Scheme.{u}} (fX : X ⟶ Spec
    (CommRingCat.of k))
theorem rho_comp_includeLeft [FiniteDimensional k K] [IsGalois k K] (σ : K ≃ₐ[k] K) :
    (rho (k := k) (K := K) σ).comp Algebra.TensorProduct.includeLeftRingHom = RingHom.id K
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.rho_comp_includeRight
Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section KernelPair
variable {k K : Type u} [Field k] [Field K] [Algebra k K] {X : Scheme.{u}} (fX : X ⟶ Spec
    (CommRingCat.of k))
theorem rho_comp_includeRight [FiniteDimensional k K] [IsGalois k K] (σ : K ≃ₐ[k] K) :
    (rho (k := k) (K := K) σ).comp (Algebra.TensorProduct.includeRight (R := k) (A := K) (B :=
        K)).toRingHom =
      ((σ : K →ₐ[k] K) : K →+* K)
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.specTensorCover

The open cover of the split tensor spectrum by its Galois components.

Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section KernelPair
variable {k K : Type u} [Field k] [Field K] [Algebra k K] {X : Scheme.{u}} (fX : X ⟶ Spec
    (CommRingCat.of k))
def specTensorCover [FiniteDimensional k K] [IsGalois k K] :
    (Spec (CommRingCat.of (K ⊗[k] K))).OpenCover
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.hom_ext_kernelPair
Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section KernelPair
variable {k K : Type u} [Field k] [Field K] [Algebra k K] {X : Scheme.{u}} (fX : X ⟶ Spec
    (CommRingCat.of k))
theorem hom_ext_kernelPair [FiniteDimensional k K] [IsGalois k K] {W : Scheme.{u}}
    (u₁ u₂ : pullback (pullback.fst fX (gK k K)) (pullback.fst fX (gK k K)) ⟶ W)
    (h : ∀ σ : K ≃ₐ[k] K, kpInj fX σ ≫ u₁ = kpInj fX σ ≫ u₂) : u₁ = u₂
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.exists_eq_pullback_map
Source context 11 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
section Descent
variable {k K : Type u} [Field k] [Field K] [Algebra k K] [FiniteDimensional k K] [IsGalois k K]
  {X Y : Scheme.{u}} (fX : X ⟶ Spec (CommRingCat.of k)) (fY : Y ⟶ Spec (CommRingCat.of k))
theorem exists_eq_pullback_map
    (f : pullback fX (gK k K) ⟶ pullback fY (gK k K))
    (hf : f ≫ pullback.snd fY (gK k K) = pullback.snd fX (gK k K))
    (hgal : ∀ σ : K ≃ₐ[k] K, galTwist fX σ ≫ f = f ≫ galTwist fY σ) :
    ∃ g : X ⟶ Y, ∃ hg : g ≫ fY = fX,
      f = pullback.map fX (gK k K) fY (gK k K) g (𝟙 _) (𝟙 _) (by rw [Category.comp_id, hg])
            (by rw [Category.comp_id, Category.id_comp]) := by
  have : QuasiCompact (gK k K) := inferInstance
  have : Flat (gK k K) := inferInstance
  have : Surjective (gK k K) := inferInstance
  have : QuasiCompact (pullback.fst fX (gK k K)) := inferInstance
  have : Flat (pullback.fst fX (gK k K)) := inferInstance
  have : Surjective (pullback.fst fX (gK k K)) := inferInstance
  have : EffectiveEpi (pullback.fst fX (gK k K)) := inferInstance
  let e : pullback fX (gK k K) ⟶ Y := f ≫ pullback.fst fY (gK k K)
  have hcoeq : ∀ {Z : Scheme.{u}} (g₁ g₂ : Z ⟶ pullback fX (gK k K)),
      g₁ ≫ pullback.fst fX (gK k K) = g₂ ≫ pullback.fst fX (gK k K) → g₁ ≫ e = g₂ ≫ e := by
    intro Z g₁ g₂ h12
    let z : Z ⟶ pullback (pullback.fst fX (gK k K)) (pullback.fst fX (gK k K)) := pullback.lift g₁
        g₂ h12
    have h1 : g₁ = z ≫ pullback.fst _ _ := (pullback.lift_fst _ _ _).symm
    have h2 : g₂ = z ≫ pullback.snd _ _ := (pullback.lift_snd _ _ _).symm
    rw [h1, h2, Category.assoc, Category.assoc]
    congr 1
    apply hom_ext_kernelPair fX
    intro σ
    rw [← Category.assoc, kpInj_fst, Category.id_comp, ← Category.assoc, kpInj_snd]
    change e = galTwist fX σ ≫ f ≫ pullback.fst fY (gK k K)
    rw [← Category.assoc, hgal σ, Category.assoc, galTwist_fst]
  let g : X ⟶ Y := EffectiveEpi.desc (pullback.fst fX (gK k K)) e (fun g₁ g₂ h => hcoeq g₁ g₂ h)
  have hfac : pullback.fst fX (gK k K) ≫ g = e := EffectiveEpi.fac _ e _
  have hg : g ≫ fY = fX := by
    rw [← cancel_epi (pullback.fst fX (gK k K)), ← Category.assoc, hfac]
    change (f ≫ pullback.fst fY (gK k K)) ≫ fY = pullback.fst fX (gK k K) ≫ fX
    rw [Category.assoc, pullback.condition, ← Category.assoc, hf, pullback.condition]
  refine ⟨g, hg, ?_⟩
  apply pullback.hom_ext
  · rw [pullback.lift_fst, hfac]
  · rw [pullback.lift_snd, Category.comp_id, hf]
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.isSchemeTheoreticallyDominant_specMap_of_injective
Source context 9 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
theorem isSchemeTheoreticallyDominant_specMap_of_injective
    {R S : Type u} [CommRing R] [CommRing S] (φ : R →+* S) (hφ : Function.Injective φ) :
    IsSchemeTheoreticallyDominant (Spec.map (CommRingCat.ofHom φ))
AbelianVarieties.NOSProofs.FiniteGaloisDescent.GaloisDescent.eq_of_pullback_fst_comp_eq
Source context 9 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
namespace GaloisDescent
theorem eq_of_pullback_fst_comp_eq
    {k K : Type u} [Field k] [Field K] [Algebra k K]
    {X Y : Scheme.{u}} (fX : X ⟶ Spec (CommRingCat.of k)) (fY : Y ⟶ Spec (CommRingCat.of k))
        [IsSeparated fY]
    (g₁ g₂ : X ⟶ Y)
    (H : pullback.fst fX (Spec.map (CommRingCat.ofHom (algebraMap k K))) ≫ g₁ =
      pullback.fst fX (Spec.map (CommRingCat.ofHom (algebraMap k K))) ≫ g₂) : g₁ = g₂
AlgebraicGeometry.exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional
Source context 10 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_AlgebraicGeometry_exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace FiniteGaloisDescent
universe u v
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry
open scoped TensorProduct
open GaloisDescent in
with_weak_namespace _root_.AlgebraicGeometry
theorem exists_unique_eq_pullback_map_of_forall_galois_twist_comp_eq_of_finiteDimensional
    (k K : Type u) [Field k] [Field K] [Algebra k K] [FiniteDimensional k K] [IsGalois k K]
    (X Y : Scheme.{u}) (fX : X ⟶ Spec (CommRingCat.of k)) (fY : Y ⟶ Spec (CommRingCat.of k))
    [IsSeparated fY] [LocallyOfFiniteType fY]
    (f : pullback fX (Spec.map (CommRingCat.ofHom (algebraMap k K))) ⟶ pullback fY (Spec.map
        (CommRingCat.ofHom (algebraMap k K))))
    (hf : f ≫ pullback.snd fY (Spec.map (CommRingCat.ofHom (algebraMap k K))) =
      pullback.snd fX (Spec.map (CommRingCat.ofHom (algebraMap k K))))
    (hgal : ∀ (σ : K ≃ₐ[k] K)
      (hσ : Spec.map (CommRingCat.ofHom ((σ : K →ₐ[k] K) : K →+* K)) ≫ Spec.map (CommRingCat.ofHom
          (algebraMap k K)) =
        Spec.map (CommRingCat.ofHom (algebraMap k K))),
      pullback.map fX (Spec.map (CommRingCat.ofHom (algebraMap k K))) fX (Spec.map
          (CommRingCat.ofHom (algebraMap k K)))
          (𝟙 X) (Spec.map (CommRingCat.ofHom ((σ : K →ₐ[k] K) : K →+* K))) (𝟙 _)
          (by rw [Category.comp_id, Category.id_comp]) (by rw [Category.comp_id, hσ]) ≫ f =
        f ≫ pullback.map fY (Spec.map (CommRingCat.ofHom (algebraMap k K))) fY (Spec.map
            (CommRingCat.ofHom (algebraMap k K)))
          (𝟙 Y) (Spec.map (CommRingCat.ofHom ((σ : K →ₐ[k] K) : K →+* K))) (𝟙 _)
          (by rw [Category.comp_id, Category.id_comp]) (by rw [Category.comp_id, hσ])) :
    ∃ g : X ⟶ Y, ∃ hg : g ≫ fY = fX,
      f = pullback.map fX (Spec.map (CommRingCat.ofHom (algebraMap k K))) fY (Spec.map
          (CommRingCat.ofHom (algebraMap k K)))
            g (𝟙 _) (𝟙 _) (by rw [Category.comp_id, hg]) (by rw [Category.comp_id,
                Category.id_comp]) ∧
      ∀ (g' : X ⟶ Y) (hg' : g' ≫ fY = fX),
        f = pullback.map fX (Spec.map (CommRingCat.ofHom (algebraMap k K))) fY (Spec.map
            (CommRingCat.ofHom (algebraMap k K)))
              g' (𝟙 _) (𝟙 _) (by rw [Category.comp_id, hg']) (by rw [Category.comp_id,
                  Category.id_comp]) →
        g' = g := by
  have hgal' : ∀ σ : K ≃ₐ[k] K, galTwist fX σ ≫ f = f ≫ galTwist fY σ := by
    intro σ
    have := hgal σ (specMap_algEquiv_comp_gK σ)
    rw [pullback_map_eq_galTwist, pullback_map_eq_galTwist] at this
    exact this
  obtain ⟨g, hg, hfg⟩ := exists_eq_pullback_map fX fY f hf hgal'
  refine ⟨g, hg, hfg, ?_⟩
  intro g' hg' hfg'
  exact eq_of_pullback_fst_comp_eq fX fY g' g (K := K) (by
    have := congrArg (· ≫ pullback.fst fY (Spec.map (CommRingCat.ofHom (algebraMap k K))))
        (hfg'.symm.trans hfg)
    simpa only [pullback.lift_fst] using this)