Module

Cotangent.lean

Nyll.SchemeTheory.RingTheory.Smooth.Cotangent
57 declarations indexed from sourceView source ↗

Injectivity in the cotangent sequence under smooth base change

Koszul syzygies give the algebraic criterion, which is localized and applied to étale and smooth charts. Shared alternating-matrix lemmas have one owner.

Imports16
  • Mathlib.Algebra.BigOperators.Group.Finset.Basic
  • Mathlib.Data.List.OfFn
  • Mathlib.RingTheory.Etale.StandardEtale
  • Mathlib.RingTheory.Extension.Cotangent.BaseChange
  • Mathlib.RingTheory.Kaehler.JacobiZariski
  • Mathlib.RingTheory.LocalProperties.Submodule
  • Mathlib.RingTheory.Localization.Away.AdjoinRoot
  • Mathlib.RingTheory.Localization.Integer
  • Mathlib.RingTheory.Regular.RegularSequence
  • Mathlib.RingTheory.RingHom.LocallyStandardSmooth
  • Mathlib.RingTheory.TensorProduct.MvPolynomial
  • Mathlib.RingTheory.Unramified.LocalStructure
  • Mathlib.Tactic.Abel
  • Mathlib.Tactic.Choose
  • Mathlib.Tactic.Ring
  • Mathlib.Tactic.Tauto
Imported by2

Declarations

AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.IsAlt

An alternating matrix, including its zero diagonal in characteristic two.

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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Alt
variable {A : Type*} [CommRing A]
def IsAlt {n : ℕ} {M : Type*} [AddCommGroup M] (d : Fin n → Fin n → M) : Prop
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.sum_sum_smul_eq_zero_of_isAlt
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Alt
variable {A : Type*} [CommRing A]
theorem sum_sum_smul_eq_zero_of_isAlt {n : ℕ} {M : Type*} [AddCommGroup M] [Module A M]
    (a : Fin n → A) (d : Fin n → Fin n → M) (hd : IsAlt d) :
    ∑ j, ∑ l, (a j * a l) • d j l = 0
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.exists_isAlt_lift
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Alt
variable {A : Type*} [CommRing A]
theorem exists_isAlt_lift {n : ℕ} {M N : Type*} [AddCommGroup M] [AddCommGroup N]
    (π : M →+ N) (hπ : Function.Surjective π) (d : Fin n → Fin n → N) (hd : IsAlt d) :
    ∃ D : Fin n → Fin n → M, IsAlt D ∧ ∀ j l, π (D j l) = d j l
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.HasKoszulSyzygies

Every linear relation is generated by alternating Koszul relations.

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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Alt
variable {A : Type*} [CommRing A]
def HasKoszulSyzygies {n : ℕ} (r : Fin n → A) : Prop
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.exists_sum_eq_of_mem_span_range_mul
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section KerSq
variable {A B : Type*} [CommRing A] [CommRing B]
theorem exists_sum_eq_of_mem_span_range_mul {n : ℕ} (v : Fin n → A) (N : Ideal A) {x : A}
    (hx : x ∈ Ideal.span (Set.range v) * N) : ∃ m : Fin n → N, x = ∑ j, v j * m j
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.ker_inf_sq_le_ker_mul
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section KerSq
variable {A B : Type*} [CommRing A] [CommRing B]
theorem ker_inf_sq_le_ker_mul (φ : A →+* B) (hφ : Function.Surjective φ) {n : ℕ} (r : Fin n → B)
    (hsyz : HasKoszulSyzygies r) :
    RingHom.ker φ ⊓ (Ideal.comap φ (Ideal.span (Set.range r))) ^ 2 ≤
      RingHom.ker φ * Ideal.comap φ (Ideal.span (Set.range r))
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.compAlgebra

The algebra induced by the inclusion into the composite presentation.

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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
def compAlgebra : Algebra P.Ring (Q.comp P).Ring
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.compAlgebra_algebraMap_apply
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
lemma compAlgebra_algebraMap_apply (p : P.Ring) :
    algebraMap P.Ring (Q.comp P).Ring p = rename Sum.inr p
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.compAlgebra_smul_def
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
lemma compAlgebra_smul_def (p : P.Ring) (q : (Q.comp P).Ring) :
    p • q = rename Sum.inr p * q
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.compLinearEquiv

The composite presentation ring as polynomials in the outer variables.

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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
def compLinearEquiv : MvPolynomial ι P.Ring ≃ₗ[P.Ring] (Q.comp P).Ring where
  toFun := (sumRingEquiv R ι σ).symm
  invFun := sumRingEquiv R ι σ
  map_add' := map_add _
  map_smul' p f := by
    rw [RingHom.id_apply, compAlgebra_smul_def, Algebra.smul_def, map_mul,
        MvPolynomial.algebraMap_eq]
    congr 1
    change (((sumRingEquiv R ι σ).symm : MvPolynomial ι P.Ring →+* (Q.comp P).Ring).comp
        (C : P.Ring →+* MvPolynomial ι P.Ring)) p = rename Sum.inr p
    congr 1
    refine MvPolynomial.ringHom_ext (fun r => ?_) (fun s => ?_)
    · rw [RingHom.comp_apply, RingHom.coe_coe, sumRingEquiv_symm_C_C]
      exact (rename_C (Sum.inr (β := σ) (α := ι)) r).symm
    · rw [RingHom.comp_apply, RingHom.coe_coe, sumRingEquiv_symm_C_X]
      exact (rename_X (Sum.inr (β := σ) (α := ι)) s).symm
  left_inv p := (sumRingEquiv R ι σ).apply_symm_apply p
  right_inv p := (sumRingEquiv R ι σ).symm_apply_apply p
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.compAlgebra_free
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
instance compAlgebra_free : Module.Free P.Ring (Q.comp P).Ring
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.nu

