Module

Descent.lean

Nyll.AbelianVarieties.NeronModels.Descent
103 declarations indexed from sourceView source ↗

Étale descent of relative group models

Construct a descent action after a finite étale base change, descend the group law and its open chart, and retain the comparison with the generic fibre.

Imports34
Imported by2

Declarations

AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.sMap

The affine base-change morphism induced by the algebra map.

Source context 7 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
abbrev sMap : Spec (CommRingCat.of R') ⟶ Spec (CommRingCat.of R)
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.covering_props
Source context 7 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
theorem covering_props [Module.FaithfullyFlat R R'] :
    (@Surjective ⊓ @Flat ⊓ @QuasiCompact : MorphismProperty Scheme.{u}) (sMap R R')
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.surjective_sMap
Source context 7 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
instance surjective_sMap [Module.FaithfullyFlat R R'] : Surjective (sMap R R')
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.flat_sMap
Source context 7 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
instance flat_sMap [Module.FaithfullyFlat R R'] : Flat (sMap R R')
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.props_descend
Source context 7 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
theorem props_descend [Module.FaithfullyFlat R R']
    {B : Scheme.{u}} (g : B ⟶ Spec (CommRingCat.of R))
    {B' : Scheme.{u}} (g' : B' ⟶ Spec (CommRingCat.of R'))
    [Smooth g'] [IsSeparated g'] [LocallyOfFiniteType g'] [QuasiCompact g']
    (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R')) :
    Smooth g ∧ IsSeparated g ∧ LocallyOfFiniteType g ∧ QuasiCompact g
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.pointBC

Base change of a relative point.

Source context 8 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
def pointBC {B : Scheme.{u}} (g : B ⟶ Spec (CommRingCat.of R)) {T : Scheme.{u}}
    {t : T ⟶ Spec (CommRingCat.of R)} (x : SchemeHomOver t g) :
    SchemeHomOver (pullback.snd t (sMap R R')) (pullback.snd g (sMap R R'))
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.pointBC_coe_fst
Source context 8 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
theorem pointBC_coe_fst {B : Scheme.{u}} (g : B ⟶ Spec (CommRingCat.of R)) {T : Scheme.{u}}
    {t : T ⟶ Spec (CommRingCat.of R)} (x : SchemeHomOver t g) :
    (pointBC g x).1 ≫ pullback.fst g (sMap R R') = pullback.fst t (sMap R R') ≫ x.1
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.pointBC_coe_snd
Source context 8 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
theorem pointBC_coe_snd {B : Scheme.{u}} (g : B ⟶ Spec (CommRingCat.of R)) {T : Scheme.{u}}
    {t : T ⟶ Spec (CommRingCat.of R)} (x : SchemeHomOver t g) :
    (pointBC g x).1 ≫ pullback.snd g (sMap R R') = pullback.snd t (sMap R R')
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.pointBC_natural
Source context 8 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
theorem pointBC_natural {B : Scheme.{u}} (g : B ⟶ Spec (CommRingCat.of R)) {T T' : Scheme.{u}}
    (t : T ⟶ Spec (CommRingCat.of R)) (t' : T' ⟶ Spec (CommRingCat.of R)) (ψ : T' ⟶ T)
    (hψ : ψ ≫ t = t') (x : SchemeHomOver t g) :
    pointBC g (GoodReductionJacobian.schemeHomOverComp ψ hψ x) =
      GoodReductionJacobian.schemeHomOverComp
        (pullback.map t' (sMap R R') t (sMap R R') ψ (𝟙 _) (𝟙 _) (by rw [hψ, Category.comp_id])
          (by rw [Category.comp_id, Category.id_comp]))
        (by rw [pullback.lift_snd, Category.comp_id]) (pointBC g x) := by
  apply Subtype.ext
  apply pullback.hom_ext
  · simp only [GoodReductionJacobian.schemeHomOverComp_coe, Category.assoc, pointBC_coe_fst,
      pullback.lift_fst_assoc]
  · simp only [GoodReductionJacobian.schemeHomOverComp_coe, Category.assoc, pointBC_coe_snd,
      pullback.lift_snd, Category.comp_id]
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.pointBC_injective
Source context 8 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
theorem pointBC_injective [Module.FaithfullyFlat R R'] {B : Scheme.{u}} (g : B ⟶ Spec
    (CommRingCat.of R))
    {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R)) :
    Function.Injective (pointBC (R' := R') g (t := t))
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.yRel

The induced map on the descent relation.

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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Invariant
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g')
def yRel {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
    (y : SchemeHomOver (pullback.snd t (sMap R R')) g') :
    pullback (pullback.snd t (sMap R R') ≫ sMap R R') (sMap R R') ⟶ pullback (g' ≫ sMap R R') (sMap
      R R')
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.yRel_fst
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Invariant
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g')
theorem yRel_fst {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
    (y : SchemeHomOver (pullback.snd t (sMap R R')) g') :
    yRel y ≫ pullback.fst _ _ = pullback.fst _ _ ≫ y.1
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.yRel_snd
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Invariant
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g')
theorem yRel_snd {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
    (y : SchemeHomOver (pullback.snd t (sMap R R')) g') :
    yRel y ≫ pullback.snd _ _ = pullback.snd _ _
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.Invariant

A relative point satisfying the descent relation.

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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Invariant
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g')
def Invariant {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
    (y : SchemeHomOver (pullback.snd t (sMap R R')) g') : Prop
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.pointBC'

Base change of a point through the chosen descent isomorphism.

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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Invariant
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g')
variable {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
def pointBC' {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)} (x : SchemeHomOver t
    g) :
    SchemeHomOver (pullback.snd t (sMap R R')) g'
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.pointBC'_coe
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Invariant
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g')
variable {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
theorem pointBC'_coe {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)} (x : SchemeHomOver t g) :
    (pointBC' e he x).1 = (pointBC g x).1 ≫ e.hom
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.pointBC'_injective
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Invariant
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g')
variable {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
theorem pointBC'_injective [Module.FaithfullyFlat R R'] {T : Scheme.{u}} (t : T ⟶ Spec
    (CommRingCat.of R)) :
    Function.Injective (pointBC' e he (t := t))
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.invariant_pointBC'
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Invariant
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g')
variable {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
theorem invariant_pointBC'
    (hact : pullback.map (pullback.snd g (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R') (sMap
      R R')
        e.hom (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, he])
        (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
      (DescentAction.canonical (sMap R R') g).act ≫ e.hom)
    {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)} (x : SchemeHomOver t g) :
    Invariant A (pointBC' e he x) := by
  let xSS : pullback (pullback.snd t (sMap R R') ≫ sMap R R') (sMap R R') ⟶
      pullback (pullback.snd g (sMap R R') ≫ sMap R R') (sMap R R') :=
    pullback.map _ _ _ _ (pointBC g x).1 (𝟙 _) (𝟙 _)
      (by rw [Category.comp_id, ← Category.assoc, (pointBC g x).2]) (by rw [Category.comp_id,
        Category.id_comp])
  have hxSS₁ : xSS ≫ pullback.fst _ _ = pullback.fst _ _ ≫ (pointBC g x).1 := pullback.lift_fst _ _
    _
  have hxSS₂ : xSS ≫ pullback.snd _ _ = pullback.snd _ _ := (pullback.lift_snd _ _ _).trans
    (Category.comp_id _)
  have hrel : yRel (pointBC' e he x) =
      xSS ≫ pullback.map (pullback.snd g (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R') (sMap
        R R')
        e.hom (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, he])
        (by rw [Category.comp_id, Category.id_comp]) := by
    apply pullback.hom_ext
    · rw [yRel_fst, Category.assoc, pullback.lift_fst, ← Category.assoc, hxSS₁, Category.assoc]
      rfl
    · rw [yRel_snd, Category.assoc, pullback.lift_snd, Category.comp_id, hxSS₂]
  have hflip : DescentAction.flipMap (sMap R R') t ≫ (pointBC g x).1 =
      xSS ≫ DescentAction.flipMap (sMap R R') g := by
    apply pullback.hom_ext
    · rw [Category.assoc, pointBC_coe_fst, DescentAction.flipMap_fst_assoc, Category.assoc,
        DescentAction.flipMap_fst, ← Category.assoc xSS, hxSS₁, Category.assoc, pointBC_coe_fst]
    · rw [Category.assoc, pointBC_coe_snd, DescentAction.flipMap_snd, Category.assoc,
        DescentAction.flipMap_snd,
        hxSS₂]
  change DescentAction.flipMap (sMap R R') t ≫ (pointBC g x).1 ≫ e.hom = yRel (pointBC' e he x) ≫
    A.act
  rw [← Category.assoc, hflip, hrel, Category.assoc, Category.assoc, hact]
  rfl
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.exists_pointBC'_eq_of_invariant
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Invariant
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g')
variable {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
theorem exists_pointBC'_eq_of_invariant [Module.FaithfullyFlat R R']
    (hact : pullback.map (pullback.snd g (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R') (sMap
      R R')
        e.hom (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, he])
        (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
      (DescentAction.canonical (sMap R R') g).act ≫ e.hom)
    {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
    (y : SchemeHomOver (pullback.snd t (sMap R R')) g') (hy : Invariant A y) :
    ∃ x : SchemeHomOver t g, pointBC' e he x = y := by
  have heinv : e.inv ≫ pullback.snd g (sMap R R') = g' := by rw [← he, Iso.inv_hom_id_assoc]
  let N : pullback t (sMap R R') ⟶ pullback g (sMap R R') := y.1 ≫ e.inv
  have hN₂ : N ≫ pullback.snd g (sMap R R') = pullback.snd t (sMap R R') := by
    change (y.1 ≫ e.inv) ≫ _ = _
    rw [Category.assoc, heinv, y.2]
  let NS : pullback (pullback.snd t (sMap R R') ≫ sMap R R') (sMap R R') ⟶
      pullback (pullback.snd g (sMap R R') ≫ sMap R R') (sMap R R') :=
    pullback.map _ _ _ _ N (𝟙 _) (𝟙 _) (by rw [Category.comp_id, reassoc_of% hN₂])
      (by rw [Category.comp_id, Category.id_comp])
  have hNS₁ : NS ≫ pullback.fst _ _ = pullback.fst _ _ ≫ N := pullback.lift_fst _ _ _
  have hNS₂ : NS ≫ pullback.snd _ _ = pullback.snd _ _ := (pullback.lift_snd _ _ _).trans
    (Category.comp_id _)
  have hrel : yRel y = NS ≫ pullback.map (pullback.snd g (sMap R R') ≫ sMap R R') (sMap R R')
      (g' ≫ sMap R R') (sMap R R') e.hom (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc,
        he])
      (by rw [Category.comp_id, Category.id_comp]) := by
    apply pullback.hom_ext
    · rw [yRel_fst, Category.assoc, pullback.lift_fst, ← Category.assoc, hNS₁, Category.assoc]
      change _ = pullback.fst _ _ ≫ (y.1 ≫ e.inv) ≫ e.hom
      rw [Category.assoc, Iso.inv_hom_id, Category.comp_id]
    · rw [yRel_snd, Category.assoc, pullback.lift_snd, Category.comp_id, hNS₂]
  let a : pullback t (sMap R R') ⟶ B := N ≫ pullback.fst g (sMap R R')
  have hcond : ∀ {W : Scheme.{u}} (g₁ g₂ : W ⟶ pullback t (sMap R R')),
      g₁ ≫ pullback.fst t (sMap R R') = g₂ ≫ pullback.fst t (sMap R R') → g₁ ≫ a = g₂ ≫ a := by
    intro W g₁ g₂ hg
    have w : g₁ ≫ pullback.snd t (sMap R R') ≫ sMap R R' = (g₂ ≫ pullback.snd t (sMap R R')) ≫ sMap
      R R' := by
      rw [Category.assoc, ← pullback.condition, reassoc_of% hg]
    let ρ : W ⟶ pullback (pullback.snd t (sMap R R') ≫ sMap R R') (sMap R R') :=
      pullback.lift g₁ (g₂ ≫ pullback.snd t (sMap R R')) w
    have hρ₁ : g₁ = ρ ≫ pullback.fst _ _ := (pullback.lift_fst _ _ _).symm
    have hρ₂ : g₂ = ρ ≫ DescentAction.flipMap (sMap R R') t := by
      apply pullback.hom_ext
      · rw [Category.assoc, DescentAction.flipMap_fst, pullback.lift_fst_assoc]
        exact hg.symm
      · rw [Category.assoc, DescentAction.flipMap_snd]
        exact (pullback.lift_snd _ _ _).symm
    rw [hρ₁, hρ₂, Category.assoc, Category.assoc]
    congr 1
    change pullback.fst _ _ ≫ (y.1 ≫ e.inv) ≫ pullback.fst g (sMap R R') =
      DescentAction.flipMap (sMap R R') t ≫ (y.1 ≫ e.inv) ≫ pullback.fst g (sMap R R')
    have hy' : DescentAction.flipMap (sMap R R') t ≫ y.1 = yRel y ≫ A.act := hy
    simp only [Category.assoc]
    rw [reassoc_of% hy', hrel, Category.assoc, reassoc_of% hact]
    change _ = NS ≫ DescentAction.flipMap (sMap R R') g ≫ e.hom ≫ e.inv ≫ pullback.fst g (sMap R R')
    rw [Iso.hom_inv_id_assoc, DescentAction.flipMap_fst, reassoc_of% hNS₁]
    simp only [N, Category.assoc]
  let xl : T ⟶ B := EffectiveEpi.desc (pullback.fst t (sMap R R')) a (fun g₁ g₂ hg => hcond g₁ g₂
    hg)
  have hxl : pullback.fst t (sMap R R') ≫ xl = a := EffectiveEpi.fac _ _ _
  have hxg : xl ≫ g = t := by
    apply (cancel_epi (pullback.fst t (sMap R R'))).1
    rw [← Category.assoc, hxl]
    change (N ≫ pullback.fst g (sMap R R')) ≫ g = _
    rw [Category.assoc, pullback.condition, reassoc_of% hN₂, pullback.condition]
  refine ⟨⟨xl, hxg⟩, ?_⟩
  apply Subtype.ext
  change (pointBC g ⟨xl, hxg⟩).1 ≫ e.hom = y.1
  have hlift : (pointBC g ⟨xl, hxg⟩).1 = N := by
    apply pullback.hom_ext
    · rw [pointBC_coe_fst, hxl]
    · rw [pointBC_coe_snd, hN₂]
  rw [hlift]
  change (y.1 ≫ e.inv) ≫ e.hom = y.1
  rw [Category.assoc, Iso.inv_hom_id, Category.comp_id]
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.pointBC'_bijective_invariant
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Invariant
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g')
variable {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
theorem pointBC'_bijective_invariant [Module.FaithfullyFlat R R']
    (hact : pullback.map (pullback.snd g (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R') (sMap
      R R')
        e.hom (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, he])
        (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
      (DescentAction.canonical (sMap R R') g).act ≫ e.hom)
    {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R)) :
    Function.Bijective (fun x : SchemeHomOver t g =>
      (⟨pointBC' e he x, invariant_pointBC' A e he hact x⟩ :
        {y : SchemeHomOver (pullback.snd t (sMap R R')) g' // Invariant A y})) := by
  refine ⟨fun x₁ x₂ h => pointBC'_injective e he t (congrArg Subtype.val h), fun y => ?_⟩
  obtain ⟨x, hx⟩ := exists_pointBC'_eq_of_invariant A e he hact y.1 y.2
  exact ⟨x, Subtype.ext hx⟩
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.τ₃

The second structural map of the repeated 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GroupLaw
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g') (LB' : RelativeGroupLaw R' g')
variable {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
abbrev τ₃ (t : T ⟶ Spec (CommRingCat.of R)) :
    pullback (pullback.snd t (sMap R R') ≫ sMap R R') (sMap R R') ⟶ Spec (CommRingCat.of R')
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.t'₃

The first structural map of the repeated 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GroupLaw
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g') (LB' : RelativeGroupLaw R' g')
variable {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
abbrev t'₃ (t : T ⟶ Spec (CommRingCat.of R)) :
    pullback (pullback.snd t (sMap R R') ≫ sMap R R') (sMap R R') ⟶ Spec (CommRingCat.of R')
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.hτ₃
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GroupLaw
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g') (LB' : RelativeGroupLaw R' g')
variable {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
theorem hτ₃ (t : T ⟶ Spec (CommRingCat.of R)) : t'₃ t ≫ sMap R R' = τ₃ t ≫ sMap R R'
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.yfst

Pull a relative point back along the first projection.

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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GroupLaw
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g') (LB' : RelativeGroupLaw R' g')
variable {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
def yfst (y : SchemeHomOver (pullback.snd t (sMap R R')) g') : SchemeHomOver (t'₃ t)
    g'
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.yflip

Pull a relative point back along the descent interchange 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GroupLaw
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g') (LB' : RelativeGroupLaw R' g')
variable {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
def yflip (y : SchemeHomOver (pullback.snd t (sMap R R')) g') : SchemeHomOver (τ₃ t)
    g'
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.actP

Apply the descent action to a relative point.

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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GroupLaw
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g') (LB' : RelativeGroupLaw R' g')
variable {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
def actP (z : SchemeHomOver (t'₃ t) g') : SchemeHomOver (τ₃ t) g'
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.actP_coe
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GroupLaw
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g') (LB' : RelativeGroupLaw R' g')
variable {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
theorem actP_coe (z : SchemeHomOver (t'₃ t) g') :
    (actP A z).1 = pullback.lift z.1 (τ₃ t) (by rw [reassoc_of% z.2]; exact pullback.condition) ≫
      A.act :=
  rfl
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.invariant_iff
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GroupLaw
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g') (LB' : RelativeGroupLaw R' g')
variable {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
theorem invariant_iff (y : SchemeHomOver (pullback.snd t (sMap R R')) g') :
    Invariant A y ↔ actP A (yfst y) = yflip y
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.MulCompatible

Compatibility of the descent action with multiplication.

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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GroupLaw
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g') (LB' : RelativeGroupLaw R' g')
variable {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
def MulCompatible : Prop
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.actP_mul
Source context 12 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GroupLaw
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g') (LB' : RelativeGroupLaw R' g')
variable {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
variable {A LB'}
theorem actP_mul (hA₂ : MulCompatible A LB') (x y : SchemeHomOver (t'₃ t) g') :
    actP A (LB'.mul (t'₃ t) x y) = LB'.mul (τ₃ t) (actP A x) (actP A y)
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.actP_one
Source context 12 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GroupLaw
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g') (LB' : RelativeGroupLaw R' g')
variable {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
variable {A LB'}
theorem actP_one (hA₂ : MulCompatible A LB') :
    actP A (LB'.one (t'₃ (R := R) (R' := R') t)) = LB'.one (τ₃ t)
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.actP_inv
Source context 12 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GroupLaw
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g') (LB' : RelativeGroupLaw R' g')
variable {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
variable {A LB'}
theorem actP_inv (hA₂ : MulCompatible A LB') (x : SchemeHomOver (t'₃ t) g') :
    actP A (LB'.inv (t'₃ t) x) = LB'.inv (τ₃ t) (actP A x)
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.yfst_mul
Source context 12 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GroupLaw
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g') (LB' : RelativeGroupLaw R' g')
variable {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
variable {A LB'}
theorem yfst_mul (y₁ y₂ : SchemeHomOver (pullback.snd t (sMap R R')) g') :
    yfst (LB'.mul _ y₁ y₂) = LB'.mul (t'₃ t) (yfst y₁) (yfst y₂)
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.yflip_mul
Source context 12 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GroupLaw
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g') (LB' : RelativeGroupLaw R' g')
variable {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
variable {A LB'}
theorem yflip_mul (y₁ y₂ : SchemeHomOver (pullback.snd t (sMap R R')) g') :
    yflip (LB'.mul _ y₁ y₂) = LB'.mul (τ₃ t) (yflip y₁) (yflip y₂)
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.invariant_mul
Source context 12 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GroupLaw
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g') (LB' : RelativeGroupLaw R' g')
variable {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
variable {A LB'}
theorem invariant_mul (hA₂ : MulCompatible A LB') {y₁ y₂ : SchemeHomOver (pullback.snd t (sMap R
    R')) g'}
    (h₁ : Invariant A y₁) (h₂ : Invariant A y₂) : Invariant A (LB'.mul _ y₁ y₂)
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.invariant_one
Source context 12 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GroupLaw
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g') (LB' : RelativeGroupLaw R' g')
variable {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
variable {A LB'}
theorem invariant_one (hA₂ : MulCompatible A LB') :
    Invariant A (LB'.one (pullback.snd t (sMap R R')))
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.invariant_inv
Source context 12 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GroupLaw
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g') (LB' : RelativeGroupLaw R' g')
variable {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)}
variable {A LB'}
theorem invariant_inv (hA₂ : MulCompatible A LB') {y : SchemeHomOver (pullback.snd t (sMap R R'))
    g'}
    (h : Invariant A y) : Invariant A (LB'.inv _ y)
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.Φ

Relative points identified with invariant points after 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Descended
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  {A : DescentAction (sMap R R') g'} {LB' : RelativeGroupLaw R' g'}
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
variable [Module.FaithfullyFlat R R']
  (hact : pullback.map (pullback.snd g (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R') (sMap R
    R')
        e.hom (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, he])
        (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
      (DescentAction.canonical (sMap R R') g).act ≫ e.hom)
  (hA₂ : MulCompatible A LB')
def Φ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R)) :
    SchemeHomOver t g ≃ {y : SchemeHomOver (pullback.snd t (sMap R R')) g' // Invariant A y}
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.Φ_apply_coe
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Descended
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  {A : DescentAction (sMap R R') g'} {LB' : RelativeGroupLaw R' g'}
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
variable [Module.FaithfullyFlat R R']
  (hact : pullback.map (pullback.snd g (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R') (sMap R
    R')
        e.hom (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, he])
        (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
      (DescentAction.canonical (sMap R R') g).act ≫ e.hom)
  (hA₂ : MulCompatible A LB')
theorem Φ_apply_coe {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R)) (x :
    SchemeHomOver t g) :
    ((Φ (T := T) e he hact t) x).1 = pointBC' e he x
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.descendedLaw

The group law transported from invariant relative points.

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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Descended
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  {A : DescentAction (sMap R R') g'} {LB' : RelativeGroupLaw R' g'}
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
variable [Module.FaithfullyFlat R R']
  (hact : pullback.map (pullback.snd g (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R') (sMap R
    R')
        e.hom (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, he])
        (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
      (DescentAction.canonical (sMap R R') g).act ≫ e.hom)
  (hA₂ : MulCompatible A LB')
def descendedLaw : RelativeGroupLaw R g where
  mul t x y := (Φ e he hact t).symm ⟨LB'.mul _ (pointBC' e he x) (pointBC' e he y),
    invariant_mul hA₂ ((Φ e he hact t) x).2 ((Φ e he hact t) y).2⟩
  one t := (Φ e he hact t).symm ⟨LB'.one _, invariant_one hA₂⟩
  inv t x := (Φ e he hact t).symm ⟨LB'.inv _ (pointBC' e he x), invariant_inv hA₂ ((Φ e he hact t)
    x).2⟩
  mul_assoc t x y z := by
    apply (Φ e he hact t).injective
    apply Subtype.ext
    simp only [Equiv.apply_symm_apply]
    have hx : pointBC' e he ((Φ e he hact t).symm ⟨LB'.mul _ (pointBC' e he x) (pointBC' e he y),
        invariant_mul hA₂ ((Φ e he hact t) x).2 ((Φ e he hact t) y).2⟩) = LB'.mul _ (pointBC' e he
          x) (pointBC' e he y) :=
      congrArg Subtype.val ((Φ e he hact t).apply_symm_apply _)
    have hy : pointBC' e he ((Φ e he hact t).symm ⟨LB'.mul _ (pointBC' e he y) (pointBC' e he z),
        invariant_mul hA₂ ((Φ e he hact t) y).2 ((Φ e he hact t) z).2⟩) = LB'.mul _ (pointBC' e he
          y) (pointBC' e he z) :=
      congrArg Subtype.val ((Φ e he hact t).apply_symm_apply _)
    rw [hx, hy, LB'.mul_assoc]
  one_mul t x := by
    apply (Φ e he hact t).injective
    apply Subtype.ext
    simp only [Equiv.apply_symm_apply]
    have h1 : pointBC' e he ((Φ e he hact t).symm ⟨LB'.one _, invariant_one hA₂⟩) = LB'.one _ :=
      congrArg Subtype.val ((Φ e he hact t).apply_symm_apply _)
    rw [h1, LB'.one_mul, Φ_apply_coe]
  mul_one t x := by
    apply (Φ e he hact t).injective
    apply Subtype.ext
    simp only [Equiv.apply_symm_apply]
    have h1 : pointBC' e he ((Φ e he hact t).symm ⟨LB'.one _, invariant_one hA₂⟩) = LB'.one _ :=
      congrArg Subtype.val ((Φ e he hact t).apply_symm_apply _)
    rw [h1, LB'.mul_one, Φ_apply_coe]
  inv_mul_cancel t x := by
    apply (Φ e he hact t).injective
    apply Subtype.ext
    simp only [Equiv.apply_symm_apply]
    have h1 : pointBC' e he ((Φ e he hact t).symm ⟨LB'.inv _ (pointBC' e he x), invariant_inv hA₂
      ((Φ e he hact t) x).2⟩) =
        LB'.inv _ (pointBC' e he x) :=
      congrArg Subtype.val ((Φ e he hact t).apply_symm_apply _)
    rw [h1, LB'.inv_mul_cancel]
  mul_natural t t' ψ hψ x y := by
    apply (Φ e he hact t').injective
    apply Subtype.ext
    simp only [Equiv.apply_symm_apply, Φ_apply_coe]
    have hnat : ∀ z : SchemeHomOver t g, pointBC' e he (GoodReductionJacobian.schemeHomOverComp ψ hψ
      z) =
        GoodReductionJacobian.schemeHomOverComp
          (pullback.map t' (sMap R R') t (sMap R R') ψ (𝟙 _) (𝟙 _) (by rw [hψ, Category.comp_id])
            (by rw [Category.comp_id, Category.id_comp]))
          (by rw [pullback.lift_snd, Category.comp_id]) (pointBC' e he z) := by
      intro z
      apply Subtype.ext
      change (pointBC g (GoodReductionJacobian.schemeHomOverComp ψ hψ z)).1 ≫ e.hom = _
      rw [pointBC_natural]
      rfl
    have hmul : pointBC' e he ((Φ e he hact t).symm ⟨LB'.mul _ (pointBC' e he x) (pointBC' e he y),
        invariant_mul hA₂ ((Φ e he hact t) x).2 ((Φ e he hact t) y).2⟩) = LB'.mul _ (pointBC' e he
          x) (pointBC' e he y) :=
      congrArg Subtype.val ((Φ e he hact t).apply_symm_apply _)
    rw [hnat, hmul, LB'.mul_natural, ← hnat, ← hnat]
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.pointBC'_mul
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Descended
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  {A : DescentAction (sMap R R') g'} {LB' : RelativeGroupLaw R' g'}
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
variable [Module.FaithfullyFlat R R']
  (hact : pullback.map (pullback.snd g (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R') (sMap R
    R')
        e.hom (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, he])
        (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
      (DescentAction.canonical (sMap R R') g).act ≫ e.hom)
  (hA₂ : MulCompatible A LB')
theorem pointBC'_mul {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R)) (x y : SchemeHomOver t g) :
    pointBC' e he ((descendedLaw e he hact hA₂).mul t x y) = LB'.mul _ (pointBC' e he x) (pointBC' e
      he y)
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.pointBC'_one
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Descended
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  {A : DescentAction (sMap R R') g'} {LB' : RelativeGroupLaw R' g'}
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
variable [Module.FaithfullyFlat R R']
  (hact : pullback.map (pullback.snd g (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R') (sMap R
    R')
        e.hom (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, he])
        (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
      (DescentAction.canonical (sMap R R') g).act ≫ e.hom)
  (hA₂ : MulCompatible A LB')
theorem pointBC'_one {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R)) :
    pointBC' e he ((descendedLaw e he hact hA₂).one t) = LB'.one _
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.invariant_jY'
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Embedding
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g')
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
  (hact : pullback.map (pullback.snd g (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R') (sMap R
    R')
        e.hom (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, he])
        (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
      (DescentAction.canonical (sMap R R') g).act ≫ e.hom)
  (hA₁ : pullback.map (pullback.snd (X'.ι ≫ f) (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R')
    (sMap R R')
        jY'.1 (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, jY'.2])
        (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
      (DescentAction.canonical (sMap R R') (X'.ι ≫ f)).act ≫ jY'.1)
include hA₁ in
theorem invariant_jY' : Invariant A jY'
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.isPullback_pointBC
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Embedding
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g')
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
  (hact : pullback.map (pullback.snd g (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R') (sMap R
    R')
        e.hom (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, he])
        (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
      (DescentAction.canonical (sMap R R') g).act ≫ e.hom)
  (hA₁ : pullback.map (pullback.snd (X'.ι ≫ f) (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R')
    (sMap R R')
        jY'.1 (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, jY'.2])
        (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
      (DescentAction.canonical (sMap R R') (X'.ι ≫ f)).act ≫ jY'.1)
theorem isPullback_pointBC (jY : SchemeHomOver (X'.ι ≫ f) g) :
    IsPullback (pointBC g jY).1 (pullback.fst (X'.ι ≫ f) (sMap R R')) (pullback.fst g (sMap R R'))
      jY.1
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.pointBC'_comp
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Embedding
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g')
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
  (hact : pullback.map (pullback.snd g (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R') (sMap R
    R')
        e.hom (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, he])
        (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
      (DescentAction.canonical (sMap R R') g).act ≫ e.hom)
  (hA₁ : pullback.map (pullback.snd (X'.ι ≫ f) (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R')
    (sMap R R')
        jY'.1 (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, jY'.2])
        (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
      (DescentAction.canonical (sMap R R') (X'.ι ≫ f)).act ≫ jY'.1)
theorem pointBC'_comp (jY : SchemeHomOver (X'.ι ≫ f) g) (hjY : pointBC' e he jY = jY')
    {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)} (a : SchemeHomOver t (X'.ι ≫ f)) :
    pointBC' e he (NeronModelInfra.schemeHomOverComp a jY) =
      NeronModelInfra.schemeHomOverComp (pointBC (X'.ι ≫ f) a) jY'
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.exists_jY
Source context 12 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Embedding
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g')
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
  (hact : pullback.map (pullback.snd g (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R') (sMap R
    R')
        e.hom (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, he])
        (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
      (DescentAction.canonical (sMap R R') g).act ≫ e.hom)
  (hA₁ : pullback.map (pullback.snd (X'.ι ≫ f) (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R')
    (sMap R R')
        jY'.1 (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, jY'.2])
        (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
      (DescentAction.canonical (sMap R R') (X'.ι ≫ f)).act ≫ jY'.1)
variable [Module.FaithfullyFlat R R']
include hact hA₁ in
theorem exists_jY : ∃ jY : SchemeHomOver (X'.ι ≫ f) g, pointBC' e he jY = jY'
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.isOpenImmersion_jY
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Embedding
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (A : DescentAction (sMap R R') g')
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
  (hact : pullback.map (pullback.snd g (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R') (sMap R
    R')
        e.hom (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, he])
        (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
      (DescentAction.canonical (sMap R R') g).act ≫ e.hom)
  (hA₁ : pullback.map (pullback.snd (X'.ι ≫ f) (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R')
    (sMap R R')
        jY'.1 (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, jY'.2])
        (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
      (DescentAction.canonical (sMap R R') (X'.ι ≫ f)).act ≫ jY'.1)
variable [Module.FaithfullyFlat R R']
theorem isOpenImmersion_jY [IsOpenImmersion jY'.1] (jY : SchemeHomOver (X'.ι ≫ f) g)
    (hjY : pointBC' e he jY = jY') : IsOpenImmersion jY.1
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.pointBC_eq_baseChangePointOfBase
Source context 12 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Restrict
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  {A : DescentAction (sMap R R') g'} {LB' : RelativeGroupLaw R' g'}
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
  (W : (pullback f f).Opens) (m : SchemeHomOver (W.ι ≫ pullback.fst f f ≫ f) f)
  (X' : X.Opens) (U : (pullback f f).Opens) (hUW : U ≤ W)
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
  (hres' : ∀ {T : Scheme.{u}} (t' : T ⟶ Spec (CommRingCat.of R'))
      (w : SchemeHomOver (t' ≫ sMap R R') (U.ι ≫ pullback.fst f f ≫ f))
      (a b c : SchemeHomOver (t' ≫ sMap R R') (X'.ι ≫ f)),
    a.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.fst f f → b.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.snd f f →
    c.1 ≫ X'.ι = w.1 ≫ (pullback f f).homOfLE hUW ≫ m.1 →
    NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase (sMap R R') c) jY' =
      LB'.mul t' (NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase (sMap R
        R') a) jY')
        (NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase (sMap R R') b)
          jY'))
variable [Module.FaithfullyFlat R R']
  (hact : pullback.map (pullback.snd g (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R') (sMap R
    R')
        e.hom (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, he])
        (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
      (DescentAction.canonical (sMap R R') g).act ≫ e.hom)
  (hA₂ : MulCompatible A LB')
omit [Module.FaithfullyFlat R R'] in
theorem pointBC_eq_baseChangePointOfBase {Y : Scheme.{u}} {y : Y ⟶ Spec (CommRingCat.of R)}
    {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of R)} (a : SchemeHomOver t y) :
    pointBC y a = RelativeGroupLaw.baseChangePointOfBase (sMap R R')
      (⟨pullback.fst t (sMap R R') ≫ a.1, by rw [Category.assoc, a.2, pullback.condition]⟩ :
        SchemeHomOver (pullback.snd t (sMap R R') ≫ sMap R R') y) := by
  apply Subtype.ext
  apply pullback.hom_ext
  · rw [pointBC_coe_fst, RelativeGroupLaw.baseChangePointOfBase_coe, pullback.lift_fst]
  · rw [pointBC_coe_snd, RelativeGroupLaw.baseChangePointOfBase_coe, pullback.lift_snd]
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.descended_restricts
Source context 12 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Restrict
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  {A : DescentAction (sMap R R') g'} {LB' : RelativeGroupLaw R' g'}
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
  (W : (pullback f f).Opens) (m : SchemeHomOver (W.ι ≫ pullback.fst f f ≫ f) f)
  (X' : X.Opens) (U : (pullback f f).Opens) (hUW : U ≤ W)
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
  (hres' : ∀ {T : Scheme.{u}} (t' : T ⟶ Spec (CommRingCat.of R'))
      (w : SchemeHomOver (t' ≫ sMap R R') (U.ι ≫ pullback.fst f f ≫ f))
      (a b c : SchemeHomOver (t' ≫ sMap R R') (X'.ι ≫ f)),
    a.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.fst f f → b.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.snd f f →
    c.1 ≫ X'.ι = w.1 ≫ (pullback f f).homOfLE hUW ≫ m.1 →
    NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase (sMap R R') c) jY' =
      LB'.mul t' (NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase (sMap R
        R') a) jY')
        (NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase (sMap R R') b)
          jY'))
variable [Module.FaithfullyFlat R R']
  (hact : pullback.map (pullback.snd g (sMap R R') ≫ sMap R R') (sMap R R') (g' ≫ sMap R R') (sMap R
    R')
        e.hom (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, he])
        (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
      (DescentAction.canonical (sMap R R') g).act ≫ e.hom)
  (hA₂ : MulCompatible A LB')
include hres' in
theorem descended_restricts (jY : SchemeHomOver (X'.ι ≫ f) g) (hjY : pointBC' e he jY = jY')
    {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R))
    (w : SchemeHomOver t (U.ι ≫ pullback.fst f f ≫ f)) (a b c : SchemeHomOver t (X'.ι ≫ f))
    (ha : a.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.fst f f) (hb : b.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.snd f
      f)
    (hc : c.1 ≫ X'.ι = w.1 ≫ (pullback f f).homOfLE hUW ≫ m.1) :
    NeronModelInfra.schemeHomOverComp c jY =
      (descendedLaw e he hact hA₂).mul t (NeronModelInfra.schemeHomOverComp a jY)
        (NeronModelInfra.schemeHomOverComp b jY)
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.exists_maximal_specializes
Source context 8 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
theorem exists_maximal_specializes {Y : Type u} [TopologicalSpace Y] [QuasiSober Y] [T0Space Y]
    {F : Set Y} (hF : IsClosed F) {b : Y} (hb : b ∈ F) :
    ∃ η ∈ F, η ⤳ b ∧ ∀ y ∈ F, y ⤳ η → y = η
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.sMap_base_eq_closedPoint_iff
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section ClosedPoint
variable (R R')
variable [IsLocalRing R] [IsLocalRing R'] [Module.Finite R R']
theorem sMap_base_eq_closedPoint_iff (p : ↥(Spec (CommRingCat.of R'))) :
    (sMap R R').base p = IsLocalRing.closedPoint R ↔ p = IsLocalRing.closedPoint R'
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.fst_mem_range_of_mem_range
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Density
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
  (jY : SchemeHomOver (X'.ι ≫ f) g) (hjY : pointBC' e he jY = jY')
include hjY in
theorem fst_mem_range_of_mem_range {b₁ : ↥(pullback g (sMap R R'))}
    (h : e.hom.base b₁ ∈ Set.range jY'.1.base) : (pullback.fst g (sMap R R')).base b₁ ∈ Set.range
      jY.1.base
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.g_fst_eq
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Density
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
  (jY : SchemeHomOver (X'.ι ≫ f) g) (hjY : pointBC' e he jY = jY')
variable [IsLocalRing R] [IsLocalRing R'] [Module.Finite R R'] [Module.FaithfullyFlat R R']
omit [IsLocalRing R] [IsLocalRing R'] [Module.Finite R R'] [Module.FaithfullyFlat R R'] in
include he in
theorem g_fst_eq (b₁ : ↥(pullback g (sMap R R'))) :
    g.base ((pullback.fst g (sMap R R')).base b₁) = (sMap R R').base (g'.base (e.hom.base b₁))
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.mem_range_jY_of_ne
Source context 12 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Density
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
  (jY : SchemeHomOver (X'.ι ≫ f) g) (hjY : pointBC' e he jY = jY')
variable [IsLocalRing R] [IsLocalRing R'] [Module.Finite R R'] [Module.FaithfullyFlat R R']
include he hjY in
theorem mem_range_jY_of_ne (hjY'₁ : ∀ b : B', g'.base b ≠ IsLocalRing.closedPoint R' → b ∈ Set.range
    jY'.1.base)
    (b : B) (hb : g.base b ≠ IsLocalRing.closedPoint R) : b ∈ Set.range jY.1.base
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.mem_range_jY_of_maximal
Source context 12 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Density
variable {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (e : pullback g (sMap R R') ≅ B') (he : e.hom ≫ g' = pullback.snd g (sMap R R'))
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
  (jY : SchemeHomOver (X'.ι ≫ f) g) (hjY : pointBC' e he jY = jY')
variable [IsLocalRing R] [IsLocalRing R'] [Module.Finite R R'] [Module.FaithfullyFlat R R']
include he hjY in
theorem mem_range_jY_of_maximal
    (hjY'₂ : ∀ b : B', g'.base b = IsLocalRing.closedPoint R' →
      (∀ y : B', y ⤳ b → g'.base y = IsLocalRing.closedPoint R' → y = b) → b ∈ Set.range jY'.1.base)
    (b : B) (hb : g.base b = IsLocalRing.closedPoint R)
    (hmax : ∀ y : B, y ⤳ b → g.base y = IsLocalRing.closedPoint R → y = b) : b ∈ Set.range jY.1.base
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.isPullback_map
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GenericFibre
variable {S₀ : Scheme.{u}} (ι : S₀ ⟶ Spec (CommRingCat.of R))
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
theorem isPullback_map (jY : SchemeHomOver (X'.ι ≫ f) g) :
    IsPullback
      (pullback.map (X'.ι ≫ f) ι g ι jY.1 (𝟙 _) (𝟙 _) (by rw [jY.2, Category.comp_id])
        (by rw [Category.comp_id, Category.id_comp]))
      (pullback.fst (X'.ι ≫ f) ι) (pullback.fst g ι) jY.1 := by
  refine IsPullback.of_right ?_ (pullback.lift_fst _ _ _) (IsPullback.of_hasPullback g ι).flip
  convert (IsPullback.of_hasPullback (X'.ι ≫ f) ι).flip using 1
  · exact (pullback.lift_snd _ _ _).trans (Category.comp_id _)
  · exact jY.2
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.isIso_map_of_forall_mem_range
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GenericFibre
variable {S₀ : Scheme.{u}} (ι : S₀ ⟶ Spec (CommRingCat.of R))
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
theorem isIso_map_of_forall_mem_range (jY : SchemeHomOver (X'.ι ≫ f) g) [IsOpenImmersion jY.1]
    (hdense : ∀ b : B, g.base b ∈ Set.range ι.base → b ∈ Set.range jY.1.base) :
    IsIso (pullback.map (X'.ι ≫ f) ι g ι jY.1 (𝟙 _) (𝟙 _) (by rw [jY.2, Category.comp_id])
        (by rw [Category.comp_id, Category.id_comp])) := by
  have hP := isPullback_map ι f X' jY
  rw [isIso_iff_isOpenImmersion_and_surjective]
  refine ⟨MorphismProperty.of_isPullback (P := @IsOpenImmersion) hP.flip inferInstance, ⟨fun q =>
    ?_⟩⟩
  have hq : (pullback.fst g ι).base q ∈ Set.range jY.1.base := by
    apply hdense
    refine ⟨(pullback.snd g ι).base q, ?_⟩
    rw [← Scheme.Hom.comp_apply, ← pullback.condition, Scheme.Hom.comp_apply]
  have hrange : Set.range (hP.isoPullback.hom ≫ pullback.fst (pullback.fst g ι) jY.1).base =
      Set.range (pullback.map (X'.ι ≫ f) ι g ι jY.1 (𝟙 _) (𝟙 _) (by rw [jY.2, Category.comp_id])
        (by rw [Category.comp_id, Category.id_comp])).base := by
    rw [hP.isoPullback_hom_fst]
  have hq' : q ∈ Set.range (pullback.fst (pullback.fst g ι) jY.1).base := by
    rw [Scheme.Pullback.range_fst]
    exact hq
  obtain ⟨z, hz⟩ := hq'
  refine ⟨hP.isoPullback.inv.base z, ?_⟩
  have : (hP.isoPullback.inv ≫ pullback.map (X'.ι ≫ f) ι g ι jY.1 (𝟙 _) (𝟙 _) (by rw [jY.2,
    Category.comp_id])
      (by rw [Category.comp_id, Category.id_comp])) = pullback.fst (pullback.fst g ι) jY.1 := by
    rw [Iso.inv_comp_eq, hP.isoPullback_hom_fst]
  rw [← Scheme.Hom.comp_apply, this]
  exact hz
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.specGenericFibreInclusion_ne_closedPoint
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GenericIso
variable [IsDomain R] [IsDiscreteValuationRing R]
  (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
theorem specGenericFibreInclusion_ne_closedPoint (p : ↥(Spec (CommRingCat.of K))) :
    (specGenericFibreInclusion R K).base p ≠ IsLocalRing.closedPoint R
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.isIso_genericFibreRestrict_jY
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GenericIso
variable [IsDomain R] [IsDiscreteValuationRing R]
  (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
variable {K}
variable {XK : Scheme.{u}} {gK : XK ⟶ Spec (CommRingCat.of K)}
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
  (e : SchemeHomOver (pullback.snd f (specGenericFibreInclusion R K)) gK)
  (X' : X.Opens) (hX'₁ : ∀ x : X, f.base x ≠ IsLocalRing.closedPoint R → x ∈ X')
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (jY : SchemeHomOver (X'.ι ≫ f) g)
  (hjY₁ : ∀ b : B, g.base b ≠ IsLocalRing.closedPoint R → b ∈ Set.range jY.1.base)
include hjY₁ in
theorem isIso_genericFibreRestrict_jY [IsOpenImmersion jY.1] : IsIso (genericFibreRestrict R K g
    (X'.ι ≫ f) jY).1
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.isIso_genericFibreRestrict_incl
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GenericIso
variable [IsDomain R] [IsDiscreteValuationRing R]
  (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
variable {K}
variable {XK : Scheme.{u}} {gK : XK ⟶ Spec (CommRingCat.of K)}
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
  (e : SchemeHomOver (pullback.snd f (specGenericFibreInclusion R K)) gK)
  (X' : X.Opens) (hX'₁ : ∀ x : X, f.base x ≠ IsLocalRing.closedPoint R → x ∈ X')
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (jY : SchemeHomOver (X'.ι ≫ f) g)
  (hjY₁ : ∀ b : B, g.base b ≠ IsLocalRing.closedPoint R → b ∈ Set.range jY.1.base)
include hX'₁ in
theorem isIso_genericFibreRestrict_incl :
    IsIso (genericFibreRestrict R K f (X'.ι ≫ f) ⟨X'.ι, rfl⟩).1
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.ePrime

The generic-fibre comparison transported through the descended open chart.

Source context 12 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GenericIso
variable [IsDomain R] [IsDiscreteValuationRing R]
  (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
variable {K}
variable {XK : Scheme.{u}} {gK : XK ⟶ Spec (CommRingCat.of K)}
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
  (e : SchemeHomOver (pullback.snd f (specGenericFibreInclusion R K)) gK)
  (X' : X.Opens) (hX'₁ : ∀ x : X, f.base x ≠ IsLocalRing.closedPoint R → x ∈ X')
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (jY : SchemeHomOver (X'.ι ≫ f) g)
  (hjY₁ : ∀ b : B, g.base b ≠ IsLocalRing.closedPoint R → b ∈ Set.range jY.1.base)
def ePrime (hiso : IsIso (genericFibreRestrict R K g (X'.ι ≫ f) jY).1) :
    SchemeHomOver (pullback.snd g (specGenericFibreInclusion R K)) gK
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.ePrime_coe
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GenericIso
variable [IsDomain R] [IsDiscreteValuationRing R]
  (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
variable {K}
variable {XK : Scheme.{u}} {gK : XK ⟶ Spec (CommRingCat.of K)}
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
  (e : SchemeHomOver (pullback.snd f (specGenericFibreInclusion R K)) gK)
  (X' : X.Opens) (hX'₁ : ∀ x : X, f.base x ≠ IsLocalRing.closedPoint R → x ∈ X')
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (jY : SchemeHomOver (X'.ι ≫ f) g)
  (hjY₁ : ∀ b : B, g.base b ≠ IsLocalRing.closedPoint R → b ∈ Set.range jY.1.base)
omit [IsDomain R] [IsDiscreteValuationRing R] [IsFractionRing R K] in
theorem ePrime_coe (hiso : IsIso (genericFibreRestrict R K g (X'.ι ≫ f) jY).1) :
    (ePrime f e X' jY hiso).1 = inv (genericFibreRestrict R K g (X'.ι ≫ f) jY).1 ≫
      (genericFibreRestrict R K f (X'.ι ≫ f) ⟨X'.ι, rfl⟩).1 ≫ e.1
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.isIso_ePrime
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GenericIso
variable [IsDomain R] [IsDiscreteValuationRing R]
  (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
variable {K}
variable {XK : Scheme.{u}} {gK : XK ⟶ Spec (CommRingCat.of K)}
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
  (e : SchemeHomOver (pullback.snd f (specGenericFibreInclusion R K)) gK)
  (X' : X.Opens) (hX'₁ : ∀ x : X, f.base x ≠ IsLocalRing.closedPoint R → x ∈ X')
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (jY : SchemeHomOver (X'.ι ≫ f) g)
  (hjY₁ : ∀ b : B, g.base b ≠ IsLocalRing.closedPoint R → b ∈ Set.range jY.1.base)
include hX'₁ in
theorem isIso_ePrime [IsIso e.1] (hiso : IsIso (genericFibreRestrict R K g (X'.ι ≫ f) jY).1) :
    IsIso (ePrime f e X' jY hiso).1
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.ePrime_compat
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section GenericIso
variable [IsDomain R] [IsDiscreteValuationRing R]
  (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
variable {K}
variable {XK : Scheme.{u}} {gK : XK ⟶ Spec (CommRingCat.of K)}
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
  (e : SchemeHomOver (pullback.snd f (specGenericFibreInclusion R K)) gK)
  (X' : X.Opens) (hX'₁ : ∀ x : X, f.base x ≠ IsLocalRing.closedPoint R → x ∈ X')
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)}
  (jY : SchemeHomOver (X'.ι ≫ f) g)
  (hjY₁ : ∀ b : B, g.base b ≠ IsLocalRing.closedPoint R → b ∈ Set.range jY.1.base)
omit [IsDomain R] [IsDiscreteValuationRing R] [IsFractionRing R K] in
theorem ePrime_compat (hiso : IsIso (genericFibreRestrict R K g (X'.ι ≫ f) jY).1) :
    NeronModelInfra.schemeHomOverComp (genericFibreRestrict R K g (X'.ι ≫ f) jY) (ePrime f e X' jY
      hiso) =
      NeronModelInfra.schemeHomOverComp (genericFibreRestrict R K f (X'.ι ≫ f) ⟨X'.ι, rfl⟩) e
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.bcOfBase_comp
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Hhom
variable [IsDomain R] [IsDiscreteValuationRing R]
  {K : Type u} [Field K] [Algebra R K] [IsFractionRing R K]
omit [IsDomain R] [IsDiscreteValuationRing R] [IsFractionRing R K] in
theorem bcOfBase_comp {A₁ B₁ : Scheme.{u}} {f₁ : A₁ ⟶ Spec (CommRingCat.of R)} {g₁ : B₁ ⟶ Spec
    (CommRingCat.of R)}
    (φ : SchemeHomOver g₁ f₁) {T : Scheme.{u}} {t : T ⟶ Spec (CommRingCat.of K)}
    (y : SchemeHomOver (t ≫ specGenericFibreInclusion R K) g₁) :
    RelativeGroupLaw.baseChangePointOfBase (specGenericFibreInclusion R K)
      (NeronModelInfra.schemeHomOverComp y φ) =
      NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase
        (specGenericFibreInclusion R K) y)
        (genericFibreRestrict R K f₁ g₁ φ)
AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints.ePrime_hom
Source context 12 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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.NOSProofs.EffectiveGroupDescent
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace DescentPoints
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
section Hhom
variable [IsDomain R] [IsDiscreteValuationRing R]
  {K : Type u} [Field K] [Algebra R K] [IsFractionRing R K]
variable {XK : Scheme.{u}} {gK : XK ⟶ Spec (CommRingCat.of K)} (LXK : RelativeGroupLaw K gK)
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
  (e : SchemeHomOver (pullback.snd f (specGenericFibreInclusion R K)) gK)
  (W : (pullback f f).Opens) (m : SchemeHomOver (W.ι ≫ pullback.fst f f ≫ f) f)
  (hmK : (NeronModelInfra.schemeHomOverComp
      (genericFibreRestrict R K f (W.ι ≫ pullback.fst f f ≫ f) m) e).1 =
    pullback.map (W.ι ≫ pullback.fst f f ≫ f) (specGenericFibreInclusion R K)
        (pullback.fst f f ≫ f) (specGenericFibreInclusion R K) W.ι (𝟙 _) (𝟙 _)
        (Category.comp_id _) ((Category.comp_id _).trans (Category.id_comp _).symm) ≫
      (LXK.mul (pullback.snd (pullback.fst f f ≫ f) (specGenericFibreInclusion R K))
        (NeronModelInfra.schemeHomOverComp
          (genericFibreRestrict R K f (pullback.fst f f ≫ f) ⟨pullback.fst f f, rfl⟩) e)
        (NeronModelInfra.schemeHomOverComp
          (genericFibreRestrict R K f (pullback.fst f f ≫ f)
            ⟨pullback.snd f f, pullback.condition.symm⟩) e)).1)
  (X' : X.Opens) (U : (pullback f f).Opens) (hUW : U ≤ W)
  (hU₁ : ∀ q : ↑(pullback f f), (pullback.fst f f ≫ f).base q ≠ IsLocalRing.closedPoint R → q ∈ U)
  (hU₂ : ∀ (q : ↑(pullback f f)) (hq : q ∈ U), (pullback.fst f f).base q ∈ X' ∧ (pullback.snd f
    f).base q ∈ X' ∧
    m.1.base ⟨q, hUW hq⟩ ∈ X')
  {B : Scheme.{u}} {g : B ⟶ Spec (CommRingCat.of R)} (LB : RelativeGroupLaw R g)
  (jY : SchemeHomOver (X'.ι ≫ f) g)
  (hres : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R))
      (w : SchemeHomOver t (U.ι ≫ pullback.fst f f ≫ f)) (a b c : SchemeHomOver t (X'.ι ≫ f)),
    a.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.fst f f → b.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.snd f f →
    c.1 ≫ X'.ι = w.1 ≫ (pullback f f).homOfLE hUW ≫ m.1 →
    NeronModelInfra.schemeHomOverComp c jY =
      LB.mul t (NeronModelInfra.schemeHomOverComp a jY) (NeronModelInfra.schemeHomOverComp b jY))
  (hiso : IsIso (genericFibreRestrict R K g (X'.ι ≫ f) jY).1)
include hmK hU₁ hU₂ hres in
theorem ePrime_hom {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of K))
    (x y : SchemeHomOver t (pullback.snd g (specGenericFibreInclusion R K))) :
    NeronModelInfra.schemeHomOverComp ((LB.genericFibre K).mul t x y) (ePrime f e X' jY hiso) =
      LXK.mul t (NeronModelInfra.schemeHomOverComp x (ePrime f e X' jY hiso))
        (NeronModelInfra.schemeHomOverComp y (ePrime f e X' jY hiso))
NeronModelInfra.exists_groupLaw_of_effective_descent
Source context 6 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_effective_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion.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 NeronModelInfra
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry GoodReductionJacobian
open AbelianVarieties.NOSProofs.EffectiveGroupDescent
universe u
theorem exists_groupLaw_of_effective_descent
    {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
    (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
    {XK : Scheme.{u}} {gK : XK ⟶ Spec (CommRingCat.of K)} (LXK : RelativeGroupLaw K gK)
    {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
    [Smooth f] [IsSeparated f] [LocallyOfFiniteType f] [QuasiCompact f]
    (e : SchemeHomOver (pullback.snd f (specGenericFibreInclusion R K)) gK) [IsIso e.1]
    (W : (pullback f f).Opens) (m : SchemeHomOver (W.ι ≫ pullback.fst f f ≫ f) f)
    (hmK : (NeronModelInfra.schemeHomOverComp
        (genericFibreRestrict R K f (W.ι ≫ pullback.fst f f ≫ f) m) e).1 =
      pullback.map (W.ι ≫ pullback.fst f f ≫ f) (specGenericFibreInclusion R K)
          (pullback.fst f f ≫ f) (specGenericFibreInclusion R K) W.ι (𝟙 _) (𝟙 _)
          (Category.comp_id _) ((Category.comp_id _).trans (Category.id_comp _).symm) ≫
        (LXK.mul (pullback.snd (pullback.fst f f ≫ f) (specGenericFibreInclusion R K))
          (NeronModelInfra.schemeHomOverComp
            (genericFibreRestrict R K f (pullback.fst f f ≫ f) ⟨pullback.fst f f, rfl⟩) e)
          (NeronModelInfra.schemeHomOverComp
            (genericFibreRestrict R K f (pullback.fst f f ≫ f)
              ⟨pullback.snd f f, pullback.condition.symm⟩) e)).1)
    (X' : X.Opens) (U : (pullback f f).Opens) (hUW : U ≤ W)
    (hX'₁ : ∀ x : X, f.base x ≠ IsLocalRing.closedPoint R → x ∈ X')
    (hU₁ : ∀ q : ↑(pullback f f), (pullback.fst f f ≫ f).base q ≠ IsLocalRing.closedPoint R → q ∈ U)
    (hU₂ : ∀ (q : ↑(pullback f f)) (hq : q ∈ U), (pullback.fst f f).base q ∈ X' ∧ (pullback.snd f
      f).base q ∈ X' ∧
      m.1.base ⟨q, hUW hq⟩ ∈ X')
    (R' : Type u) [CommRing R'] [IsDomain R'] [IsDiscreteValuationRing R'] [Algebra R R']
    [Module.Finite R R'] [Algebra.Etale R R'] [Module.FaithfullyFlat R R']
    {B' : Scheme.{u}} (g' : B' ⟶ Spec (CommRingCat.of R')) (LB' : RelativeGroupLaw R' g')
    [Smooth g'] [IsSeparated g'] [LocallyOfFiniteType g'] [QuasiCompact g']
    (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (Spec.map (CommRingCat.ofHom (algebraMap R R'))))
      g') [IsOpenImmersion jY'.1]
    (hjY'₁ : ∀ b : B', g'.base b ≠ IsLocalRing.closedPoint R' → b ∈ Set.range jY'.1.base)
    (hjY'₂ : ∀ b : B', g'.base b = IsLocalRing.closedPoint R' →
      (∀ y : B', y ⤳ b → g'.base y = IsLocalRing.closedPoint R' → y = b) → b ∈ Set.range jY'.1.base)
    (hres' : ∀ {T : Scheme.{u}} (t' : T ⟶ Spec (CommRingCat.of R'))
        (w : SchemeHomOver (t' ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) (U.ι ≫
          pullback.fst f f ≫ f))
        (a b c : SchemeHomOver (t' ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) (X'.ι ≫ f)),
      a.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.fst f f → b.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.snd f f →
      c.1 ≫ X'.ι = w.1 ≫ (pullback f f).homOfLE hUW ≫ m.1 →
      NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase (Spec.map
        (CommRingCat.ofHom (algebraMap R R'))) c) jY' =
        LB'.mul t' (NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase
          (Spec.map (CommRingCat.ofHom (algebraMap R R'))) a) jY')
          (NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase (Spec.map
            (CommRingCat.ofHom (algebraMap R R'))) b) jY'))
    (A : DescentAction (Spec.map (CommRingCat.ofHom (algebraMap R R'))) g')
    (hA₁ :
      pullback.map (pullback.snd (X'.ι ≫ f) (Spec.map (CommRingCat.ofHom (algebraMap R R'))) ≫
            Spec.map (CommRingCat.ofHom (algebraMap R R')))
          (Spec.map (CommRingCat.ofHom (algebraMap R R')))
          (g' ≫ Spec.map (CommRingCat.ofHom (algebraMap R R'))) (Spec.map (CommRingCat.ofHom
            (algebraMap R R')))
          jY'.1 (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, jY'.2])
          (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
        (DescentAction.canonical (Spec.map (CommRingCat.ofHom (algebraMap R R'))) (X'.ι ≫ f)).act ≫
          jY'.1)
    (hA₂ : ∀ {T : Scheme.{u}} (τ t' : T ⟶ Spec (CommRingCat.of R'))
          (hτ : t' ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')) = τ ≫ Spec.map
            (CommRingCat.ofHom (algebraMap R R')))
          (x y : SchemeHomOver t' g'),
        NeronModelInfra.schemeHomOverComp
            (RelativeGroupLaw.baseChangePointOfBase (Spec.map (CommRingCat.ofHom (algebraMap R R')))
              (⟨(LB'.mul t' x y).1, by rw [reassoc_of% (LB'.mul t' x y).2, hτ]⟩ :
                SchemeHomOver (τ ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')))
                  (g' ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')))))
            (⟨A.act, A.act_comp⟩ : SchemeHomOver
              (pullback.snd (g' ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')))
                (Spec.map (CommRingCat.ofHom (algebraMap R R')))) g') =
          LB'.mul τ
            (NeronModelInfra.schemeHomOverComp
              (RelativeGroupLaw.baseChangePointOfBase (Spec.map (CommRingCat.ofHom (algebraMap R
                R')))
                (⟨x.1, by rw [reassoc_of% x.2, hτ]⟩ :
                  SchemeHomOver (τ ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')))
                    (g' ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')))))
              (⟨A.act, A.act_comp⟩ : SchemeHomOver
                (pullback.snd (g' ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')))
                  (Spec.map (CommRingCat.ofHom (algebraMap R R')))) g'))
            (NeronModelInfra.schemeHomOverComp
              (RelativeGroupLaw.baseChangePointOfBase (Spec.map (CommRingCat.ofHom (algebraMap R
                R')))
                (⟨y.1, by rw [reassoc_of% y.2, hτ]⟩ :
                  SchemeHomOver (τ ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')))
                    (g' ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')))))
              (⟨A.act, A.act_comp⟩ : SchemeHomOver
                (pullback.snd (g' ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')))
                  (Spec.map (CommRingCat.ofHom (algebraMap R R')))) g')))
    (hA : A.Effective) :
    ∃ (B : Scheme.{u}) (g : B ⟶ Spec (CommRingCat.of R)) (LB : RelativeGroupLaw R g)
      (jY : SchemeHomOver (X'.ι ≫ f) g) (e' : SchemeHomOver (pullback.snd g
        (specGenericFibreInclusion R K)) gK),
      Smooth g ∧ IsSeparated g ∧ LocallyOfFiniteType g ∧ QuasiCompact g ∧
      IsOpenImmersion jY.1 ∧
      (∀ b : B, g.base b ≠ IsLocalRing.closedPoint R → b ∈ Set.range jY.1.base) ∧
      (∀ b : B, g.base b = IsLocalRing.closedPoint R →
        (∀ y : B, y ⤳ b → g.base y = IsLocalRing.closedPoint R → y = b) → b ∈ Set.range jY.1.base) ∧
      IsIso e'.1 ∧
      (∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of K))
          (x y : SchemeHomOver t (pullback.snd g (specGenericFibreInclusion R K))),
        NeronModelInfra.schemeHomOverComp ((LB.genericFibre K).mul t x y) e' =
          LXK.mul t (NeronModelInfra.schemeHomOverComp x e') (NeronModelInfra.schemeHomOverComp y
            e')) ∧
      NeronModelInfra.schemeHomOverComp (genericFibreRestrict R K g (X'.ι ≫ f) jY) e' =
        NeronModelInfra.schemeHomOverComp (genericFibreRestrict R K f (X'.ι ≫ f) ⟨X'.ι, rfl⟩) e ∧
      (∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R))
          (w : SchemeHomOver t (U.ι ≫ pullback.fst f f ≫ f)) (a b c : SchemeHomOver t (X'.ι ≫ f)),
        a.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.fst f f → b.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.snd f f →
        c.1 ≫ X'.ι = w.1 ≫ (pullback f f).homOfLE hUW ≫ m.1 →
        NeronModelInfra.schemeHomOverComp c jY =
          LB.mul t (NeronModelInfra.schemeHomOverComp a jY) (NeronModelInfra.schemeHomOverComp b
            jY)) := by
  obtain ⟨B, g, eB, heB, hact⟩ := hA
  have hA₂' : DescentPoints.MulCompatible A LB' := fun τ t' hτ x y => hA₂ τ t' hτ x y
  let LB : RelativeGroupLaw R g := DescentPoints.descendedLaw eB heB hact hA₂'
  obtain ⟨jY, hjY⟩ := DescentPoints.exists_jY A eB heB f X' jY' hact hA₁
  have hprops := DescentPoints.props_descend R R' g g' eB heB
  have hopen : IsOpenImmersion jY.1 := DescentPoints.isOpenImmersion_jY eB heB f X' jY' jY hjY
  have hres : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R))
      (w : SchemeHomOver t (U.ι ≫ pullback.fst f f ≫ f)) (a b c : SchemeHomOver t (X'.ι ≫ f)),
      a.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.fst f f → b.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.snd f f →
      c.1 ≫ X'.ι = w.1 ≫ (pullback f f).homOfLE hUW ≫ m.1 →
      NeronModelInfra.schemeHomOverComp c jY =
        LB.mul t (NeronModelInfra.schemeHomOverComp a jY) (NeronModelInfra.schemeHomOverComp b jY)
          :=
    fun t w a b c ha hb hc =>
      DescentPoints.descended_restricts eB heB f W m X' U hUW jY' hres' hact hA₂' jY hjY t w a b c
        ha hb hc
  have hd₁ : ∀ b : B, g.base b ≠ IsLocalRing.closedPoint R → b ∈ Set.range jY.1.base :=
    DescentPoints.mem_range_jY_of_ne eB heB f X' jY' jY hjY hjY'₁
  have hd₂ : ∀ b : B, g.base b = IsLocalRing.closedPoint R →
      (∀ y : B, y ⤳ b → g.base y = IsLocalRing.closedPoint R → y = b) → b ∈ Set.range jY.1.base :=
    DescentPoints.mem_range_jY_of_maximal eB heB f X' jY' jY hjY hjY'₂
  have hiso : IsIso (genericFibreRestrict R K g (X'.ι ≫ f) jY).1 :=
    DescentPoints.isIso_genericFibreRestrict_jY f X' jY hd₁
  refine ⟨B, g, LB, jY, DescentPoints.ePrime f e X' jY hiso, hprops.1, hprops.2.1, hprops.2.2.1,
    hprops.2.2.2,
    hopen, hd₁, hd₂, DescentPoints.isIso_ePrime f e X' hX'₁ jY hiso, ?_, DescentPoints.ePrime_compat
      f e X' jY hiso,
    hres⟩
  intro T t x y
  exact DescentPoints.ePrime_hom LXK f e W m hmK X' U hUW hU₁ hU₂ LB jY hres hiso t x y
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.pullbackMap_eq_genericFibreRestrict
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section WeilExtension
variable {R : Type u} [CommRing R] (K : Type u) [Field K] [Algebra R K]
theorem pullbackMap_eq_genericFibreRestrict {X Y : Scheme.{u}}
    (f : X ⟶ Spec (CommRingCat.of R)) (g : Y ⟶ Spec (CommRingCat.of R)) (φ : Y ⟶ X) (hφ : φ ≫ f = g)
    (h₁ : g ≫ 𝟙 (Spec (CommRingCat.of R)) = φ ≫ f)
    (h₂ : specGenericFibreInclusion R K ≫ 𝟙 (Spec (CommRingCat.of R)) =
      𝟙 (Spec (CommRingCat.of K)) ≫ specGenericFibreInclusion R K) :
    pullback.map g (specGenericFibreInclusion R K) f (specGenericFibreInclusion R K) φ
        (𝟙 (Spec (CommRingCat.of K))) (𝟙 (Spec (CommRingCat.of R))) h₁ h₂ =
      (genericFibreRestrict R K f g ⟨φ, hφ⟩).1
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.base_ne_closedPoint
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section WeilExtension
variable {R : Type u} [CommRing R] (K : Type u) [Field K] [Algebra R K]
variable [IsDomain R] [IsDiscreteValuationRing R] [IsFractionRing R K]
theorem base_ne_closedPoint {S : Scheme.{u}} (s : S ⟶ Spec (CommRingCat.of K)) (p : S) :
    (s ≫ specGenericFibreInclusion R K).base p ≠ IsLocalRing.closedPoint R
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.exists_extension
Source context 12 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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section WeilExtension
variable {R : Type u} [CommRing R] (K : Type u) [Field K] [Algebra R K]
variable [IsDomain R] [IsDiscreteValuationRing R] [IsFractionRing R K]
variable {B₁ B₂ Y : Scheme.{u}} {g₁ : B₁ ⟶ Spec (CommRingCat.of R)} {g₂ : B₂ ⟶ Spec (CommRingCat.of
    R)}
theorem exists_extension [Smooth g₁] [QuasiCompact g₁] [Smooth g₂] [IsSeparated g₂]
    (L₂ : RelativeGroupLaw R g₂)
    {y : Y ⟶ Spec (CommRingCat.of R)} (σ₁ : SchemeHomOver y g₁) (σ₂ : SchemeHomOver y g₂)
    [IsOpenImmersion σ₁.1]
    (hσ₁ : ∀ b : B₁, g₁.base b = IsLocalRing.closedPoint R →
      (∀ b' : B₁, b' ⤳ b → g₁.base b' = IsLocalRing.closedPoint R → b' = b) → b ∈ Set.range
        σ₁.1.base)
    (φK : SchemeHomOver (pullback.snd g₁ (specGenericFibreInclusion R K))
      (pullback.snd g₂ (specGenericFibreInclusion R K)))
    (hcompat : NeronModelInfra.schemeHomOverComp (genericFibreRestrict R K g₁ y σ₁) φK =
      genericFibreRestrict R K g₂ y σ₂) :
    ∃ φ : SchemeHomOver g₁ g₂, genericFibreRestrict R K g₂ g₁ φ = φK
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.etale_sMap
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Base
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
instance etale_sMap [Algebra.Etale R R'] : Etale (sMap R R')
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.ne_closedPoint_of_comp_eq
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Base
variable (R : Type u) [CommRing R] (R' : Type u) [CommRing R'] [Algebra R R']
variable {R R'}
theorem ne_closedPoint_of_comp_eq [IsLocalRing R] [IsLocalRing R'] [Module.Finite R R']
    {T : Scheme.{u}} {τ t' : T ⟶ Spec (CommRingCat.of R')}
    (hτ : t' ≫ sMap R R' = τ ≫ sMap R R') (p : T) (h : τ.base p ≠ IsLocalRing.closedPoint R') :
    t'.base p ≠ IsLocalRing.closedPoint R'
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.sigma1

The first base change of the open chart.

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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
def sigma1 :
    SchemeHomOver (pullback.snd (pullback.snd (X'.ι ≫ f) (sMap R R') ≫ sMap R R') (sMap R R'))
      (pullback.snd (g' ≫ sMap R R') (sMap R R'))
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.sigma2

The conjugate open chart under the base-change interchange.

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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
def sigma2 :
    SchemeHomOver (pullback.snd (pullback.snd (X'.ι ≫ f) (sMap R R') ≫ sMap R R') (sMap R R')) g'
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.sigma1_fst
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
theorem sigma1_fst : (sigma1 f X' jY').1 ≫ pullback.fst _ _ = pullback.fst _ _ ≫ jY'.1
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.sigma1_snd
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
theorem sigma1_snd : (sigma1 f X' jY').1 ≫ pullback.snd _ _ = pullback.snd _ _
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.sigma2_coe
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
theorem sigma2_coe : (sigma2 f X' jY').1 = DescentAction.flipMap (sMap R R') (X'.ι ≫ f) ≫ jY'.1
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.isPullback_sigma1
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
theorem isPullback_sigma1 :
    IsPullback (sigma1 f X' jY').1 (pullback.fst _ _) (pullback.fst (g' ≫ sMap R R') (sMap R R'))
      jY'.1
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.isOpenImmersion_sigma1
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
instance isOpenImmersion_sigma1 [IsOpenImmersion jY'.1] : IsOpenImmersion (sigma1 f X' jY').1
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.mem_range_sigma1_iff
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
theorem mem_range_sigma1_iff (q : ↑(pullback (g' ≫ sMap R R') (sMap R R'))) :
    q ∈ Set.range (sigma1 f X' jY').1.base ↔
      (pullback.fst (g' ≫ sMap R R') (sMap R R')).base q ∈ Set.range jY'.1.base
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.mem_range_sigma1_of_ne
Source context 12 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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
section Density
variable [IsLocalRing R] [IsLocalRing R'] [Module.Finite R R']
theorem mem_range_sigma1_of_ne
    (hjY'₁ : ∀ b : B', g'.base b ≠ IsLocalRing.closedPoint R' → b ∈ Set.range jY'.1.base)
    (q : ↑(pullback (g' ≫ sMap R R') (sMap R R')))
    (hq : (pullback.snd (g' ≫ sMap R R') (sMap R R')).base q ≠ IsLocalRing.closedPoint R') :
    q ∈ Set.range (sigma1 f X' jY').1.base
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.mem_range_sigma1_of_maximal
Source context 12 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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
section Density
variable [IsLocalRing R] [IsLocalRing R'] [Module.Finite R R']
theorem mem_range_sigma1_of_maximal [Flat (sMap R R')]
    (hjY'₂ : ∀ b : B', g'.base b = IsLocalRing.closedPoint R' →
      (∀ y : B', y ⤳ b → g'.base y = IsLocalRing.closedPoint R' → y = b) → b ∈ Set.range jY'.1.base)
    (b : ↑(pullback (g' ≫ sMap R R') (sMap R R')))
    (hb : (pullback.snd (g' ≫ sMap R R') (sMap R R')).base b = IsLocalRing.closedPoint R')
    (hmax : ∀ b' : ↑(pullback (g' ≫ sMap R R') (sMap R R')), b' ⤳ b →
      (pullback.snd (g' ≫ sMap R R') (sMap R R')).base b' = IsLocalRing.closedPoint R' → b' = b) :
    b ∈ Set.range (sigma1 f X' jY').1.base
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.actP

Apply the descent action to a relative point.

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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
def actP (act : pullback (g' ≫ sMap R R') (sMap R R') ⟶ B')
    (hact : act ≫ g' = pullback.snd (g' ≫ sMap R R') (sMap R R'))
    {T : Scheme.{u}} (τ t' : T ⟶ Spec (CommRingCat.of R')) (hτ : t' ≫ sMap R R' = τ ≫ sMap R R')
    (x : SchemeHomOver t' g') : SchemeHomOver τ g'
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.actP_coe
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
theorem actP_coe (act : pullback (g' ≫ sMap R R') (sMap R R') ⟶ B')
    (hact : act ≫ g' = pullback.snd (g' ≫ sMap R R') (sMap R R'))
    {T : Scheme.{u}} (τ t' : T ⟶ Spec (CommRingCat.of R')) (hτ : t' ≫ sMap R R' = τ ≫ sMap R R')
    (x : SchemeHomOver t' g') :
    (actP act hact τ t' hτ x).1 = pullback.lift x.1 τ (by rw [reassoc_of% x.2, hτ]) ≫ act :=
  rfl
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.comp_actP
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
theorem comp_actP (act : pullback (g' ≫ sMap R R') (sMap R R') ⟶ B')
    (hact : act ≫ g' = pullback.snd (g' ≫ sMap R R') (sMap R R'))
    {T T₁ : Scheme.{u}} (ψ : T₁ ⟶ T) (τ t' : T ⟶ Spec (CommRingCat.of R'))
    (hτ : t' ≫ sMap R R' = τ ≫ sMap R R') (τ₁ t'₁ : T₁ ⟶ Spec (CommRingCat.of R'))
    (hψτ : ψ ≫ τ = τ₁) (hψt : ψ ≫ t' = t'₁) (hτ₁ : t'₁ ≫ sMap R R' = τ₁ ≫ sMap R R')
    (x : SchemeHomOver t' g') :
    GoodReductionJacobian.schemeHomOverComp ψ hψτ (actP act hact τ t' hτ x) =
      actP act hact τ₁ t'₁ hτ₁ (GoodReductionJacobian.schemeHomOverComp ψ hψt x)
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.xa

The point supplied by the base-changed open chart.

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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
def xa {T : Scheme.{u}} (t' : T ⟶ Spec (CommRingCat.of R'))
    (a : SchemeHomOver (t' ≫ sMap R R') (X'.ι ≫ f)) : SchemeHomOver t' g'
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.xa_coe
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
theorem xa_coe {T : Scheme.{u}} (t' : T ⟶ Spec (CommRingCat.of R'))
    (a : SchemeHomOver (t' ≫ sMap R R') (X'.ι ≫ f)) :
    (xa f X' jY' t' a).1 = pullback.lift a.1 t' a.2 ≫ jY'.1
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.rebase

A relative point with its structural map rewritten.

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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
def rebase {Z : Scheme.{u}} {z : Z ⟶ Spec (CommRingCat.of R)} {T : Scheme.{u}}
    {τ t' : T ⟶ Spec (CommRingCat.of R')} (hτ : t' ≫ sMap R R' = τ ≫ sMap R R')
    (a : SchemeHomOver (t' ≫ sMap R R') z) : SchemeHomOver (τ ≫ sMap R R') z
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.act_xa
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
theorem act_xa (act : pullback (g' ≫ sMap R R') (sMap R R') ⟶ B')
    (hact : act ≫ g' = pullback.snd (g' ≫ sMap R R') (sMap R R'))
    (hP1 : (sigma1 f X' jY').1 ≫ act = (sigma2 f X' jY').1)
    {T : Scheme.{u}} (τ t' : T ⟶ Spec (CommRingCat.of R')) (hτ : t' ≫ sMap R R' = τ ≫ sMap R R')
    (a : SchemeHomOver (t' ≫ sMap R R') (X'.ι ≫ f)) :
    actP act hact τ t' hτ (xa f X' jY' t' a) = xa f X' jY' τ (rebase hτ a)
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.exists_eq_xa
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
section Lift
variable [IsLocalRing R] [IsLocalRing R'] [Module.Finite R R'] [IsOpenImmersion jY'.1]
omit [IsLocalRing R] [Module.Finite R R'] in
theorem exists_eq_xa
    (hjY'₁ : ∀ b : B', g'.base b ≠ IsLocalRing.closedPoint R' → b ∈ Set.range jY'.1.base)
    {T : Scheme.{u}} (t' : T ⟶ Spec (CommRingCat.of R')) (x : SchemeHomOver t' g')
    (hgen : ∀ p : T, t'.base p ≠ IsLocalRing.closedPoint R') :
    ∃ a : SchemeHomOver (t' ≫ sMap R R') (X'.ι ≫ f), x = xa f X' jY' t' a
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.exists_pair_prod
Source context 12 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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
section Pair
variable (W : (pullback f f).Opens) (m : SchemeHomOver (W.ι ≫ pullback.fst f f ≫ f) f)
  (U : (pullback f f).Opens) (hUW : U ≤ W)
theorem exists_pair_prod [IsLocalRing R]
    (hU₁ : ∀ q : ↑(pullback f f), (pullback.fst f f ≫ f).base q ≠ IsLocalRing.closedPoint R → q ∈ U)
    (hU₂ : ∀ (q : ↑(pullback f f)) (hq : q ∈ U), (pullback.fst f f).base q ∈ X' ∧
      (pullback.snd f f).base q ∈ X' ∧ m.1.base ⟨q, hUW hq⟩ ∈ X')
    {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R)) (hgen : ∀ p : T, t.base p ≠
      IsLocalRing.closedPoint R)
    (a b : SchemeHomOver t (X'.ι ≫ f)) :
    ∃ (w : SchemeHomOver t (U.ι ≫ pullback.fst f f ≫ f)) (c : SchemeHomOver t (X'.ι ≫ f)),
      a.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.fst f f ∧ b.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.snd f f ∧
      c.1 ≫ X'.ι = w.1 ≫ (pullback f f).homOfLE hUW ≫ m.1
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.fst_mem_range_sigma1
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
section DVR
variable [IsDomain R] [IsDiscreteValuationRing R] [IsDomain R'] [IsDiscreteValuationRing R']
  [Module.Finite R R'] [Algebra.Etale R R']
  (K' : Type u) [Field K'] [Algebra R' K'] [IsFractionRing R' K']
  [Smooth f] [Smooth g'] [IsSeparated g'] [QuasiCompact g'] [IsOpenImmersion jY'.1]
  (LB' : RelativeGroupLaw R' g')
omit [Algebra.Etale R R'] [Smooth f] [Smooth g'] [IsSeparated g']
  [QuasiCompact g'] [IsOpenImmersion jY'.1] in
theorem fst_mem_range_sigma1
    (hjY'₁ : ∀ b : B', g'.base b ≠ IsLocalRing.closedPoint R' → b ∈ Set.range jY'.1.base)
    (p : ↑(pullback (pullback.snd (g' ≫ sMap R R') (sMap R R')) (specGenericFibreInclusion R' K')))
      :
    (pullback.fst (pullback.snd (g' ≫ sMap R R') (sMap R R')) (specGenericFibreInclusion R'
      K')).base p ∈
      Set.range (sigma1 f X' jY').1.base
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.exists_phiK
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
section DVR
variable [IsDomain R] [IsDiscreteValuationRing R] [IsDomain R'] [IsDiscreteValuationRing R']
  [Module.Finite R R'] [Algebra.Etale R R']
  (K' : Type u) [Field K'] [Algebra R' K'] [IsFractionRing R' K']
  [Smooth f] [Smooth g'] [IsSeparated g'] [QuasiCompact g'] [IsOpenImmersion jY'.1]
  (LB' : RelativeGroupLaw R' g')
omit [Algebra.Etale R R'] [Smooth f] [Smooth g'] [IsSeparated g'] [QuasiCompact g'] in
theorem exists_phiK
    (hjY'₁ : ∀ b : B', g'.base b ≠ IsLocalRing.closedPoint R' → b ∈ Set.range jY'.1.base) :
    ∃ φK : SchemeHomOver (pullback.snd (pullback.snd (g' ≫ sMap R R') (sMap R R'))
      (specGenericFibreInclusion R' K'))
        (pullback.snd g' (specGenericFibreInclusion R' K')),
      NeronModelInfra.schemeHomOverComp
          (genericFibreRestrict R' K' (pullback.snd (g' ≫ sMap R R') (sMap R R')) _ (sigma1 f X'
            jY')) φK =
        genericFibreRestrict R' K' g' _ (sigma2 f X' jY')
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.exists_act
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
section DVR
variable [IsDomain R] [IsDiscreteValuationRing R] [IsDomain R'] [IsDiscreteValuationRing R']
  [Module.Finite R R'] [Algebra.Etale R R']
  (K' : Type u) [Field K'] [Algebra R' K'] [IsFractionRing R' K']
  [Smooth f] [Smooth g'] [IsSeparated g'] [QuasiCompact g'] [IsOpenImmersion jY'.1]
  (LB' : RelativeGroupLaw R' g')
include K' LB' in
theorem exists_act
    (hjY'₁ : ∀ b : B', g'.base b ≠ IsLocalRing.closedPoint R' → b ∈ Set.range jY'.1.base)
    (hjY'₂ : ∀ b : B', g'.base b = IsLocalRing.closedPoint R' →
      (∀ y : B', y ⤳ b → g'.base y = IsLocalRing.closedPoint R' → y = b) → b ∈ Set.range jY'.1.base)
        :
    ∃ Φ : SchemeHomOver (pullback.snd (g' ≫ sMap R R') (sMap R R')) g',
      (sigma1 f X' jY').1 ≫ Φ.1 = (sigma2 f X' jY').1
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.unit_act
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
section DVR
variable [IsDomain R] [IsDiscreteValuationRing R] [IsDomain R'] [IsDiscreteValuationRing R']
  [Module.Finite R R'] [Algebra.Etale R R']
  (K' : Type u) [Field K'] [Algebra R' K'] [IsFractionRing R' K']
  [Smooth f] [Smooth g'] [IsSeparated g'] [QuasiCompact g'] [IsOpenImmersion jY'.1]
  (LB' : RelativeGroupLaw R' g')
include K' in
omit [Algebra.Etale R R'] [Smooth f] [QuasiCompact g'] in
omit [IsDomain R] [IsDiscreteValuationRing R] [Module.Finite R R'] in
theorem unit_act
    (hjY'₁ : ∀ b : B', g'.base b ≠ IsLocalRing.closedPoint R' → b ∈ Set.range jY'.1.base)
    (act : pullback (g' ≫ sMap R R') (sMap R R') ⟶ B')
    (hact : act ≫ g' = pullback.snd (g' ≫ sMap R R') (sMap R R'))
    (hP1 : (sigma1 f X' jY').1 ≫ act = (sigma2 f X' jY').1) :
    DescentAction.unitMap (sMap R R') g' ≫ act = 𝟙 B'
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.comp_actMap_act
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
section DVR
variable [IsDomain R] [IsDiscreteValuationRing R] [IsDomain R'] [IsDiscreteValuationRing R']
  [Module.Finite R R'] [Algebra.Etale R R']
  (K' : Type u) [Field K'] [Algebra R' K'] [IsFractionRing R' K']
  [Smooth f] [Smooth g'] [IsSeparated g'] [QuasiCompact g'] [IsOpenImmersion jY'.1]
  (LB' : RelativeGroupLaw R' g')
omit [Algebra.Etale R R'] [Smooth f] [Smooth g'] [IsSeparated g'] [QuasiCompact g'] in
theorem comp_actMap_act
    (hjY'₁ : ∀ b : B', g'.base b ≠ IsLocalRing.closedPoint R' → b ∈ Set.range jY'.1.base)
    (act : pullback (g' ≫ sMap R R') (sMap R R') ⟶ B')
    (hact : act ≫ g' = pullback.snd (g' ≫ sMap R R') (sMap R R'))
    (hP1 : (sigma1 f X' jY').1 ≫ act = (sigma2 f X' jY').1)
    {T : Scheme.{u}}
    (u : T ⟶ pullback (pullback.snd (g' ≫ sMap R R') (sMap R R') ≫ sMap R R') (sMap R R'))
    (hu : ∀ p : T, (u ≫ pullback.snd (pullback.snd (g' ≫ sMap R R') (sMap R R') ≫ sMap R R') (sMap R
      R')).base p ≠
      IsLocalRing.closedPoint R') :
    u ≫ DescentAction.actMap act hact ≫ act = u ≫ DescentAction.proj₁₃ (sMap R R') g' ≫ act
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.trans_act
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
section DVR
variable [IsDomain R] [IsDiscreteValuationRing R] [IsDomain R'] [IsDiscreteValuationRing R']
  [Module.Finite R R'] [Algebra.Etale R R']
  (K' : Type u) [Field K'] [Algebra R' K'] [IsFractionRing R' K']
  [Smooth f] [Smooth g'] [IsSeparated g'] [QuasiCompact g'] [IsOpenImmersion jY'.1]
  (LB' : RelativeGroupLaw R' g')
include K' in
omit [Smooth f] [QuasiCompact g'] in
theorem trans_act
    (hjY'₁ : ∀ b : B', g'.base b ≠ IsLocalRing.closedPoint R' → b ∈ Set.range jY'.1.base)
    (act : pullback (g' ≫ sMap R R') (sMap R R') ⟶ B')
    (hact : act ≫ g' = pullback.snd (g' ≫ sMap R R') (sMap R R'))
    (hP1 : (sigma1 f X' jY').1 ≫ act = (sigma2 f X' jY').1) :
    DescentAction.actMap act hact ≫ act = DescentAction.proj₁₃ (sMap R R') g' ≫ act
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.mul_actP_of_generic
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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
section DVR
variable [IsDomain R] [IsDiscreteValuationRing R] [IsDomain R'] [IsDiscreteValuationRing R']
  [Module.Finite R R'] [Algebra.Etale R R']
  (K' : Type u) [Field K'] [Algebra R' K'] [IsFractionRing R' K']
  [Smooth f] [Smooth g'] [IsSeparated g'] [QuasiCompact g'] [IsOpenImmersion jY'.1]
  (LB' : RelativeGroupLaw R' g')
section Mul
variable (W : (pullback f f).Opens) (m : SchemeHomOver (W.ι ≫ pullback.fst f f ≫ f) f)
  (U : (pullback f f).Opens) (hUW : U ≤ W)
omit [Algebra.Etale R R'] [Smooth f] [Smooth g'] [IsSeparated g'] [QuasiCompact g'] in
theorem mul_actP_of_generic
    (hU₁ : ∀ q : ↑(pullback f f), (pullback.fst f f ≫ f).base q ≠ IsLocalRing.closedPoint R → q ∈ U)
    (hU₂ : ∀ (q : ↑(pullback f f)) (hq : q ∈ U), (pullback.fst f f).base q ∈ X' ∧
      (pullback.snd f f).base q ∈ X' ∧ m.1.base ⟨q, hUW hq⟩ ∈ X')
    (hjY'₁ : ∀ b : B', g'.base b ≠ IsLocalRing.closedPoint R' → b ∈ Set.range jY'.1.base)
    (hres' : ∀ {T : Scheme.{u}} (t' : T ⟶ Spec (CommRingCat.of R'))
        (w : SchemeHomOver (t' ≫ sMap R R') (U.ι ≫ pullback.fst f f ≫ f))
        (a b c : SchemeHomOver (t' ≫ sMap R R') (X'.ι ≫ f)),
      a.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.fst f f → b.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.snd f f →
      c.1 ≫ X'.ι = w.1 ≫ (pullback f f).homOfLE hUW ≫ m.1 →
      NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase (sMap R R') c) jY' =
        LB'.mul t' (NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase (sMap
          R R') a) jY')
          (NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase (sMap R R') b)
            jY'))
    (act : pullback (g' ≫ sMap R R') (sMap R R') ⟶ B')
    (hact : act ≫ g' = pullback.snd (g' ≫ sMap R R') (sMap R R'))
    (hP1 : (sigma1 f X' jY').1 ≫ act = (sigma2 f X' jY').1)
    {T : Scheme.{u}} (τ t' : T ⟶ Spec (CommRingCat.of R')) (hτ : t' ≫ sMap R R' = τ ≫ sMap R R')
    (x y : SchemeHomOver t' g') (hgen : ∀ p : T, τ.base p ≠ IsLocalRing.closedPoint R') :
    actP act hact τ t' hτ (LB'.mul t' x y) = LB'.mul τ (actP act hact τ t' hτ x) (actP act hact τ t'
      hτ y)
AbelianVarieties.NOSProofs.EtaleDescentAction.Action.mul_actP
Source context 16 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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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.NOSProofs.EtaleDescentAction
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
namespace Action
open AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
  (sMap sMap_base_eq_closedPoint_iff specGenericFibreInclusion_ne_closedPoint)
open scoped AbelianVarieties.NOSProofs.EffectiveGroupDescent.DescentPoints
section Main
variable {R : Type u} [CommRing R] {R' : Type u} [CommRing R'] [Algebra R R']
  {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R)) (X' : X.Opens)
  {B' : Scheme.{u}} {g' : B' ⟶ Spec (CommRingCat.of R')}
  (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (sMap R R')) g')
section DVR
variable [IsDomain R] [IsDiscreteValuationRing R] [IsDomain R'] [IsDiscreteValuationRing R']
  [Module.Finite R R'] [Algebra.Etale R R']
  (K' : Type u) [Field K'] [Algebra R' K'] [IsFractionRing R' K']
  [Smooth f] [Smooth g'] [IsSeparated g'] [QuasiCompact g'] [IsOpenImmersion jY'.1]
  (LB' : RelativeGroupLaw R' g')
section Mul
variable (W : (pullback f f).Opens) (m : SchemeHomOver (W.ι ≫ pullback.fst f f ≫ f) f)
  (U : (pullback f f).Opens) (hUW : U ≤ W)
include K' in
omit [Smooth f] [QuasiCompact g'] in
theorem mul_actP
    (hU₁ : ∀ q : ↑(pullback f f), (pullback.fst f f ≫ f).base q ≠ IsLocalRing.closedPoint R → q ∈ U)
    (hU₂ : ∀ (q : ↑(pullback f f)) (hq : q ∈ U), (pullback.fst f f).base q ∈ X' ∧
      (pullback.snd f f).base q ∈ X' ∧ m.1.base ⟨q, hUW hq⟩ ∈ X')
    (hjY'₁ : ∀ b : B', g'.base b ≠ IsLocalRing.closedPoint R' → b ∈ Set.range jY'.1.base)
    (hres' : ∀ {T : Scheme.{u}} (t' : T ⟶ Spec (CommRingCat.of R'))
        (w : SchemeHomOver (t' ≫ sMap R R') (U.ι ≫ pullback.fst f f ≫ f))
        (a b c : SchemeHomOver (t' ≫ sMap R R') (X'.ι ≫ f)),
      a.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.fst f f → b.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.snd f f →
      c.1 ≫ X'.ι = w.1 ≫ (pullback f f).homOfLE hUW ≫ m.1 →
      NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase (sMap R R') c) jY' =
        LB'.mul t' (NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase (sMap
          R R') a) jY')
          (NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase (sMap R R') b)
            jY'))
    (act : pullback (g' ≫ sMap R R') (sMap R R') ⟶ B')
    (hact : act ≫ g' = pullback.snd (g' ≫ sMap R R') (sMap R R'))
    (hP1 : (sigma1 f X' jY').1 ≫ act = (sigma2 f X' jY').1)
    {T : Scheme.{u}} (τ t' : T ⟶ Spec (CommRingCat.of R')) (hτ : t' ≫ sMap R R' = τ ≫ sMap R R')
    (x y : SchemeHomOver t' g') :
    actP act hact τ t' hτ (LB'.mul t' x y) = LB'.mul τ (actP act hact τ t' hτ x) (actP act hact τ t'
      hτ y)
NeronModelInfra.exists_descentAction_of_etale_groupLaw
Source context 6 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_NeronModelInfra_exists_descentAction_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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 NeronModelInfra
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry GoodReductionJacobian
open AbelianVarieties.NOSProofs.EtaleDescentAction
universe u
theorem exists_descentAction_of_etale_groupLaw
    {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] [HenselianLocalRing R]
    {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
    [Smooth f] [IsSeparated f] [LocallyOfFiniteType f] [QuasiCompact f]
    (W : (pullback f f).Opens) (m : SchemeHomOver (W.ι ≫ pullback.fst f f ≫ f) f)
    (X' : X.Opens) (U : (pullback f f).Opens) (hUW : U ≤ W)
    (hU₁ : ∀ q : ↑(pullback f f), (pullback.fst f f ≫ f).base q ≠ IsLocalRing.closedPoint R → q ∈ U)
    (hU₂ : ∀ (q : ↑(pullback f f)) (hq : q ∈ U), (pullback.fst f f).base q ∈ X' ∧ (pullback.snd f
      f).base q ∈ X' ∧
      m.1.base ⟨q, hUW hq⟩ ∈ X')
    (R' : Type u) [CommRing R'] [IsDomain R'] [IsDiscreteValuationRing R'] [Algebra R R']
    [Module.Finite R R'] [Algebra.Etale R R'] [Module.FaithfullyFlat R R']
    {B' : Scheme.{u}} (g' : B' ⟶ Spec (CommRingCat.of R')) (LB' : RelativeGroupLaw R' g')
    [Smooth g'] [IsSeparated g'] [LocallyOfFiniteType g'] [QuasiCompact g']
    (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (Spec.map (CommRingCat.ofHom (algebraMap R R'))))
      g') [IsOpenImmersion jY'.1]
    (hjY'₁ : ∀ b : B', g'.base b ≠ IsLocalRing.closedPoint R' → b ∈ Set.range jY'.1.base)
    (hjY'₂ : ∀ b : B', g'.base b = IsLocalRing.closedPoint R' →
      (∀ y : B', y ⤳ b → g'.base y = IsLocalRing.closedPoint R' → y = b) → b ∈ Set.range jY'.1.base)
    (hres' : ∀ {T : Scheme.{u}} (t' : T ⟶ Spec (CommRingCat.of R'))
        (w : SchemeHomOver (t' ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) (U.ι ≫
          pullback.fst f f ≫ f))
        (a b c : SchemeHomOver (t' ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) (X'.ι ≫ f)),
      a.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.fst f f → b.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.snd f f →
      c.1 ≫ X'.ι = w.1 ≫ (pullback f f).homOfLE hUW ≫ m.1 →
      NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase (Spec.map
        (CommRingCat.ofHom (algebraMap R R'))) c) jY' =
        LB'.mul t' (NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase
          (Spec.map (CommRingCat.ofHom (algebraMap R R'))) a) jY')
          (NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase (Spec.map
            (CommRingCat.ofHom (algebraMap R R'))) b) jY')) :
    ∃ A : DescentAction (Spec.map (CommRingCat.ofHom (algebraMap R R'))) g',
      pullback.map (pullback.snd (X'.ι ≫ f) (Spec.map (CommRingCat.ofHom (algebraMap R R'))) ≫
            Spec.map (CommRingCat.ofHom (algebraMap R R')))
          (Spec.map (CommRingCat.ofHom (algebraMap R R')))
          (g' ≫ Spec.map (CommRingCat.ofHom (algebraMap R R'))) (Spec.map (CommRingCat.ofHom
            (algebraMap R R')))
          jY'.1 (𝟙 _) (𝟙 _) (by rw [Category.comp_id, ← Category.assoc, jY'.2])
          (by rw [Category.comp_id, Category.id_comp]) ≫ A.act =
        (DescentAction.canonical (Spec.map (CommRingCat.ofHom (algebraMap R R'))) (X'.ι ≫ f)).act ≫
          jY'.1 ∧
      (∀ {T : Scheme.{u}} (τ t' : T ⟶ Spec (CommRingCat.of R'))
          (hτ : t' ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')) = τ ≫ Spec.map
            (CommRingCat.ofHom (algebraMap R R')))
          (x y : SchemeHomOver t' g'),
        NeronModelInfra.schemeHomOverComp
            (RelativeGroupLaw.baseChangePointOfBase (Spec.map (CommRingCat.ofHom (algebraMap R R')))
              (⟨(LB'.mul t' x y).1, by rw [reassoc_of% (LB'.mul t' x y).2, hτ]⟩ :
                SchemeHomOver (τ ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')))
                  (g' ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')))))
            (⟨A.act, A.act_comp⟩ : SchemeHomOver
              (pullback.snd (g' ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')))
                (Spec.map (CommRingCat.ofHom (algebraMap R R')))) g') =
          LB'.mul τ
            (NeronModelInfra.schemeHomOverComp
              (RelativeGroupLaw.baseChangePointOfBase (Spec.map (CommRingCat.ofHom (algebraMap R
                R')))
                (⟨x.1, by rw [reassoc_of% x.2, hτ]⟩ :
                  SchemeHomOver (τ ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')))
                    (g' ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')))))
              (⟨A.act, A.act_comp⟩ : SchemeHomOver
                (pullback.snd (g' ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')))
                  (Spec.map (CommRingCat.ofHom (algebraMap R R')))) g'))
            (NeronModelInfra.schemeHomOverComp
              (RelativeGroupLaw.baseChangePointOfBase (Spec.map (CommRingCat.ofHom (algebraMap R
                R')))
                (⟨y.1, by rw [reassoc_of% y.2, hτ]⟩ :
                  SchemeHomOver (τ ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')))
                    (g' ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')))))
              (⟨A.act, A.act_comp⟩ : SchemeHomOver
                (pullback.snd (g' ≫ Spec.map (CommRingCat.ofHom (algebraMap R R')))
                  (Spec.map (CommRingCat.ofHom (algebraMap R R')))) g'))) := by
  obtain ⟨Φ, hP1⟩ := Action.exists_act f X' jY' (FractionRing R') LB' hjY'₁ hjY'₂
  refine ⟨⟨Φ.1, Φ.2, Action.unit_act f X' jY' (FractionRing R') hjY'₁ Φ.1 Φ.2 hP1,
    Action.trans_act f X' jY' (FractionRing R') hjY'₁ Φ.1 Φ.2 hP1⟩, hP1, ?_⟩
  intro T τ t' hτ x y
  exact Action.mul_actP f X' jY' (FractionRing R') LB' W m U hUW hU₁ hU₂ hjY'₁ hres' Φ.1 Φ.2 hP1 τ
    t' hτ x y
NeronModelInfra.exists_groupLaw_of_etale_groupLaw
Source context 5 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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_finite_etale_relativeGroupLaw_isOpenImmersion_of_henselianLocalRing.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 NeronModelInfra
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
theorem exists_groupLaw_of_etale_groupLaw
    {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] [HenselianLocalRing R]
    (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
    {XK : Scheme.{u}} {gK : XK ⟶ Spec (CommRingCat.of K)} (LXK : RelativeGroupLaw K gK)
    {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
    [Smooth f] [IsSeparated f] [LocallyOfFiniteType f] [QuasiCompact f]
    (_hXk : ∃ x : X, f.base x = IsLocalRing.closedPoint R)
    (e : SchemeHomOver (pullback.snd f (specGenericFibreInclusion R K)) gK) [IsIso e.1]
    (W : (pullback f f).Opens) (m : SchemeHomOver (W.ι ≫ pullback.fst f f ≫ f) f)
    (_hW₁ : ∀ p : ↑(pullback f f),
      (pullback.fst f f ≫ f).base p ≠ IsLocalRing.closedPoint R → p ∈ W)
    (_hW₂ : ∀ p : ↑(pullback f f), (pullback.fst f f ≫ f).base p = IsLocalRing.closedPoint R →
      (∀ y : ↑(pullback f f), y ⤳ p → (pullback.fst f f ≫ f).base y = IsLocalRing.closedPoint R → y
        = p) →
      p ∈ W)
    (hmK : (NeronModelInfra.schemeHomOverComp
        (genericFibreRestrict R K f (W.ι ≫ pullback.fst f f ≫ f) m) e).1 =
      pullback.map (W.ι ≫ pullback.fst f f ≫ f) (specGenericFibreInclusion R K)
          (pullback.fst f f ≫ f) (specGenericFibreInclusion R K) W.ι (𝟙 _) (𝟙 _)
          (Category.comp_id _) ((Category.comp_id _).trans (Category.id_comp _).symm) ≫
        (LXK.mul (pullback.snd (pullback.fst f f ≫ f) (specGenericFibreInclusion R K))
          (NeronModelInfra.schemeHomOverComp
            (genericFibreRestrict R K f (pullback.fst f f ≫ f) ⟨pullback.fst f f, rfl⟩) e)
          (NeronModelInfra.schemeHomOverComp
            (genericFibreRestrict R K f (pullback.fst f f ≫ f)
              ⟨pullback.snd f f, pullback.condition.symm⟩) e)).1)
    (_hΦ : IsOpenImmersion
      (pullback.lift (f := f) (g := f) (W.ι ≫ pullback.fst f f) m.1
        ((Category.assoc _ _ _).trans m.2.symm)))
    (_hΦ₂ : ∀ p : ↑(pullback f f), (pullback.fst f f ≫ f).base p = IsLocalRing.closedPoint R →
      (∀ y : ↑(pullback f f), y ⤳ p → (pullback.fst f f ≫ f).base y = IsLocalRing.closedPoint R → y
        = p) →
      p ∈ Set.range (pullback.lift (f := f) (g := f) (W.ι ≫ pullback.fst f f) m.1
        ((Category.assoc _ _ _).trans m.2.symm)).base)
    (_hΨ : IsOpenImmersion
      (pullback.lift (f := f) (g := f) m.1 (W.ι ≫ pullback.snd f f)
        (m.2.trans (by rw [Category.assoc, pullback.condition]))))
    (_hΨ₂ : ∀ p : ↑(pullback f f), (pullback.fst f f ≫ f).base p = IsLocalRing.closedPoint R →
      (∀ y : ↑(pullback f f), y ⤳ p → (pullback.fst f f ≫ f).base y = IsLocalRing.closedPoint R → y
        = p) →
      p ∈ Set.range (pullback.lift (f := f) (g := f) m.1 (W.ι ≫ pullback.snd f f)
        (m.2.trans (by rw [Category.assoc, pullback.condition]))).base)
    (X' : X.Opens) (U : (pullback f f).Opens) (hUW : U ≤ W)
    (hX'₁ : ∀ x : X, f.base x ≠ IsLocalRing.closedPoint R → x ∈ X')
    (_hX'₂ : ∀ x : X, f.base x = IsLocalRing.closedPoint R →
      (∀ y : X, y ⤳ x → f.base y = IsLocalRing.closedPoint R → y = x) → x ∈ X')
    (hU₁ : ∀ q : ↑(pullback f f), (pullback.fst f f ≫ f).base q ≠ IsLocalRing.closedPoint R → q ∈ U)
    (hU₂ : ∀ (q : ↑(pullback f f)) (hq : q ∈ U), (pullback.fst f f).base q ∈ X' ∧ (pullback.snd f
      f).base q ∈ X' ∧
      m.1.base ⟨q, hUW hq⟩ ∈ X')
    (_hU₃ : ∀ x : X, x ∈ X' →
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.fst f f).base q = x} → ↑(pullback f
          f)) ⁻¹'
            (U : Set ↑(pullback f f))) ∧
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.snd f f).base q = x} → ↑(pullback f
          f)) ⁻¹'
            (U : Set ↑(pullback f f))) ∧
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.fst f f).base q = x} → ↑(pullback f
          f)) ⁻¹'
            ((pullback.lift (f := f) (g := f) (W.ι ≫ pullback.fst f f) m.1
            ((Category.assoc _ _ _).trans m.2.symm)).base '' {w | W.ι.base w ∈ U})) ∧
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.snd f f).base q = x} → ↑(pullback f
          f)) ⁻¹'
            ((pullback.lift (f := f) (g := f) (W.ι ≫ pullback.fst f f) m.1
            ((Category.assoc _ _ _).trans m.2.symm)).base '' {w | W.ι.base w ∈ U})) ∧
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.fst f f).base q = x} → ↑(pullback f
          f)) ⁻¹'
            ((pullback.lift (f := f) (g := f) m.1 (W.ι ≫ pullback.snd f f)
            (m.2.trans (by rw [Category.assoc, pullback.condition]))).base '' {w | W.ι.base w ∈ U}))
              ∧
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.snd f f).base q = x} → ↑(pullback f
          f)) ⁻¹'
            ((pullback.lift (f := f) (g := f) m.1 (W.ι ≫ pullback.snd f f)
            (m.2.trans (by rw [Category.assoc, pullback.condition]))).base '' {w | W.ι.base w ∈
              U})))
    (R' : Type u) [CommRing R'] [IsDomain R'] [IsDiscreteValuationRing R'] [Algebra R R']
    [Module.Finite R R'] [Algebra.Etale R R'] [Module.FaithfullyFlat R R']
    {B' : Scheme.{u}} (g' : B' ⟶ Spec (CommRingCat.of R')) (LB' : RelativeGroupLaw R' g')
    [Smooth g'] [IsSeparated g'] [LocallyOfFiniteType g'] [QuasiCompact g']
    (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (Spec.map (CommRingCat.ofHom (algebraMap R R'))))
      g') [IsOpenImmersion jY'.1]
    (hjY'₁ : ∀ b : B', g'.base b ≠ IsLocalRing.closedPoint R' → b ∈ Set.range jY'.1.base)
    (hjY'₂ : ∀ b : B', g'.base b = IsLocalRing.closedPoint R' →
      (∀ y : B', y ⤳ b → g'.base y = IsLocalRing.closedPoint R' → y = b) → b ∈ Set.range jY'.1.base)
    (hres' : ∀ {T : Scheme.{u}} (t' : T ⟶ Spec (CommRingCat.of R'))
        (w : SchemeHomOver (t' ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) (U.ι ≫
          pullback.fst f f ≫ f))
        (a b c : SchemeHomOver (t' ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) (X'.ι ≫ f)),
      a.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.fst f f → b.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.snd f f →
      c.1 ≫ X'.ι = w.1 ≫ (pullback f f).homOfLE hUW ≫ m.1 →
      NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase (Spec.map
        (CommRingCat.ofHom (algebraMap R R'))) c) jY' =
        LB'.mul t' (NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase
          (Spec.map (CommRingCat.ofHom (algebraMap R R'))) a) jY')
          (NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase (Spec.map
            (CommRingCat.ofHom (algebraMap R R'))) b) jY')) :
    ∃ (B : Scheme.{u}) (g : B ⟶ Spec (CommRingCat.of R)) (LB : RelativeGroupLaw R g)
      (jY : SchemeHomOver (X'.ι ≫ f) g) (e' : SchemeHomOver (pullback.snd g
        (specGenericFibreInclusion R K)) gK),
      Smooth g ∧ IsSeparated g ∧ LocallyOfFiniteType g ∧ QuasiCompact g ∧
      IsOpenImmersion jY.1 ∧
      (∀ b : B, g.base b ≠ IsLocalRing.closedPoint R → b ∈ Set.range jY.1.base) ∧
      (∀ b : B, g.base b = IsLocalRing.closedPoint R →
        (∀ y : B, y ⤳ b → g.base y = IsLocalRing.closedPoint R → y = b) → b ∈ Set.range jY.1.base) ∧
      IsIso e'.1 ∧
      (∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of K))
          (x y : SchemeHomOver t (pullback.snd g (specGenericFibreInclusion R K))),
        NeronModelInfra.schemeHomOverComp ((LB.genericFibre K).mul t x y) e' =
          LXK.mul t (NeronModelInfra.schemeHomOverComp x e') (NeronModelInfra.schemeHomOverComp y
            e')) ∧
      NeronModelInfra.schemeHomOverComp (genericFibreRestrict R K g (X'.ι ≫ f) jY) e' =
        NeronModelInfra.schemeHomOverComp (genericFibreRestrict R K f (X'.ι ≫ f) ⟨X'.ι, rfl⟩) e ∧
      (∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R))
          (w : SchemeHomOver t (U.ι ≫ pullback.fst f f ≫ f)) (a b c : SchemeHomOver t (X'.ι ≫ f)),
        a.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.fst f f → b.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.snd f f →
        c.1 ≫ X'.ι = w.1 ≫ (pullback f f).homOfLE hUW ≫ m.1 →
        NeronModelInfra.schemeHomOverComp c jY =
          LB.mul t (NeronModelInfra.schemeHomOverComp a jY) (NeronModelInfra.schemeHomOverComp b
            jY)) := by
  obtain ⟨A, hA₁, hA₂⟩ :=
    exists_descentAction_of_etale_groupLaw
      f W m X' U hUW hU₁ hU₂ R' g' LB' jY' hjY'₁ hjY'₂ hres'
  have : HenselianLocalRing R' := HenselianLocalRing.of_moduleFinite_of_isLocalRing (R := R)
  have haff : ∀ S : Finset ↥B', ∃ V : B'.Opens, IsAffineOpen V ∧ ∀ x ∈ S, x ∈ V := fun S =>
    RelativeGroupLaw.exists_isAffineOpen_forall_mem_of_smooth_of_henselianLocalRing LB' S
  have hA : A.Effective := AlgebraicGeometry.DescentAction.effective_of_finiteEtale R R' A haff
  exact
    exists_groupLaw_of_effective_descent
      K LXK f e W m hmK X' U hUW hX'₁ hU₁ hU₂ R' g' LB' jY' hjY'₁ hjY'₂ hres' A hA₁ hA₂ hA
NeronModelInfra.exists_etale_groupLaw_of_dense_fibres
Source context 5 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_NeronModelInfra_exists_finite_etale_relativeGroupLaw_isOpenImmersion_of_forall_dense_preimage_fibre_of_henselianLocalRing.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 NeronModelInfra
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
theorem exists_etale_groupLaw_of_dense_fibres
    {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] [HenselianLocalRing R]
    (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
    {XK : Scheme.{u}} {gK : XK ⟶ Spec (CommRingCat.of K)} (LXK : RelativeGroupLaw K gK)
    {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
    [Smooth f] [IsSeparated f] [LocallyOfFiniteType f] [QuasiCompact f]
    (hXk : ∃ x : X, f.base x = IsLocalRing.closedPoint R)
    (e : SchemeHomOver (pullback.snd f (specGenericFibreInclusion R K)) gK) [IsIso e.1]
    (W : (pullback f f).Opens) (m : SchemeHomOver (W.ι ≫ pullback.fst f f ≫ f) f)
    (hW₁ : ∀ p : ↑(pullback f f), (pullback.fst f f ≫ f).base p ≠ IsLocalRing.closedPoint R → p ∈ W)
    (hW₂ : ∀ p : ↑(pullback f f), (pullback.fst f f ≫ f).base p = IsLocalRing.closedPoint R →
      (∀ y : ↑(pullback f f), y ⤳ p → (pullback.fst f f ≫ f).base y = IsLocalRing.closedPoint R → y
        = p) →
      p ∈ W)
    (hmK : (NeronModelInfra.schemeHomOverComp
        (genericFibreRestrict R K f (W.ι ≫ pullback.fst f f ≫ f) m) e).1 =
      pullback.map (W.ι ≫ pullback.fst f f ≫ f) (specGenericFibreInclusion R K)
          (pullback.fst f f ≫ f) (specGenericFibreInclusion R K) W.ι (𝟙 _) (𝟙 _)
          (Category.comp_id _) ((Category.comp_id _).trans (Category.id_comp _).symm) ≫
        (LXK.mul (pullback.snd (pullback.fst f f ≫ f) (specGenericFibreInclusion R K))
          (NeronModelInfra.schemeHomOverComp
            (genericFibreRestrict R K f (pullback.fst f f ≫ f) ⟨pullback.fst f f, rfl⟩) e)
          (NeronModelInfra.schemeHomOverComp
            (genericFibreRestrict R K f (pullback.fst f f ≫ f)
              ⟨pullback.snd f f, pullback.condition.symm⟩) e)).1)
    (hΦ : IsOpenImmersion
      (pullback.lift (f := f) (g := f) (W.ι ≫ pullback.fst f f) m.1
        ((Category.assoc _ _ _).trans m.2.symm)))
    (hΦ₂ : ∀ p : ↑(pullback f f), (pullback.fst f f ≫ f).base p = IsLocalRing.closedPoint R →
      (∀ y : ↑(pullback f f), y ⤳ p → (pullback.fst f f ≫ f).base y = IsLocalRing.closedPoint R → y
        = p) →
      p ∈ Set.range (pullback.lift (f := f) (g := f) (W.ι ≫ pullback.fst f f) m.1
        ((Category.assoc _ _ _).trans m.2.symm)).base)
    (hΨ : IsOpenImmersion
      (pullback.lift (f := f) (g := f) m.1 (W.ι ≫ pullback.snd f f)
        (m.2.trans (by rw [Category.assoc, pullback.condition]))))
    (hΨ₂ : ∀ p : ↑(pullback f f), (pullback.fst f f ≫ f).base p = IsLocalRing.closedPoint R →
      (∀ y : ↑(pullback f f), y ⤳ p → (pullback.fst f f ≫ f).base y = IsLocalRing.closedPoint R → y
        = p) →
      p ∈ Set.range (pullback.lift (f := f) (g := f) m.1 (W.ι ≫ pullback.snd f f)
        (m.2.trans (by rw [Category.assoc, pullback.condition]))).base)
    (X' : X.Opens) (U : (pullback f f).Opens) (hUW : U ≤ W)
    (hX'₁ : ∀ x : X, f.base x ≠ IsLocalRing.closedPoint R → x ∈ X')
    (hX'₂ : ∀ x : X, f.base x = IsLocalRing.closedPoint R →
      (∀ y : X, y ⤳ x → f.base y = IsLocalRing.closedPoint R → y = x) → x ∈ X')
    (hU₁ : ∀ q : ↑(pullback f f), (pullback.fst f f ≫ f).base q ≠ IsLocalRing.closedPoint R → q ∈ U)
    (hU₂ : ∀ (q : ↑(pullback f f)) (hq : q ∈ U), (pullback.fst f f).base q ∈ X' ∧ (pullback.snd f
      f).base q ∈ X' ∧
      m.1.base ⟨q, hUW hq⟩ ∈ X')
    (hU₃ : ∀ x : X, x ∈ X' →
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.fst f f).base q = x} → ↑(pullback f
          f)) ⁻¹'
            (U : Set ↑(pullback f f))) ∧
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.snd f f).base q = x} → ↑(pullback f
          f)) ⁻¹'
            (U : Set ↑(pullback f f))) ∧
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.fst f f).base q = x} → ↑(pullback f
          f)) ⁻¹'
            ((pullback.lift (f := f) (g := f) (W.ι ≫ pullback.fst f f) m.1
            ((Category.assoc _ _ _).trans m.2.symm)).base '' {w | W.ι.base w ∈ U})) ∧
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.snd f f).base q = x} → ↑(pullback f
          f)) ⁻¹'
            ((pullback.lift (f := f) (g := f) (W.ι ≫ pullback.fst f f) m.1
            ((Category.assoc _ _ _).trans m.2.symm)).base '' {w | W.ι.base w ∈ U})) ∧
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.fst f f).base q = x} → ↑(pullback f
          f)) ⁻¹'
            ((pullback.lift (f := f) (g := f) m.1 (W.ι ≫ pullback.snd f f)
            (m.2.trans (by rw [Category.assoc, pullback.condition]))).base '' {w | W.ι.base w ∈ U}))
              ∧
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.snd f f).base q = x} → ↑(pullback f
          f)) ⁻¹'
            ((pullback.lift (f := f) (g := f) m.1 (W.ι ≫ pullback.snd f f)
            (m.2.trans (by rw [Category.assoc, pullback.condition]))).base '' {w | W.ι.base w ∈
              U}))) :
    ∃ (R' : Type u) (_ : CommRing R') (_ : IsDomain R') (_ : IsDiscreteValuationRing R') (_ :
      Algebra R R')
      (_ : Module.Finite R R') (_ : Algebra.Etale R R') (_ : Module.FaithfullyFlat R R')
      (B' : Scheme.{u}) (g' : B' ⟶ Spec (CommRingCat.of R')) (LB' : RelativeGroupLaw R' g')
      (jY' : SchemeHomOver (pullback.snd (X'.ι ≫ f) (Spec.map (CommRingCat.ofHom (algebraMap R
        R')))) g'),
      Smooth g' ∧ IsSeparated g' ∧ LocallyOfFiniteType g' ∧ QuasiCompact g' ∧
      IsOpenImmersion jY'.1 ∧
      (∀ b : B', g'.base b ≠ IsLocalRing.closedPoint R' → b ∈ Set.range jY'.1.base) ∧
      (∀ b : B', g'.base b = IsLocalRing.closedPoint R' →
        (∀ y : B', y ⤳ b → g'.base y = IsLocalRing.closedPoint R' → y = b) → b ∈ Set.range
          jY'.1.base) ∧
      (∀ {T : Scheme.{u}} (t' : T ⟶ Spec (CommRingCat.of R'))
          (w : SchemeHomOver (t' ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) (U.ι ≫
            pullback.fst f f ≫ f))
          (a b c : SchemeHomOver (t' ≫ (Spec.map (CommRingCat.ofHom (algebraMap R R')))) (X'.ι ≫
            f)),
        a.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.fst f f → b.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.snd f f →
        c.1 ≫ X'.ι = w.1 ≫ (pullback f f).homOfLE hUW ≫ m.1 →
        NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase (Spec.map
          (CommRingCat.ofHom (algebraMap R R'))) c) jY' =
          LB'.mul t' (NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase
            (Spec.map (CommRingCat.ofHom (algebraMap R R'))) a) jY')
            (NeronModelInfra.schemeHomOverComp (RelativeGroupLaw.baseChangePointOfBase (Spec.map
              (CommRingCat.ofHom (algebraMap R R'))) b) jY')) := by
  classical
  obtain ⟨R', instCR, instDom, instDVR, instAlg, instFin, instEt, instFF, Y', y', ι, U', m',
      hsm, hsep, hloft, hqc, hιo, hgen, hmax, hU'₁, hU'₂, hΦ', hΦ'₁, hΦ'₂, hΨ', hΨ'₁, hΨ'₂, hassoc',
      hext, ⟨a', ha'⟩, hsq⟩ :=
    NeronModelInfra.exists_etale_translation_cover
      K LXK f hXk e W m hW₁ hW₂ hmK hΦ hΦ₂ hΨ hΨ₂ X' U hUW hX'₁ hX'₂ hU₁ hU₂ hU₃
  have : Smooth y' := hsm
  have : IsSeparated y' := hsep
  have : LocallyOfFiniteType y' := hloft
  have : QuasiCompact y' := hqc
  have : IsOpenImmersion ι.1 := hιo
  obtain ⟨L, hL⟩ :=
    exists_relativeGroupLaw_mul_eq_of_forall_dense_preimage_fibre_of_forall_mem_opens_of_section
      y' U' m' hU'₁ hU'₂ hΦ' hΦ'₁ hΦ'₂ hΨ' hΨ'₁ hΨ'₂ (fun t u v p q => hassoc' t u v p q) a' ha'
      (Scheme.Hom.opensRange ι.1)
      (fun p hp => (Scheme.Hom.mem_opensRange).2 (hmax p hp))
      (fun q h₁ h₂ => hsq q ((Scheme.Hom.mem_opensRange).1 h₁) ((Scheme.Hom.mem_opensRange).1 h₂))
  refine ⟨R', instCR, instDom, instDVR, instAlg, instFin, instEt, instFF, Y', y', L, ι,
    hsm, hsep, hloft, hqc, hιo, hgen, ?_, ?_⟩
  · intro b hb hbmax
    exact hmax b (fun p' hp' hy => hbmax p' hp' (hy.trans hb))
  · intro T t' w a b c ha hb hc
    obtain ⟨w', h₁, h₂, h₃⟩ := hext t' w a b c ha hb hc
    have key := hL t' w'
      (NeronModelInfra.schemeHomOverComp
        (RelativeGroupLaw.baseChangePointOfBase (Spec.map (CommRingCat.ofHom (algebraMap R R'))) a)
          ι)
      (NeronModelInfra.schemeHomOverComp
        (RelativeGroupLaw.baseChangePointOfBase (Spec.map (CommRingCat.ofHom (algebraMap R R'))) b)
          ι)
      (NeronModelInfra.schemeHomOverComp
        (RelativeGroupLaw.baseChangePointOfBase (Spec.map (CommRingCat.ofHom (algebraMap R R'))) c)
          ι)
      (by rw [NeronModelInfra.schemeHomOverComp_coe, h₁])
      (by rw [NeronModelInfra.schemeHomOverComp_coe, h₂])
      (by rw [NeronModelInfra.schemeHomOverComp_coe, h₃])
    exact key.symm
NeronModelInfra.exists_groupLaw_of_dense_fibres
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_NeronModelInfra_exists_relativeGroupLaw_isOpenImmersion_opens_of_forall_dense_preimage_fibre_of_henselianLocalRing.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 NeronModelInfra
open _root_.CategoryTheory
open _root_.CategoryTheory.Limits
open _root_.AlgebraicGeometry hiding DescentAction
open _root_.NeronModelInfra
open _root_.GoodReductionJacobian
universe u
theorem exists_groupLaw_of_dense_fibres
    {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] [HenselianLocalRing R]
    (K : Type u) [Field K] [Algebra R K] [IsFractionRing R K]
    {XK : Scheme.{u}} {gK : XK ⟶ Spec (CommRingCat.of K)} (LXK : RelativeGroupLaw K gK)
    {X : Scheme.{u}} (f : X ⟶ Spec (CommRingCat.of R))
    [Smooth f] [IsSeparated f] [LocallyOfFiniteType f] [QuasiCompact f]
    (hXk : ∃ x : X, f.base x = IsLocalRing.closedPoint R)
    (e : SchemeHomOver (pullback.snd f (specGenericFibreInclusion R K)) gK) [IsIso e.1]
    (W : (pullback f f).Opens) (m : SchemeHomOver (W.ι ≫ pullback.fst f f ≫ f) f)
    (hW₁ : ∀ p : ↑(pullback f f), (pullback.fst f f ≫ f).base p ≠ IsLocalRing.closedPoint R → p ∈ W)
    (hW₂ : ∀ p : ↑(pullback f f), (pullback.fst f f ≫ f).base p = IsLocalRing.closedPoint R →
      (∀ y : ↑(pullback f f), y ⤳ p → (pullback.fst f f ≫ f).base y = IsLocalRing.closedPoint R → y
        = p) →
      p ∈ W)
    (hmK : (NeronModelInfra.schemeHomOverComp
        (genericFibreRestrict R K f (W.ι ≫ pullback.fst f f ≫ f) m) e).1 =
      pullback.map (W.ι ≫ pullback.fst f f ≫ f) (specGenericFibreInclusion R K)
          (pullback.fst f f ≫ f) (specGenericFibreInclusion R K) W.ι (𝟙 _) (𝟙 _)
          (Category.comp_id _) ((Category.comp_id _).trans (Category.id_comp _).symm) ≫
        (LXK.mul (pullback.snd (pullback.fst f f ≫ f) (specGenericFibreInclusion R K))
          (NeronModelInfra.schemeHomOverComp
            (genericFibreRestrict R K f (pullback.fst f f ≫ f) ⟨pullback.fst f f, rfl⟩) e)
          (NeronModelInfra.schemeHomOverComp
            (genericFibreRestrict R K f (pullback.fst f f ≫ f)
              ⟨pullback.snd f f, pullback.condition.symm⟩) e)).1)
    (hΦ : IsOpenImmersion
      (pullback.lift (f := f) (g := f) (W.ι ≫ pullback.fst f f) m.1
        ((Category.assoc _ _ _).trans m.2.symm)))
    (hΦ₂ : ∀ p : ↑(pullback f f), (pullback.fst f f ≫ f).base p = IsLocalRing.closedPoint R →
      (∀ y : ↑(pullback f f), y ⤳ p → (pullback.fst f f ≫ f).base y = IsLocalRing.closedPoint R → y
        = p) →
      p ∈ Set.range (pullback.lift (f := f) (g := f) (W.ι ≫ pullback.fst f f) m.1
        ((Category.assoc _ _ _).trans m.2.symm)).base)
    (hΨ : IsOpenImmersion
      (pullback.lift (f := f) (g := f) m.1 (W.ι ≫ pullback.snd f f)
        (m.2.trans (by rw [Category.assoc, pullback.condition]))))
    (hΨ₂ : ∀ p : ↑(pullback f f), (pullback.fst f f ≫ f).base p = IsLocalRing.closedPoint R →
      (∀ y : ↑(pullback f f), y ⤳ p → (pullback.fst f f ≫ f).base y = IsLocalRing.closedPoint R → y
        = p) →
      p ∈ Set.range (pullback.lift (f := f) (g := f) m.1 (W.ι ≫ pullback.snd f f)
        (m.2.trans (by rw [Category.assoc, pullback.condition]))).base)
    (X' : X.Opens) (U : (pullback f f).Opens) (hUW : U ≤ W)
    (hX'₁ : ∀ x : X, f.base x ≠ IsLocalRing.closedPoint R → x ∈ X')
    (hX'₂ : ∀ x : X, f.base x = IsLocalRing.closedPoint R →
      (∀ y : X, y ⤳ x → f.base y = IsLocalRing.closedPoint R → y = x) → x ∈ X')
    (hU₁ : ∀ q : ↑(pullback f f), (pullback.fst f f ≫ f).base q ≠ IsLocalRing.closedPoint R → q ∈ U)
    (hU₂ : ∀ (q : ↑(pullback f f)) (hq : q ∈ U), (pullback.fst f f).base q ∈ X' ∧ (pullback.snd f
      f).base q ∈ X' ∧
      m.1.base ⟨q, hUW hq⟩ ∈ X')
    (hU₃ : ∀ x : X, x ∈ X' →
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.fst f f).base q = x} → ↑(pullback f
          f)) ⁻¹'
            (U : Set ↑(pullback f f))) ∧
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.snd f f).base q = x} → ↑(pullback f
          f)) ⁻¹'
            (U : Set ↑(pullback f f))) ∧
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.fst f f).base q = x} → ↑(pullback f
          f)) ⁻¹'
            ((pullback.lift (f := f) (g := f) (W.ι ≫ pullback.fst f f) m.1
            ((Category.assoc _ _ _).trans m.2.symm)).base '' {w | W.ι.base w ∈ U})) ∧
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.snd f f).base q = x} → ↑(pullback f
          f)) ⁻¹'
            ((pullback.lift (f := f) (g := f) (W.ι ≫ pullback.fst f f) m.1
            ((Category.assoc _ _ _).trans m.2.symm)).base '' {w | W.ι.base w ∈ U})) ∧
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.fst f f).base q = x} → ↑(pullback f
          f)) ⁻¹'
            ((pullback.lift (f := f) (g := f) m.1 (W.ι ≫ pullback.snd f f)
            (m.2.trans (by rw [Category.assoc, pullback.condition]))).base '' {w | W.ι.base w ∈ U}))
              ∧
        Dense ((Subtype.val : {q : ↑(pullback f f) // (pullback.snd f f).base q = x} → ↑(pullback f
          f)) ⁻¹'
            ((pullback.lift (f := f) (g := f) m.1 (W.ι ≫ pullback.snd f f)
            (m.2.trans (by rw [Category.assoc, pullback.condition]))).base '' {w | W.ι.base w ∈
              U}))) :
    ∃ (B : Scheme.{u}) (g : B ⟶ Spec (CommRingCat.of R)) (LB : RelativeGroupLaw R g)
      (jY : SchemeHomOver (X'.ι ≫ f) g) (e' : SchemeHomOver (pullback.snd g
        (specGenericFibreInclusion R K)) gK),
      Smooth g ∧ IsSeparated g ∧ LocallyOfFiniteType g ∧ QuasiCompact g ∧
      IsOpenImmersion jY.1 ∧
      (∀ b : B, g.base b ≠ IsLocalRing.closedPoint R → b ∈ Set.range jY.1.base) ∧
      (∀ b : B, g.base b = IsLocalRing.closedPoint R →
        (∀ y : B, y ⤳ b → g.base y = IsLocalRing.closedPoint R → y = b) → b ∈ Set.range jY.1.base) ∧
      IsIso e'.1 ∧
      (∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of K))
          (x y : SchemeHomOver t (pullback.snd g (specGenericFibreInclusion R K))),
        NeronModelInfra.schemeHomOverComp ((LB.genericFibre K).mul t x y) e' =
          LXK.mul t (NeronModelInfra.schemeHomOverComp x e') (NeronModelInfra.schemeHomOverComp y
            e')) ∧
      NeronModelInfra.schemeHomOverComp (genericFibreRestrict R K g (X'.ι ≫ f) jY) e' =
        NeronModelInfra.schemeHomOverComp (genericFibreRestrict R K f (X'.ι ≫ f) ⟨X'.ι, rfl⟩) e ∧
      (∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R))
          (w : SchemeHomOver t (U.ι ≫ pullback.fst f f ≫ f)) (a b c : SchemeHomOver t (X'.ι ≫ f)),
        a.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.fst f f → b.1 ≫ X'.ι = w.1 ≫ U.ι ≫ pullback.snd f f →
        c.1 ≫ X'.ι = w.1 ≫ (pullback f f).homOfLE hUW ≫ m.1 →
        NeronModelInfra.schemeHomOverComp c jY =
          LB.mul t (NeronModelInfra.schemeHomOverComp a jY) (NeronModelInfra.schemeHomOverComp b
            jY)) := by
  obtain ⟨R', _, _, _, _, _, _, _, B', g', LB', jY', hg'₁, hg'₂, hg'₃, hg'₄, hjY', hjY'₁, hjY'₂,
    hres'⟩ :=
    exists_etale_groupLaw_of_dense_fibres
      K LXK f hXk e W m hW₁ hW₂ hmK hΦ hΦ₂ hΨ hΨ₂ X' U hUW hX'₁ hX'₂ hU₁ hU₂ hU₃
  have : Smooth g' := hg'₁
  have : IsSeparated g' := hg'₂
  have : LocallyOfFiniteType g' := hg'₃
  have : QuasiCompact g' := hg'₄
  have : IsOpenImmersion jY'.1 := hjY'
  exact
    exists_groupLaw_of_etale_groupLaw
      K LXK f hXk e W m hW₁ hW₂ hmK hΦ hΦ₂ hΨ hΨ₂ X' U hUW hX'₁ hX'₂ hU₁ hU₂ hU₃ R' g' LB' jY' hjY'₁
        hjY'₂ hres'