GoodReductionJacobian.RelativeGroupLaw.action_shear_and_equivalence_of_isClosedImmersion
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_GoodReductionJacobian_RelativeGroupLaw_action_shear_and_equivalence_of_isClosedImmersion.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.QuotientEquivalence
open CategoryTheory CategoryTheory.Limits AlgebraicGeometry NeronModelInfra GoodReductionJacobian
universe u
open SubgroupAction GoodReductionJacobian.RelativeGroupLaw in
Lean source · full declarationtheorem
_root_.GoodReductionJacobian.RelativeGroupLaw.action_shear_and_equivalence_of_isClosedImmersion
{R : Type u} [CommRing R] {G : Scheme.{u}} {f : G ⟶ Spec (CommRingCat.of R)} (L :
RelativeGroupLaw R f)
{N : Scheme.{u}} (i : N ⟶ G) [IsClosedImmersion i] (LN : RelativeGroupLaw R (i ≫ f))
(hi : ∀ {T : Scheme.{u}} (t : T ⟶ Spec (CommRingCat.of R)) (x y : SchemeHomOver t (i ≫ f)),
NeronModelInfra.schemeHomOverComp (LN.mul t x y) (⟨i, rfl⟩ : SchemeHomOver (i ≫ f) f) =
L.mul t (NeronModelInfra.schemeHomOverComp x (⟨i, rfl⟩ : SchemeHomOver (i ≫ f) f))
(NeronModelInfra.schemeHomOverComp y (⟨i, rfl⟩ : SchemeHomOver (i ≫ f) f))) :
L.action i ≫ f = CategoryTheory.Limits.pullback.snd (i ≫ f) f ≫ f ∧
(∃ σ : CategoryTheory.Limits.pullback (i ≫ f) f ≅ CategoryTheory.Limits.pullback (i ≫ f) f,
σ.hom ≫ CategoryTheory.Limits.pullback.snd (i ≫ f) f = L.action i ∧
σ.hom ≫ CategoryTheory.Limits.pullback.fst (i ≫ f) f = CategoryTheory.Limits.pullback.fst (i ≫
f) f) ∧
(∀ {T : Scheme.{u}} (a b : T ⟶ CategoryTheory.Limits.pullback (i ≫ f) f),
a ≫ CategoryTheory.Limits.pullback.snd (i ≫ f) f = b ≫ CategoryTheory.Limits.pullback.snd (i ≫
f) f → a ≫ L.action i = b ≫ L.action i → a = b) ∧
(∀ T : Scheme.{u}, _root_.Equivalence fun x y : T ⟶ G =>
∃ φ : T ⟶ CategoryTheory.Limits.pullback (i ≫ f) f, φ ≫ CategoryTheory.Limits.pullback.snd (i
≫ f) f = x ∧ φ ≫ L.action i = y) := by
obtain ⟨σ, hσfst, hσsnd⟩ :=
L.exists_iso_pullback_hom_fst_eq_and_hom_snd_eq_mul (i ≫ f) ⟨i, rfl⟩
have hσaction : σ.hom ≫ pullback.snd (i ≫ f) f = L.action i := by
rw [hσsnd, L.action_def]
exact mul_val_congr L (pullback.condition (f := i ≫ f) (g := f)) _ _ _ _ _ _
refine ⟨L.action_over i, ⟨σ, hσaction, hσfst⟩, ?_, ?_⟩
· intro T a b hs ht
apply pullback.hom_ext _ hs
let t : T ⟶ Spec (CommRingCat.of R) := a ≫ actionSource f i
have hbt : b ≫ actionSource f i = t := by
change b ≫ pullback.snd (i ≫ f) f ≫ f = a ≫ pullback.snd (i ≫ f) f ≫ f
rw [← Category.assoc, ← hs, Category.assoc]
rw [comp_action' L i a t rfl, comp_action' L i b t hbt] at ht
let : Group (SchemeHomOver t f) := L.pointGroup t
have hx : (⟨b ≫ pullback.snd (i ≫ f) f, by rw [← hbt, Category.assoc]⟩ : SchemeHomOver t f) =
⟨a ≫ pullback.snd (i ≫ f) f, by rw [Category.assoc]⟩ := Subtype.ext hs.symm
rw [hx] at ht
have := mul_right_cancel (G := SchemeHomOver t f) (Subtype.ext ht)
have h1 : (a ≫ pullback.fst (i ≫ f) f) ≫ i = (b ≫ pullback.fst (i ≫ f) f) ≫ i := by
simpa only [Category.assoc] using congrArg Subtype.val this
exact (cancel_mono i).mp h1
· intro T
refine ⟨fun x => ?_, fun {x y} hxy => ?_, fun {x y z} hxy hyz => ?_⟩
· refine ⟨pullback.lift (LN.one (x ≫ f)).1 x (LN.one (x ≫ f)).2, pullback.lift_snd _ _ _, ?_⟩
rw [comp_action' L i _ (x ≫ f) (by
change pullback.lift (LN.one (x ≫ f)).1 x (LN.one (x ≫ f)).2 ≫ pullback.snd (i ≫ f) f ≫ f =
x ≫ f
rw [← Category.assoc, pullback.lift_snd])]
have key : L.mul (x ≫ f) (NeronModelInfra.schemeHomOverComp (LN.one (x ≫ f)) ⟨i, rfl⟩) ⟨x,
rfl⟩ = ⟨x, rfl⟩ := by
rw [hom_one L i LN hi, L.one_mul]
refine Eq.trans ?_ (congrArg Subtype.val key)
congr 2 <;> apply Subtype.ext
· change pullback.lift (LN.one (x ≫ f)).1 x _ ≫ pullback.fst (i ≫ f) f ≫ i = (LN.one (x ≫
f)).1 ≫ i
rw [← Category.assoc, pullback.lift_fst]
· exact pullback.lift_snd _ _ _
· obtain ⟨φ, rfl, rfl⟩ := hxy
let t : T ⟶ Spec (CommRingCat.of R) := φ ≫ actionSource f i
let n : SchemeHomOver t (i ≫ f) := ⟨φ ≫ pullback.fst (i ≫ f) f, by
change (φ ≫ pullback.fst (i ≫ f) f) ≫ i ≫ f = φ ≫ pullback.snd (i ≫ f) f ≫ f
rw [Category.assoc, pullback.condition]⟩
let x : SchemeHomOver t f := ⟨φ ≫ pullback.snd (i ≫ f) f, by rw [Category.assoc]⟩
have hact : φ ≫ L.action i = (L.mul t (NeronModelInfra.schemeHomOverComp n ⟨i, rfl⟩) x).1 :=
(comp_action' L i φ t rfl).trans (mul_val_congr L rfl _ _ _ _ _ _)
refine ⟨pullback.lift (LN.inv t n).1 (φ ≫ L.action i)
(by rw [(LN.inv t n).2, Category.assoc, L.action_over]), pullback.lift_snd _ _ _, ?_⟩
have hsrc : pullback.lift (LN.inv t n).1 (φ ≫ L.action i)
(by rw [(LN.inv t n).2, Category.assoc, L.action_over]) ≫ actionSource f i = t := by
change _ ≫ pullback.snd (i ≫ f) f ≫ f = t
rw [← Category.assoc, pullback.lift_snd, Category.assoc, L.action_over]
rw [comp_action' L i _ t hsrc]
have key : L.mul t (NeronModelInfra.schemeHomOverComp (LN.inv t n) ⟨i, rfl⟩)
(L.mul t (NeronModelInfra.schemeHomOverComp n ⟨i, rfl⟩) x) = x := by
rw [hom_inv L i LN hi, ← L.mul_assoc, L.inv_mul_cancel, L.one_mul]
refine Eq.trans ?_ (congrArg Subtype.val key)
congr 2 <;> apply Subtype.ext
· change pullback.lift (LN.inv t n).1 (φ ≫ L.action i) _ ≫ pullback.fst (i ≫ f) f ≫ i =
(LN.inv t n).1 ≫ i
rw [← Category.assoc, pullback.lift_fst]
· change pullback.lift (LN.inv t n).1 (φ ≫ L.action i) _ ≫ pullback.snd (i ≫ f) f = (L.mul t _
x).1
rw [pullback.lift_snd, hact]
· obtain ⟨φ, rfl, rfl⟩ := hxy
obtain ⟨ψ, hψ, rfl⟩ := hyz
let t : T ⟶ Spec (CommRingCat.of R) := φ ≫ actionSource f i
let n₁ : SchemeHomOver t (i ≫ f) := ⟨φ ≫ pullback.fst (i ≫ f) f, by
change (φ ≫ pullback.fst (i ≫ f) f) ≫ i ≫ f = φ ≫ pullback.snd (i ≫ f) f ≫ f
rw [Category.assoc, pullback.condition]⟩
let x : SchemeHomOver t f := ⟨φ ≫ pullback.snd (i ≫ f) f, by rw [Category.assoc]⟩
have hψt : ψ ≫ actionSource f i = t := by
change ψ ≫ pullback.snd (i ≫ f) f ≫ f = t
rw [← Category.assoc, hψ, Category.assoc, L.action_over]
let n₂ : SchemeHomOver t (i ≫ f) := ⟨ψ ≫ pullback.fst (i ≫ f) f, by
rw [← hψt]
change (ψ ≫ pullback.fst (i ≫ f) f) ≫ i ≫ f = ψ ≫ pullback.snd (i ≫ f) f ≫ f
rw [Category.assoc, pullback.condition]⟩
have hact1 : φ ≫ L.action i = (L.mul t (NeronModelInfra.schemeHomOverComp n₁ ⟨i, rfl⟩) x).1 :=
(comp_action' L i φ t rfl).trans (mul_val_congr L rfl _ _ _ _ _ _)
have hact2 : ψ ≫ L.action i = (L.mul t (NeronModelInfra.schemeHomOverComp n₂ ⟨i, rfl⟩)
(L.mul t (NeronModelInfra.schemeHomOverComp n₁ ⟨i, rfl⟩) x)).1 := by
rw [comp_action' L i ψ t hψt]
congr 2
apply Subtype.ext
change ψ ≫ pullback.snd (i ≫ f) f = _
rw [hψ, hact1]
refine ⟨pullback.lift (LN.mul t n₂ n₁).1 (φ ≫ pullback.snd (i ≫ f) f)
(by rw [(LN.mul t n₂ n₁).2, Category.assoc]), pullback.lift_snd _ _ _, ?_⟩
have hsrc : pullback.lift (LN.mul t n₂ n₁).1 (φ ≫ pullback.snd (i ≫ f) f)
(by rw [(LN.mul t n₂ n₁).2, Category.assoc]) ≫ actionSource f i = t := by
change _ ≫ pullback.snd (i ≫ f) f ≫ f = t
rw [← Category.assoc, pullback.lift_snd, Category.assoc]
rw [comp_action' L i _ t hsrc, hact2, ← L.mul_assoc, ← hi]
congr 2 <;> apply Subtype.ext
· change pullback.lift (LN.mul t n₂ n₁).1 _ _ ≫ pullback.fst (i ≫ f) f ≫ i = (LN.mul t n₂
n₁).1 ≫ i
rw [← Category.assoc, pullback.lift_fst]
· exact pullback.lift_snd _ _ _