The inclusion of the tensor product of the inner relation ideal.

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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
local instance compAlgebra_free : Module.Free P.Ring (Q.comp P).Ring :=
  Module.Free.of_equiv (compLinearEquiv Q P)
def nu : (Q.comp P).Ring ⊗[P.Ring] P.ker →ₗ[P.Ring] (Q.comp P).Ring
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.nu_tmul
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
local instance compAlgebra_free : Module.Free P.Ring (Q.comp P).Ring :=
  Module.Free.of_equiv (compLinearEquiv Q P)
lemma nu_tmul (q : (Q.comp P).Ring) (a : P.ker) :
    nu Q P (q ⊗ₜ a) = rename Sum.inr (a : P.Ring) * q
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.nu_injective
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
local instance compAlgebra_free : Module.Free P.Ring (Q.comp P).Ring :=
  Module.Free.of_equiv (compLinearEquiv Q P)
lemma nu_injective : Function.Injective (nu Q P)
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.map_toComp_le_ker
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
local instance compAlgebra_free : Module.Free P.Ring (Q.comp P).Ring :=
  Module.Free.of_equiv (compLinearEquiv Q P)
lemma map_toComp_le_ker : P.ker.map (Q.toComp P).toAlgHom ≤ (Q.comp P).ker
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.nu_mem_map
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
local instance compAlgebra_free : Module.Free P.Ring (Q.comp P).Ring :=
  Module.Free.of_equiv (compLinearEquiv Q P)
lemma nu_mem_map (y : (Q.comp P).Ring ⊗[P.Ring] P.ker) :
    nu Q P y ∈ P.ker.map (Q.toComp P).toAlgHom
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.nu_mem_ker
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
local instance compAlgebra_free : Module.Free P.Ring (Q.comp P).Ring :=
  Module.Free.of_equiv (compLinearEquiv Q P)
lemma nu_mem_ker (y : (Q.comp P).Ring ⊗[P.Ring] P.ker) : nu Q P y ∈ (Q.comp P).ker
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.algebraMap_rename_inr
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
local instance compAlgebra_free : Module.Free P.Ring (Q.comp P).Ring :=
  Module.Free.of_equiv (compLinearEquiv Q P)
lemma algebraMap_rename_inr (p : P.Ring) :
    algebraMap (Q.comp P).Ring T (rename Sum.inr p) = algebraMap S T (algebraMap P.Ring S p)
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.thetaAux

The bilinear map from presentation relations to the base-changed cotangent module.

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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
local instance compAlgebra_free : Module.Free P.Ring (Q.comp P).Ring :=
  Module.Free.of_equiv (compLinearEquiv Q P)
def thetaAux (q : (Q.comp P).Ring) :
    P.toExtension.ker →+ T ⊗[S] P.toExtension.Cotangent
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.thetaAux_apply
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
local instance compAlgebra_free : Module.Free P.Ring (Q.comp P).Ring :=
  Module.Free.of_equiv (compLinearEquiv Q P)
lemma thetaAux_apply (q : (Q.comp P).Ring) (a : P.toExtension.ker) :
    thetaAux Q P q a = algebraMap (Q.comp P).Ring T q ⊗ₜ[S] Extension.Cotangent.mk a
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.theta

The induced map from the relation tensor product to the cotangent module.

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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
local instance compAlgebra_free : Module.Free P.Ring (Q.comp P).Ring :=
  Module.Free.of_equiv (compLinearEquiv Q P)
def theta : (Q.comp P).Ring ⊗[P.Ring] P.ker →+ T ⊗[S] P.toExtension.Cotangent
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.theta_tmul
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
local instance compAlgebra_free : Module.Free P.Ring (Q.comp P).Ring :=
  Module.Free.of_equiv (compLinearEquiv Q P)
lemma theta_tmul (q : (Q.comp P).Ring) (a : P.ker) :
    theta Q P (q ⊗ₜ a) = algebraMap (Q.comp P).Ring T q ⊗ₜ[S] Extension.Cotangent.mk a
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.theta_surjective
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
local instance compAlgebra_free : Module.Free P.Ring (Q.comp P).Ring :=
  Module.Free.of_equiv (compLinearEquiv Q P)
lemma theta_surjective : Function.Surjective (theta Q P)
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.alpha

The map on cotangent modules induced by the composite presentation.

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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
local instance compAlgebra_free : Module.Free P.Ring (Q.comp P).Ring :=
  Module.Free.of_equiv (compLinearEquiv Q P)
abbrev alpha :
    T ⊗[S] P.toExtension.Cotangent →ₗ[T] (Q.comp P).toExtension.Cotangent
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.alpha_theta
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
local instance compAlgebra_free : Module.Free P.Ring (Q.comp P).Ring :=
  Module.Free.of_equiv (compLinearEquiv Q P)
lemma alpha_theta (y : (Q.comp P).Ring ⊗[P.Ring] P.ker) :
    alpha Q P (theta Q P y) = Extension.Cotangent.mk ⟨nu Q P y, nu_mem_ker Q P y⟩
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.exists_nu_eq_and_theta_eq_zero
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
local instance compAlgebra_free : Module.Free P.Ring (Q.comp P).Ring :=
  Module.Free.of_equiv (compLinearEquiv Q P)
lemma exists_nu_eq_and_theta_eq_zero {w : (Q.comp P).Ring}
    (hw : w ∈ P.ker.map (Q.toComp P).toAlgHom * (Q.comp P).ker) :
    ∃ z, nu Q P z = w ∧ theta Q P z = 0
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.map_ker_inf_sq_le
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
local instance compAlgebra_free : Module.Free P.Ring (Q.comp P).Ring :=
  Module.Free.of_equiv (compLinearEquiv Q P)
lemma map_ker_inf_sq_le {n : ℕ} (rs : Fin n → Q.Ring) (hrs : Q.ker = Ideal.span (Set.range rs))
    (hreg : HasKoszulSyzygies rs) :
    P.ker.map (Q.toComp P).toAlgHom ⊓ (Q.comp P).ker ^ 2 ≤
      P.ker.map (Q.toComp P).toAlgHom * (Q.comp P).ker
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.alpha_injective
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
local instance compAlgebra_free : Module.Free P.Ring (Q.comp P).Ring :=
  Module.Free.of_equiv (compLinearEquiv Q P)
theorem alpha_injective {n : ℕ} (rs : Fin n → Q.Ring)
    (hrs : Q.ker = Ideal.span (Set.range rs)) (hreg : HasKoszulSyzygies rs) :
    Function.Injective (alpha Q P)
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.h1_liftBaseChange_injective
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Comp
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ w₂ u₁ u₂ u₃
variable {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
  {ι : Type w₁} {σ : Type w₂} (Q : Generators S T ι) (P : Generators R S σ)
attribute [local instance] compAlgebra
local instance compAlgebra_free : Module.Free P.Ring (Q.comp P).Ring :=
  Module.Free.of_equiv (compLinearEquiv Q P)
theorem h1_liftBaseChange_injective [Module.Flat S T] {n : ℕ} (rs : Fin n → Q.Ring)
    (hrs : Q.ker = Ideal.span (Set.range rs)) (hreg : HasKoszulSyzygies rs) :
    Function.Injective
      ((Extension.H1Cotangent.map (Q.toComp P).toExtensionHom).liftBaseChange T)
AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies.main
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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.CotangentSyzygies
universe u v w w'
open scoped Pointwise
namespace KoszulSyzygies
section Main
open _root_.Algebra
open _root_.Algebra.Generators
open _root_.MvPolynomial
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
universe w₁ u₁ u₂ u₃
theorem main {R : Type u₁} {S : Type u₂} {T : Type u₃} [CommRing R] [CommRing S] [CommRing T]
    [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T] [Module.Flat S T]
    {ι : Type w₁} (val : ι → T)
    (hval : Function.Surjective (MvPolynomial.aeval val : MvPolynomial ι S →ₐ[S] T))
    {n : ℕ} (rs : Fin n → MvPolynomial ι S)
    (hker : RingHom.ker (MvPolynomial.aeval val : MvPolynomial ι S →ₐ[S] T) =
      Ideal.span (Set.range rs))
    (hreg : HasKoszulSyzygies rs) :
    Function.Injective ((Algebra.H1Cotangent.map R R S T).liftBaseChange T)
Algebra.injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating
Source context 4 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_Algebra_injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating.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 Algebra
universe u v w w'
theorem injective_liftBaseChange_h1CotangentMap_of_ker_eq_span_range_of_forall_exists_alternating
    {R : Type u} [CommRing R] {S : Type v} [CommRing S] [Algebra R S]
    {T : Type w} [CommRing T] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
    [Module.Flat S T]
    {ι : Type w'} (x : ι → T)
    (hx : Function.Surjective (MvPolynomial.aeval x : MvPolynomial ι S →ₐ[S] T))
    {n : ℕ} (f : Fin n → MvPolynomial ι S)
    (hf : RingHom.ker (MvPolynomial.aeval x : MvPolynomial ι S →ₐ[S] T) =
      Ideal.span (Set.range f))
    (hsyz : ∀ c : Fin n → MvPolynomial ι S, ∑ j, c j * f j = 0 →
      ∃ d : Fin n → Fin n → MvPolynomial ι S,
        (∀ j, d j j = 0) ∧ (∀ j l, d j l = -d l j) ∧ ∀ j, c j = ∑ l, f l * d j l) :
    Function.Injective ((Algebra.H1Cotangent.map R R S T).liftBaseChange T)
AbelianVarieties.NOSProofs.CotangentLocalization.LocalSyzygies.exists_eq_smul_of_mem_smul_top
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_span_eq_top_of_forall_exists_isWeaklyRegular.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.CotangentLocalization
universe u v w w'
open scoped TensorProduct Pointwise
open RingTheory.Sequence
namespace LocalSyzygies
open AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies
  (IsAlt sum_sum_smul_eq_zero_of_isAlt exists_isAlt_lift HasKoszulSyzygies)
section Alt
variable {A : Type*} [CommRing A]
theorem exists_eq_smul_of_mem_smul_top {M : Type*} [AddCommGroup M] [Module A M]
    (r : A) {x : M} (hx : x ∈ r • (⊤ : Submodule A M)) : ∃ u : M, x = r • u
AbelianVarieties.NOSProofs.CotangentLocalization.LocalSyzygies.exists_isAlt_of_sum_smul_eq_zero
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_span_eq_top_of_forall_exists_isWeaklyRegular.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.CotangentLocalization
universe u v w w'
open scoped TensorProduct Pointwise
open RingTheory.Sequence
namespace LocalSyzygies
open AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies
  (IsAlt sum_sum_smul_eq_zero_of_isAlt exists_isAlt_lift HasKoszulSyzygies)
section Alt
variable {A : Type*} [CommRing A]
theorem exists_isAlt_of_sum_smul_eq_zero (n : ℕ) :
    ∀ {M : Type*} [AddCommGroup M] [Module A M] (r : Fin n → A)
      (_ : IsWeaklyRegular M (List.ofFn r)) (m : Fin n → M)
      (_ : ∑ j, r j • m j = 0),
      ∃ d : Fin n → Fin n → M, IsAlt d ∧ ∀ j, m j = ∑ l, r l • d j l
AbelianVarieties.NOSProofs.CotangentLocalization.LocalSyzygies.goodIdeal

Scalars for which the fixed relation admits alternating Koszul coefficients.

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_Algebra_injective_liftBaseChange_h1CotangentMap_of_span_eq_top_of_forall_exists_isWeaklyRegular.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.CotangentLocalization
universe u v w w'
open scoped TensorProduct Pointwise
open RingTheory.Sequence
namespace LocalSyzygies
open AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies
  (IsAlt sum_sum_smul_eq_zero_of_isAlt exists_isAlt_lift HasKoszulSyzygies)
section SyzLoc
variable {B : Type*} [CommRing B]
def goodIdeal {n : ℕ} (r c : Fin n → B) : Ideal B where
  carrier := {u | ∃ d : Fin n → Fin n → B, IsAlt d ∧ ∀ j, u * c j = ∑ l, r l * d j l}
  zero_mem' := ⟨fun _ _ => 0, ⟨fun _ => rfl, fun _ _ => by rw [neg_zero]⟩, fun j => by
    rw [zero_mul]; exact (Finset.sum_eq_zero fun _ _ => mul_zero _).symm⟩
  add_mem' := by
    rintro u u' ⟨d, hd, hu⟩ ⟨d', hd', hu'⟩
    refine ⟨fun j l => d j l + d' j l,
      ⟨fun j => by simp only [hd.1, hd'.1, add_zero], fun j l => ?_⟩, fun j => ?_⟩
    · dsimp only; rw [hd.2 j l, hd'.2 j l]; abel
    · simp only [add_mul, hu, hu', mul_add, Finset.sum_add_distrib]
  smul_mem' := by
    rintro a u ⟨d, hd, hu⟩
    refine ⟨fun j l => a * d j l,
      ⟨fun j => by simp only [hd.1, mul_zero], fun j l => ?_⟩, fun j => ?_⟩
    · dsimp only; rw [hd.2 j l]; ring
    · simp only [smul_eq_mul, mul_assoc, hu, Finset.mul_sum]
      exact Finset.sum_congr rfl fun l _ => by ring
AbelianVarieties.NOSProofs.CotangentLocalization.LocalSyzygies.mem_goodIdeal_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_Algebra_injective_liftBaseChange_h1CotangentMap_of_span_eq_top_of_forall_exists_isWeaklyRegular.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.CotangentLocalization
universe u v w w'
open scoped TensorProduct Pointwise
open RingTheory.Sequence
namespace LocalSyzygies
open AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies
  (IsAlt sum_sum_smul_eq_zero_of_isAlt exists_isAlt_lift HasKoszulSyzygies)
section SyzLoc
variable {B : Type*} [CommRing B]
lemma mem_goodIdeal_iff {n : ℕ} (r c : Fin n → B) (u : B) :
    u ∈ goodIdeal r c ↔ ∃ d : Fin n → Fin n → B, IsAlt d ∧ ∀ j, u * c j = ∑ l, r l * d j l
AbelianVarieties.NOSProofs.CotangentLocalization.LocalSyzygies.self_mem_goodIdeal
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_span_eq_top_of_forall_exists_isWeaklyRegular.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.CotangentLocalization
universe u v w w'
open scoped TensorProduct Pointwise
open RingTheory.Sequence
namespace LocalSyzygies
open AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies
  (IsAlt sum_sum_smul_eq_zero_of_isAlt exists_isAlt_lift HasKoszulSyzygies)
section SyzLoc
variable {B : Type*} [CommRing B]
lemma self_mem_goodIdeal {n : ℕ} (r c : Fin n → B) (hc : ∑ j, r j * c j = 0) (l : Fin n) :
    r l ∈ goodIdeal r c
AbelianVarieties.NOSProofs.CotangentLocalization.LocalSyzygies.exists_isAlt_integer
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_span_eq_top_of_forall_exists_isWeaklyRegular.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.CotangentLocalization
universe u v w w'
open scoped TensorProduct Pointwise
open RingTheory.Sequence
namespace LocalSyzygies
open AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies
  (IsAlt sum_sum_smul_eq_zero_of_isAlt exists_isAlt_lift HasKoszulSyzygies)
section SyzLoc
variable {B : Type*} [CommRing B]
lemma exists_isAlt_integer {n : ℕ} (M : Submonoid B) (L : Type*) [CommRing L] [Algebra B L]
    [IsLocalization M L] (D : Fin n → Fin n → L) (hD : IsAlt D) :
    ∃ (b : M) (d : Fin n → Fin n → B), IsAlt d ∧
      ∀ j l, algebraMap B L (d j l) = (b : B) • D j l
AbelianVarieties.NOSProofs.CotangentLocalization.LocalSyzygies.hasKoszulSyzygies_of_forall_isWeaklyRegular
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_span_eq_top_of_forall_exists_isWeaklyRegular.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.CotangentLocalization
universe u v w w'
open scoped TensorProduct Pointwise
open RingTheory.Sequence
namespace LocalSyzygies
open AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies
  (IsAlt sum_sum_smul_eq_zero_of_isAlt exists_isAlt_lift HasKoszulSyzygies)
section SyzLoc
variable {B : Type*} [CommRing B]
theorem hasKoszulSyzygies_of_forall_isWeaklyRegular {n : ℕ} (r : Fin n → B)
    (H : ∀ (m : Ideal B) [m.IsMaximal], Ideal.span (Set.range r) ≤ m →
      IsWeaklyRegular (Localization.AtPrime m)
        (List.ofFn fun j => algebraMap B (Localization.AtPrime m) (r j))) :
    HasKoszulSyzygies r := by
  classical
  intro c hc
  suffices htop : goodIdeal r c = ⊤ by
    have h1 : (1 : B) ∈ goodIdeal r c := by rw [htop]; exact Submodule.mem_top
    obtain ⟨d, hd, hd'⟩ := h1
    exact ⟨d, hd, fun j => by simpa only [one_mul] using hd' j⟩
  by_contra hne
  obtain ⟨m, hm, hle⟩ := Ideal.exists_le_maximal _ hne
  by_cases hrm : Ideal.span (Set.range r) ≤ m
  · set L := Localization.AtPrime m
    have hreg := H m hrm
    have hrel : ∑ j, algebraMap B L (r j) • algebraMap B L (c j) = 0 := by
      simp only [smul_eq_mul, ← map_mul, ← map_sum, hc, map_zero]
    obtain ⟨D, hD, hcD⟩ := exists_isAlt_of_sum_smul_eq_zero n (fun j => algebraMap B L (r j)) hreg
      (fun j => algebraMap B L (c j)) hrel
    obtain ⟨b, d, hd, hdD⟩ := exists_isAlt_integer m.primeCompl L D hD
    have heq : ∀ j, ∃ t : m.primeCompl, (t : B) * ((b : B) * c j) = (t : B) * ∑ l, r l * d j l := by
      intro j
      apply (IsLocalization.eq_iff_exists m.primeCompl L).mp
      rw [map_mul, map_sum, ← Algebra.smul_def, hcD j, Finset.smul_sum]
      refine Finset.sum_congr rfl fun l _ => ?_
      rw [map_mul, hdD]
      simp only [smul_eq_mul, Algebra.smul_def]
      ring
    choose t ht using heq
    set τ : B := ∏ j, (t j : B) with hτ
    have hτm : τ ∈ m.primeCompl := by
      rw [hτ]
      exact prod_mem fun j _ => (t j).2
    have hgood : τ * (b : B) ∈ goodIdeal r c := by
      refine ⟨fun j l => τ * d j l,
        ⟨fun j => by simp only [hd.1, mul_zero], fun j l => ?_⟩, fun j => ?_⟩
      · dsimp only
        rw [hd.2 j l]
        ring
      · have hsplit : τ = (∏ i ∈ Finset.univ.erase j, (t i : B)) * (t j : B) :=
          (Finset.prod_erase_mul _ _ (Finset.mem_univ j)).symm
        calc τ * (b : B) * c j = (∏ i ∈ Finset.univ.erase j, (t i : B)) * ((t j : B) * ((b : B) * c
            j)) := by
                rw [hsplit]; ring
          _ = (∏ i ∈ Finset.univ.erase j, (t i : B)) *
              ((t j : B) * ∑ l, r l * d j l) := by rw [ht j]
          _ = ∑ l, r l * (τ * d j l) := by
                rw [hsplit, Finset.mul_sum, Finset.mul_sum]
                exact Finset.sum_congr rfl fun l _ => by ring
    have : τ * (b : B) ∈ m := hle hgood
    rcases hm.isPrime.mem_or_mem this with h | h
    · exact hτm h
    · exact b.2 h
  · apply hrm
    rw [Ideal.span_le]
    rintro _ ⟨l, rfl⟩
    exact hle (self_mem_goodIdeal r c hc l)
AbelianVarieties.NOSProofs.CotangentLocalization.LocalSyzygies.hasKoszulSyzygies_get_of_forall_isWeaklyRegular
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_span_eq_top_of_forall_exists_isWeaklyRegular.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.CotangentLocalization
universe u v w w'
open scoped TensorProduct Pointwise
open RingTheory.Sequence
namespace LocalSyzygies
open AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies
  (IsAlt sum_sum_smul_eq_zero_of_isAlt exists_isAlt_lift HasKoszulSyzygies)
section SyzLoc
variable {B : Type*} [CommRing B]
theorem hasKoszulSyzygies_get_of_forall_isWeaklyRegular (f : List B)
    (H : ∀ (m : Ideal B) [m.IsMaximal], Ideal.ofList f ≤ m →
      IsWeaklyRegular (Localization.AtPrime m)
        (f.map (algebraMap B (Localization.AtPrime m)))) :
    HasKoszulSyzygies f.get
AbelianVarieties.NOSProofs.CotangentLocalization.LocalSyzygies.map_map
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_span_eq_top_of_forall_exists_isWeaklyRegular.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.CotangentLocalization
universe u v w w'
open scoped TensorProduct Pointwise
open RingTheory.Sequence
namespace LocalSyzygies
open AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies
  (IsAlt sum_sum_smul_eq_zero_of_isAlt exists_isAlt_lift HasKoszulSyzygies)
section Functorial
open _root_.Algebra
open _root_.TensorProduct.Algebra
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
variable {R : Type*} [CommRing R] {S : Type*} [CommRing S] [Algebra R S]
    {T : Type*} [CommRing T] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
    {T' : Type*} [CommRing T'] [Algebra R T'] [Algebra S T'] [Algebra T T']
    [IsScalarTower R S T'] [IsScalarTower R T T'] [IsScalarTower S T T']
lemma map_map (h : Algebra.H1Cotangent R S) :
    Algebra.H1Cotangent.map R R T T' (Algebra.H1Cotangent.map R R S T h) =
      Algebra.H1Cotangent.map R R S T' h
AbelianVarieties.NOSProofs.CotangentLocalization.LocalSyzygies.phi

The coefficient-extension map on tensor products.

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_Algebra_injective_liftBaseChange_h1CotangentMap_of_span_eq_top_of_forall_exists_isWeaklyRegular.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.CotangentLocalization
universe u v w w'
open scoped TensorProduct Pointwise
open RingTheory.Sequence
namespace LocalSyzygies
open AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies
  (IsAlt sum_sum_smul_eq_zero_of_isAlt exists_isAlt_lift HasKoszulSyzygies)
section Functorial
open _root_.Algebra
open _root_.TensorProduct.Algebra
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
variable {R : Type*} [CommRing R] {S : Type*} [CommRing S] [Algebra R S]
    {T : Type*} [CommRing T] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
    {T' : Type*} [CommRing T'] [Algebra R T'] [Algebra S T'] [Algebra T T']
    [IsScalarTower R S T'] [IsScalarTower R T T'] [IsScalarTower S T T']
variable (R S T T') in
def phi (M : Type*) [AddCommGroup M] [Module S M] :
    T ⊗[S] M →ₗ[T] T' ⊗[S] M
AbelianVarieties.NOSProofs.CotangentLocalization.LocalSyzygies.phi_tmul
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_span_eq_top_of_forall_exists_isWeaklyRegular.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.CotangentLocalization
universe u v w w'
open scoped TensorProduct Pointwise
open RingTheory.Sequence
namespace LocalSyzygies
open AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies
  (IsAlt sum_sum_smul_eq_zero_of_isAlt exists_isAlt_lift HasKoszulSyzygies)
section Functorial
open _root_.Algebra
open _root_.TensorProduct.Algebra
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
variable {R : Type*} [CommRing R] {S : Type*} [CommRing S] [Algebra R S]
    {T : Type*} [CommRing T] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
    {T' : Type*} [CommRing T'] [Algebra R T'] [Algebra S T'] [Algebra T T']
    [IsScalarTower R S T'] [IsScalarTower R T T'] [IsScalarTower S T T']
variable (R S T T') in
lemma phi_tmul {M : Type*} [AddCommGroup M] [Module S M] (t : T) (m : M) :
    phi S T T' M (t ⊗ₜ m) = algebraMap T T' t ⊗ₜ m
AbelianVarieties.NOSProofs.CotangentLocalization.LocalSyzygies.square
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_span_eq_top_of_forall_exists_isWeaklyRegular.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.CotangentLocalization
universe u v w w'
open scoped TensorProduct Pointwise
open RingTheory.Sequence
namespace LocalSyzygies
open AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies
  (IsAlt sum_sum_smul_eq_zero_of_isAlt exists_isAlt_lift HasKoszulSyzygies)
section Functorial
open _root_.Algebra
open _root_.TensorProduct.Algebra
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
variable {R : Type*} [CommRing R] {S : Type*} [CommRing S] [Algebra R S]
    {T : Type*} [CommRing T] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
    {T' : Type*} [CommRing T'] [Algebra R T'] [Algebra S T'] [Algebra T T']
    [IsScalarTower R S T'] [IsScalarTower R T T'] [IsScalarTower S T T']
variable (R S T T') in
lemma square (x : T ⊗[S] Algebra.H1Cotangent R S) :
    Algebra.H1Cotangent.map R R T T' ((Algebra.H1Cotangent.map R R S T).liftBaseChange T x) =
      (Algebra.H1Cotangent.map R R S T').liftBaseChange T'
        (phi S T T' (Algebra.H1Cotangent R S) x)
AbelianVarieties.NOSProofs.CotangentLocalization.LocalSyzygies.isBaseChange_phi
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_span_eq_top_of_forall_exists_isWeaklyRegular.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.CotangentLocalization
universe u v w w'
open scoped TensorProduct Pointwise
open RingTheory.Sequence
namespace LocalSyzygies
open AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies
  (IsAlt sum_sum_smul_eq_zero_of_isAlt exists_isAlt_lift HasKoszulSyzygies)
section Functorial
open _root_.Algebra
open _root_.TensorProduct.Algebra
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
variable {R : Type*} [CommRing R] {S : Type*} [CommRing S] [Algebra R S]
    {T : Type*} [CommRing T] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
    {T' : Type*} [CommRing T'] [Algebra R T'] [Algebra S T'] [Algebra T T']
    [IsScalarTower R S T'] [IsScalarTower R T T'] [IsScalarTower S T T']
variable (R S T T') in
lemma isBaseChange_phi (M : Type*) [AddCommGroup M] [Module S M] :
    IsBaseChange T' (phi S T T' M)
AbelianVarieties.NOSProofs.CotangentLocalization.LocalSyzygies.isLocalizedModule_phi
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_span_eq_top_of_forall_exists_isWeaklyRegular.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.CotangentLocalization
universe u v w w'
open scoped TensorProduct Pointwise
open RingTheory.Sequence
namespace LocalSyzygies
open AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies
  (IsAlt sum_sum_smul_eq_zero_of_isAlt exists_isAlt_lift HasKoszulSyzygies)
section Main
open _root_.Algebra
open _root_.TensorProduct.Algebra
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
variable {R : Type u} [CommRing R] {S : Type v} [CommRing S] [Algebra R S]
    {T : Type w} [CommRing T] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
instance isLocalizedModule_phi (g : T) (M : Type*) [AddCommGroup M] [Module S M] :
    IsLocalizedModule (Submonoid.powers g) (phi S T (Localization.Away g) M)
AbelianVarieties.NOSProofs.CotangentLocalization.LocalSyzygies.chart
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_span_eq_top_of_forall_exists_isWeaklyRegular.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.CotangentLocalization
universe u v w w'
open scoped TensorProduct Pointwise
open RingTheory.Sequence
namespace LocalSyzygies
open AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies
  (IsAlt sum_sum_smul_eq_zero_of_isAlt exists_isAlt_lift HasKoszulSyzygies)
section Main
open _root_.Algebra
open _root_.TensorProduct.Algebra
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
variable {R : Type u} [CommRing R] {S : Type v} [CommRing S] [Algebra R S]
    {T : Type w} [CommRing T] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
local instance isLocalizedModule_phi (g : T) (M : Type*) [AddCommGroup M] [Module S M] :
    IsLocalizedModule (Submonoid.powers g) (phi S T (Localization.Away g) M) :=
  (isLocalizedModule_iff_isBaseChange (Submonoid.powers g) (Localization.Away g) _).mpr
    (isBaseChange_phi M)
theorem chart {T' : Type w} [CommRing T'] [Algebra R T'] [Algebra S T'] [IsScalarTower R S T']
    [Module.Flat S T'] {ι : Type w'} (x : ι → T') (f : List (MvPolynomial ι S))
    (hx : Function.Surjective (MvPolynomial.aeval x : MvPolynomial ι S →ₐ[S] T'))
    (hf : RingHom.ker (MvPolynomial.aeval x : MvPolynomial ι S →ₐ[S] T') = Ideal.ofList f)
    (hreg : ∀ (m : Ideal (MvPolynomial ι S)) [m.IsMaximal], Ideal.ofList f ≤ m →
        IsWeaklyRegular (Localization.AtPrime m)
          (f.map (algebraMap (MvPolynomial ι S) (Localization.AtPrime m)))) :
    Function.Injective ((Algebra.H1Cotangent.map R R S T').liftBaseChange T')
AbelianVarieties.NOSProofs.CotangentLocalization.LocalSyzygies.main
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_Algebra_injective_liftBaseChange_h1CotangentMap_of_span_eq_top_of_forall_exists_isWeaklyRegular.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.CotangentLocalization
universe u v w w'
open scoped TensorProduct Pointwise
open RingTheory.Sequence
namespace LocalSyzygies
open AbelianVarieties.NOSProofs.CotangentSyzygies.KoszulSyzygies
  (IsAlt sum_sum_smul_eq_zero_of_isAlt exists_isAlt_lift HasKoszulSyzygies)
section Main
open _root_.Algebra
open _root_.TensorProduct.Algebra
open _root_.TensorProduct
open _root_.Algebra.TensorProduct
variable {R : Type u} [CommRing R] {S : Type v} [CommRing S] [Algebra R S]
    {T : Type w} [CommRing T] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
local instance isLocalizedModule_phi (g : T) (M : Type*) [AddCommGroup M] [Module S M] :
    IsLocalizedModule (Submonoid.powers g) (phi S T (Localization.Away g) M) :=
  (isLocalizedModule_iff_isBaseChange (Submonoid.powers g) (Localization.Away g) _).mpr
    (isBaseChange_phi M)
theorem main [Module.Flat S T]
    (s : Set T) (hs : Ideal.span s = ⊤)
    (H : ∀ g ∈ s, ∃ (ι : Type w') (x : ι → Localization.Away g) (f : List (MvPolynomial ι S)),
      Function.Surjective (MvPolynomial.aeval x : MvPolynomial ι S →ₐ[S] Localization.Away g) ∧
      RingHom.ker (MvPolynomial.aeval x : MvPolynomial ι S →ₐ[S] Localization.Away g) =
        Ideal.ofList f ∧
      ∀ (m : Ideal (MvPolynomial ι S)) [m.IsMaximal], Ideal.ofList f ≤ m →
        RingTheory.Sequence.IsWeaklyRegular (Localization.AtPrime m)
          (f.map (algebraMap (MvPolynomial ι S) (Localization.AtPrime m)))) :
    Function.Injective ((Algebra.H1Cotangent.map R R S T).liftBaseChange T)
Algebra.injective_liftBaseChange_h1CotangentMap_of_span_eq_top_of_forall_exists_isWeaklyRegular
Source context 4 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_Algebra_injective_liftBaseChange_h1CotangentMap_of_span_eq_top_of_forall_exists_isWeaklyRegular.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 Algebra
universe u v w w'
theorem injective_liftBaseChange_h1CotangentMap_of_span_eq_top_of_forall_exists_isWeaklyRegular
    {R : Type u} [CommRing R] {S : Type v} [CommRing S] [Algebra R S]
    {T : Type w} [CommRing T] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
    [Module.Flat S T]
    (s : Set T) (hs : Ideal.span s = ⊤)
    (H : ∀ g ∈ s, ∃ (ι : Type w') (x : ι → Localization.Away g) (f : List (MvPolynomial ι S)),
      Function.Surjective (MvPolynomial.aeval x : MvPolynomial ι S →ₐ[S] Localization.Away g) ∧
      RingHom.ker (MvPolynomial.aeval x : MvPolynomial ι S →ₐ[S] Localization.Away g) =
        Ideal.ofList f ∧
      ∀ (m : Ideal (MvPolynomial ι S)) [m.IsMaximal], Ideal.ofList f ≤ m →
        RingTheory.Sequence.IsWeaklyRegular (Localization.AtPrime m)
          (f.map (algebraMap (MvPolynomial ι S) (Localization.AtPrime m)))) :
    Function.Injective ((Algebra.H1Cotangent.map R R S T).liftBaseChange T)
AbelianVarieties.NOSProofs.CotangentEtale.EtaleCharts.isWeaklyRegular_pair
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_Algebra_H1Cotangent_liftBaseChange_map_injective_of_etale.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.CotangentEtale
universe u
open TensorProduct
namespace EtaleCharts
open Polynomial RingTheory.Sequence
theorem isWeaklyRegular_pair {B : Type*} [CommRing B] (f g : B) (hf : f ∈ nonZeroDivisors B) :
    IsWeaklyRegular B[X] [C g * X - 1, C f]
AbelianVarieties.NOSProofs.CotangentEtale.EtaleCharts.isWeaklyRegular_pair_mv
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_Algebra_H1Cotangent_liftBaseChange_map_injective_of_etale.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.CotangentEtale
universe u
open TensorProduct
namespace EtaleCharts
open Polynomial RingTheory.Sequence
theorem isWeaklyRegular_pair_mv {D : Type*} [CommRing D] (f g : D[X]) (hf : f.Monic) :
    IsWeaklyRegular (MvPolynomial (Fin 2) D)
      [Bivariate.equivMvPolynomial D (C g * X - 1), Bivariate.equivMvPolynomial D (C f)]
Algebra.H1Cotangent.liftBaseChange_map_injective_of_etale
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_Algebra_H1Cotangent_liftBaseChange_map_injective_of_etale.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.CotangentEtale
universe u
open TensorProduct
open _root_.Algebra
open EtaleCharts in
theorem _root_.Algebra.H1Cotangent.liftBaseChange_map_injective_of_etale (R D T : Type u)
    [CommRing R] [CommRing D] [CommRing T] [Algebra R D] [Algebra D T] [Algebra R T]
        [IsScalarTower R D T]
    [Algebra.Etale D T] :
    Function.Injective ((Algebra.H1Cotangent.map R R D T).liftBaseChange T)
AbelianVarieties.NOSProofs.CotangentSmooth.SmoothCharts.polyEquiv

Polynomial coefficient extension as a tensor-product algebra equivalence.

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_Algebra_H1Cotangent_liftBaseChange_map_injective_of_smooth.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.CotangentSmooth
universe u
open TensorProduct
namespace SmoothCharts
variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] (n : ℕ)
attribute [local instance] MvPolynomial.algebraMvPolynomial Algebra.TensorProduct.rightAlgebra
def polyEquiv :
    MvPolynomial (Fin n) R ⊗[R] S ≃ₐ[MvPolynomial (Fin n) R] MvPolynomial (Fin n) S
AbelianVarieties.NOSProofs.CotangentSmooth.SmoothCharts.polyEquiv_tmul
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_Algebra_H1Cotangent_liftBaseChange_map_injective_of_smooth.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.CotangentSmooth
universe u
open TensorProduct
namespace SmoothCharts
variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] (n : ℕ)
attribute [local instance] MvPolynomial.algebraMvPolynomial Algebra.TensorProduct.rightAlgebra
theorem polyEquiv_tmul (p : MvPolynomial (Fin n) R) (s : S) :
    polyEquiv R S n (p ⊗ₜ s) = s • MvPolynomial.map (algebraMap R S) p
AbelianVarieties.NOSProofs.CotangentSmooth.SmoothCharts.poly_step
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_Algebra_H1Cotangent_liftBaseChange_map_injective_of_smooth.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.CotangentSmooth
universe u
open TensorProduct
namespace SmoothCharts
variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] (n : ℕ)
attribute [local instance] MvPolynomial.algebraMvPolynomial Algebra.TensorProduct.rightAlgebra
theorem poly_step :
    Function.Injective ((Algebra.H1Cotangent.map R R S (MvPolynomial (Fin n) S)).liftBaseChange
      (MvPolynomial (Fin n) S))
AbelianVarieties.NOSProofs.CotangentSmooth.SmoothCharts.chart_step
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_Algebra_H1Cotangent_liftBaseChange_map_injective_of_smooth.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.CotangentSmooth
universe u
open TensorProduct
namespace SmoothCharts
variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] (n : ℕ)
attribute [local instance] MvPolynomial.algebraMvPolynomial Algebra.TensorProduct.rightAlgebra
theorem chart_step (R S T : Type u) [CommRing R] [CommRing S] [CommRing T] [Algebra R S] [Algebra
    S T]
    [Algebra R T] [IsScalarTower R S T] (m : ℕ) [Algebra.IsStandardSmoothOfRelativeDimension m S
        T] :
    Function.Injective ((Algebra.H1Cotangent.map R R S T).liftBaseChange T)
AbelianVarieties.NOSProofs.CotangentSmooth.SmoothCharts.main
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_Algebra_H1Cotangent_liftBaseChange_map_injective_of_smooth.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.CotangentSmooth
universe u
open TensorProduct
namespace SmoothCharts
variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] (n : ℕ)
attribute [local instance] MvPolynomial.algebraMvPolynomial Algebra.TensorProduct.rightAlgebra
theorem main (R S T : Type u) [CommRing R] [CommRing S] [CommRing T] [Algebra R S] [Algebra S T]
    [Algebra R T] [IsScalarTower R S T] [Algebra.Smooth S T] :
    Function.Injective ((Algebra.H1Cotangent.map R R S T).liftBaseChange T)
Algebra.H1Cotangent.liftBaseChange_map_injective_of_smooth
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_Algebra_H1Cotangent_liftBaseChange_map_injective_of_smooth.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.CotangentSmooth
universe u
open TensorProduct
theorem _root_.Algebra.H1Cotangent.liftBaseChange_map_injective_of_smooth (R S T : Type u)
    [CommRing R] [CommRing S] [CommRing T] [Algebra R S] [Algebra S T] [Algebra R T]
        [IsScalarTower R S T]
    [Algebra.Smooth S T] :
    Function.Injective ((Algebra.H1Cotangent.map R R S T).liftBaseChange T)