Module

Basic.lean

Nyll.SchemeTheory.RingTheory.Differentials.Basic
36 declarations indexed from sourceView source ↗

Base change, localization and exterior powers of Kähler differentials

Imports17
  • Mathlib.Algebra.Field.Subfield.Basic
  • Mathlib.FieldTheory.IntermediateField.Adjoin.Basic
  • Mathlib.FieldTheory.KummerPolynomial
  • Mathlib.LinearAlgebra.ExteriorAlgebra.Grading
  • Mathlib.LinearAlgebra.ExteriorPower.Basic
  • Mathlib.LinearAlgebra.TensorProduct.RightExactness
  • Mathlib.Order.Zorn
  • Mathlib.RingTheory.Derivation.Basic
  • Mathlib.RingTheory.Etale.Field
  • Mathlib.RingTheory.Etale.Kaehler
  • Mathlib.RingTheory.Ideal.Basic
  • Mathlib.RingTheory.Kaehler.Basic
  • Mathlib.RingTheory.Kaehler.TensorProduct
  • Mathlib.RingTheory.Localization.BaseChange
  • Mathlib.Tactic.Abel
  • Mathlib.Tactic.Ring
  • Mathlib.Util.WithWeakNamespace
Imported by6

Declarations

AbelianVarieties.NOSProofs.ConormalBaseChange.Conormal29.ψ

The differential map after change of the coefficient ring.

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_KaehlerDifferential_nonempty_baseChange_linearEquiv_quotient_span_tmul_D_of_surjective.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ConormalBaseChange
open TensorProduct KaehlerDifferential
universe u
namespace Conormal29
section
variable (R C A R' : Type u) [CommRing R] [CommRing C] [CommRing A] [CommRing R']
    [Algebra R C] [Algebra R A] [Algebra C A] [IsScalarTower R C A]
    [Algebra A R'] [Algebra C R'] [IsScalarTower C A R']
def ψ : R' ⊗[C] Ω[C⁄R] →ₗ[R'] R' ⊗[A] Ω[A⁄R]
AbelianVarieties.NOSProofs.ConormalBaseChange.Conormal29.N

The submodule generated by differentials of elements in the kernel.

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_KaehlerDifferential_nonempty_baseChange_linearEquiv_quotient_span_tmul_D_of_surjective.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ConormalBaseChange
open TensorProduct KaehlerDifferential
universe u
namespace Conormal29
section
variable (R C A R' : Type u) [CommRing R] [CommRing C] [CommRing A] [CommRing R']
    [Algebra R C] [Algebra R A] [Algebra C A] [IsScalarTower R C A]
    [Algebra A R'] [Algebra C R'] [IsScalarTower C A R']
def N : Submodule R' (R' ⊗[C] Ω[C⁄R])
AbelianVarieties.NOSProofs.ConormalBaseChange.Conormal29.cancelBaseChange_symm_tmul
Source context 11 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ConormalBaseChange
open TensorProduct KaehlerDifferential
universe u
namespace Conormal29
section
variable (R C A R' : Type u) [CommRing R] [CommRing C] [CommRing A] [CommRing R']
    [Algebra R C] [Algebra R A] [Algebra C A] [IsScalarTower R C A]
    [Algebra A R'] [Algebra C R'] [IsScalarTower C A R']
omit [Algebra R A] [IsScalarTower R C A] in
theorem cancelBaseChange_symm_tmul (r : R') (ω : Ω[C⁄R]) :
    (TensorProduct.AlgebraTensorModule.cancelBaseChange C A R' R' Ω[C⁄R]).symm (r ⊗ₜ[C] ω) =
      r ⊗ₜ[A] ((1 : A) ⊗ₜ[C] ω)
AbelianVarieties.NOSProofs.ConormalBaseChange.Conormal29.ψ_tmul
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_KaehlerDifferential_nonempty_baseChange_linearEquiv_quotient_span_tmul_D_of_surjective.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ConormalBaseChange
open TensorProduct KaehlerDifferential
universe u
namespace Conormal29
section
variable (R C A R' : Type u) [CommRing R] [CommRing C] [CommRing A] [CommRing R']
    [Algebra R C] [Algebra R A] [Algebra C A] [IsScalarTower R C A]
    [Algebra A R'] [Algebra C R'] [IsScalarTower C A R']
theorem ψ_tmul (r : R') (ω : Ω[C⁄R]) :
    ψ R C A R' (r ⊗ₜ[C] ω) = r ⊗ₜ[A] KaehlerDifferential.map R R C A ω
AbelianVarieties.NOSProofs.ConormalBaseChange.Conormal29.ψ_surjective
Source context 11 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ConormalBaseChange
open TensorProduct KaehlerDifferential
universe u
namespace Conormal29
section
variable (R C A R' : Type u) [CommRing R] [CommRing C] [CommRing A] [CommRing R']
    [Algebra R C] [Algebra R A] [Algebra C A] [IsScalarTower R C A]
    [Algebra A R'] [Algebra C R'] [IsScalarTower C A R']
variable {R C A R'}
theorem ψ_surjective (hsurj : Function.Surjective (algebraMap C A)) :
    Function.Surjective (ψ R C A R')
AbelianVarieties.NOSProofs.ConormalBaseChange.Conormal29.N_le_ker
Source context 12 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ConormalBaseChange
open TensorProduct KaehlerDifferential
universe u
namespace Conormal29
section
variable (R C A R' : Type u) [CommRing R] [CommRing C] [CommRing A] [CommRing R']
    [Algebra R C] [Algebra R A] [Algebra C A] [IsScalarTower R C A]
    [Algebra A R'] [Algebra C R'] [IsScalarTower C A R']
variable {R C A R'}
variable (R C A R') in
theorem N_le_ker : N R C A R' ≤ LinearMap.ker (ψ R C A R')
AbelianVarieties.NOSProofs.ConormalBaseChange.Conormal29.ker_le_N
Source context 12 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ConormalBaseChange
open TensorProduct KaehlerDifferential
universe u
namespace Conormal29
section
variable (R C A R' : Type u) [CommRing R] [CommRing C] [CommRing A] [CommRing R']
    [Algebra R C] [Algebra R A] [Algebra C A] [IsScalarTower R C A]
    [Algebra A R'] [Algebra C R'] [IsScalarTower C A R']
variable {R C A R'}
variable (R C A R') in
theorem ker_le_N (hsurj : Function.Surjective (algebraMap C A)) :
    LinearMap.ker (ψ R C A R') ≤ N R C A R'
AbelianVarieties.NOSProofs.ConormalBaseChange.Conormal29.ker_eq_N
Source context 12 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ConormalBaseChange
open TensorProduct KaehlerDifferential
universe u
namespace Conormal29
section
variable (R C A R' : Type u) [CommRing R] [CommRing C] [CommRing A] [CommRing R']
    [Algebra R C] [Algebra R A] [Algebra C A] [IsScalarTower R C A]
    [Algebra A R'] [Algebra C R'] [IsScalarTower C A R']
variable {R C A R'}
variable (R C A R') in
theorem ker_eq_N (hsurj : Function.Surjective (algebraMap C A)) :
    LinearMap.ker (ψ R C A R') = N R C A R'
KaehlerDifferential.nonempty_baseChange_linearEquiv_quotient_span_tmul_D_of_surjective
Source context 9 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ConormalBaseChange
open TensorProduct KaehlerDifferential
universe u
open Conormal29
with_weak_namespace _root_.KaehlerDifferential
theorem nonempty_baseChange_linearEquiv_quotient_span_tmul_D_of_surjective
    {R C A R' : Type u} [CommRing R] [CommRing C] [CommRing A] [CommRing R']
    [Algebra R C] [Algebra R A] [Algebra C A] [IsScalarTower R C A]
    (hsurj : Function.Surjective (algebraMap C A))
    [Algebra A R'] [Algebra C R'] [IsScalarTower C A R'] :
    Nonempty ((R' ⊗[A] Ω[A⁄R]) ≃ₗ[R']
      ((R' ⊗[C] Ω[C⁄R]) ⧸ Submodule.span R'
        (Set.range fun f : RingHom.ker (algebraMap C A) => (1 : R') ⊗ₜ[C] D R C (f : C)))) := by
  have e0 := Submodule.quotEquivOfEq _ _ (ker_eq_N (R := R) (C := C) (A := A) (R' := R') hsurj).symm
  have e1 := LinearMap.quotKerEquivOfSurjective _ (ψ_surjective (R := R) (C := C) (A := A) (R' :=
      R') hsurj)
  exact ⟨(e0.trans e1).symm⟩
KaehlerDifferential.bijective_map_comp_mapBaseChange_of_isLocalization_tensorProduct
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_KaehlerDifferential_bijective_map_comp_mapBaseChange_of_isLocalization_tensorProduct.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace LocalizedDifferentials
universe u
open TensorProduct
with_weak_namespace _root_.KaehlerDifferential
theorem bijective_map_comp_mapBaseChange_of_isLocalization_tensorProduct
    (R A A' B C : Type u) [CommRing R] [CommRing A] [CommRing A'] [CommRing B] [CommRing C]
    [Algebra R A] [Algebra R B] [Algebra R A'] [Algebra A A'] [IsScalarTower R A A']
    [Algebra R C] [Algebra A C] [Algebra A' C] [Algebra B C]
    [IsScalarTower R A C] [IsScalarTower R B C] [IsScalarTower A A' C] [IsScalarTower R A' C]
    (M : Submonoid A) [IsLocalization M A']
    [Algebra (A ⊗[R] B) C] [IsScalarTower A (A ⊗[R] B) C]
    (hB : (algebraMap (A ⊗[R] B) C).comp Algebra.TensorProduct.includeRight.toRingHom = algebraMap
        B C)
    (N : Submonoid (A ⊗[R] B)) [IsLocalization N C] :
    Function.Bijective
      ((KaehlerDifferential.map R A' C C).restrictScalars C ∘ₗ KaehlerDifferential.mapBaseChange R
          B C)
AbelianVarieties.NOSProofs.LocalizedModuleGluing.ModuleGlue.exists_sum_mul_pow_eq_one
Source context 6 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace LocalizedModuleGluing
namespace ModuleGlue
theorem exists_sum_mul_pow_eq_one {R : Type*} [CommRing R] {ι : Type*} [Fintype ι] (g : ι → R)
    (hg : Ideal.span (Set.range g) = ⊤) (N : ℕ) : ∃ a : ι → R, ∑ i, a i * g i ^ N = 1
IsLocalizedModule.existsUnique_forall_eq_of_span_range_eq_top
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_IsLocalizedModule_existsUnique_forall_eq_of_span_range_eq_top.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace LocalizedModuleGluing
theorem _root_.IsLocalizedModule.existsUnique_forall_eq_of_span_range_eq_top
    {R : Type*} [CommRing R] {M : Type*} [AddCommGroup M] [Module R M]
    {ι : Type*} [Finite ι] (g : ι → R) (hg : Ideal.span (Set.range g) = ⊤)
    {Mi : ι → Type*} [∀ i, AddCommGroup (Mi i)] [∀ i, Module R (Mi i)]
    (fi : ∀ i, M →ₗ[R] Mi i) [∀ i, IsLocalizedModule (Submonoid.powers (g i)) (fi i)]
    {Mij : ι → ι → Type*} [∀ i j, AddCommGroup (Mij i j)] [∀ i j, Module R (Mij i j)]
    (fij : ∀ i j, M →ₗ[R] Mij i j) [∀ i j, IsLocalizedModule (Submonoid.powers (g i * g j)) (fij i
        j)]
    (ρ : ∀ i j, Mi i →ₗ[R] Mij i j) (ρ' : ∀ i j, Mi j →ₗ[R] Mij i j)
    (hρ : ∀ i j, (ρ i j).comp (fi i) = fij i j) (hρ' : ∀ i j, (ρ' i j).comp (fi j) = fij i j)
    (m : ∀ i, Mi i) (hm : ∀ i j, ρ i j (m i) = ρ' i j (m j)) :
    ∃! x : M, ∀ i, fi i x = m i
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.instModuleR
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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
instance instModuleR : Module R (⋀[A]^n (A ⊗[R] M))
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.instIsScalarTowerR
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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
instance instIsScalarTowerR : IsScalarTower R A (⋀[A]^n (A ⊗[R] M))
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.ιMultiBC

The alternating map sending vectors to their base-changed exterior product.

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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
def ιMultiBC : M [⋀^Fin n]→ₗ[R] (⋀[A]^n (A ⊗[R] M))
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.ιMultiBC_apply
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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
lemma ιMultiBC_apply (m : Fin n → M) :
    ιMultiBC R A M n m = exteriorPower.ιMulti A n (fun i => (1 : A) ⊗ₜ[R] m i) := rfl
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.toBC

The base-change map on exterior powers.

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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
def toBC : A ⊗[R] (⋀[R]^n M) →ₗ[A] (⋀[A]^n (A ⊗[R] M))
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.toBC_tmul_ιMulti
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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
lemma toBC_tmul_ιMulti (a : A) (m : Fin n → M) :
    toBC R A M n (a ⊗ₜ exteriorPower.ιMulti R n m) =
      a • exteriorPower.ιMulti A n (fun i => (1 : A) ⊗ₜ[R] m i) := by
  change a • exteriorPower.alternatingMapLinearEquiv (ιMultiBC R A M n)
    (exteriorPower.ιMulti R n m) = _
  exact congrArg (fun z : ⋀[A]^n (A ⊗[R] M) => a • z)
    (exteriorPower.alternatingMapLinearEquiv_apply_ιMulti (ιMultiBC R A M n) m)
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.fBC

The base change of the generator map into the exterior algebra.

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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
def fBC : A ⊗[R] M →ₗ[A] A ⊗[R] ExteriorAlgebra R M
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.fBC_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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
lemma fBC_tmul (a : A) (m : M) : fBC R A M (a ⊗ₜ m) = a ⊗ₜ ExteriorAlgebra.ι R m
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.fBC_mul_fBC_add_swap
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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
lemma fBC_mul_fBC_add_swap (x y : A ⊗[R] M) :
    fBC R A M x * fBC R A M y + fBC R A M y * fBC R A M x = 0
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.fBC_mul_self
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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
lemma fBC_mul_self (x : A ⊗[R] M) : fBC R A M x * fBC R A M x = 0
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.Φ

The exterior algebra map induced by the base-changed generators.

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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
def Φ : ExteriorAlgebra A (A ⊗[R] M) →ₐ[A] A ⊗[R] ExteriorAlgebra R M
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.Φ_ι
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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
lemma Φ_ι (x : A ⊗[R] M) : Φ R A M (ExteriorAlgebra.ι A x) = fBC R A M x
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.proj

Projection onto the specified homogeneous degree.

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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
def proj : ExteriorAlgebra R M →ₗ[R] (⋀[R]^n M)
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.proj_coe
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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
lemma proj_coe (x : ⋀[R]^n M) : proj R M n (x : ExteriorAlgebra R M) = x
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.ofBC

The inverse map on the chosen exterior degree.

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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
def ofBC : (⋀[A]^n (A ⊗[R] M)) →ₗ[A] A ⊗[R] (⋀[R]^n M)
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.Φ_ιMulti_one_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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
lemma Φ_ιMulti_one_tmul (m : Fin n → M) :
    Φ R A M (ExteriorAlgebra.ιMulti A n (fun i => (1 : A) ⊗ₜ[R] m i)) =
      (1 : A) ⊗ₜ ExteriorAlgebra.ιMulti R n m := by
  rw [ExteriorAlgebra.ιMulti_apply, ExteriorAlgebra.ιMulti_apply, map_list_prod, List.map_ofFn]
  have h1 : (List.ofFn (⇑(Φ R A M) ∘ fun i => ExteriorAlgebra.ι A ((1 : A) ⊗ₜ[R] m i))) =
      (List.ofFn fun i => ExteriorAlgebra.ι R (m i)).map
        (Algebra.TensorProduct.includeRight (R := R) (A := A) (B := ExteriorAlgebra R M)) := by
    rw [List.map_ofFn]
    congr 1
    funext i
    simp only [Function.comp_apply, Φ_ι, fBC_tmul, Algebra.TensorProduct.includeRight_apply]
  rw [h1, List.prod_hom, Algebra.TensorProduct.includeRight_apply]
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.ofBC_ιMulti_one_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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
lemma ofBC_ιMulti_one_tmul (m : Fin n → M) :
    ofBC R A M n (exteriorPower.ιMulti A n (fun i => (1 : A) ⊗ₜ[R] m i)) =
      (1 : A) ⊗ₜ exteriorPower.ιMulti R n m := by
  simp only [ofBC, LinearMap.coe_comp, Function.comp_apply, Submodule.coe_subtype,
    exteriorPower.ιMulti_apply_coe, AlgHom.toLinearMap_apply]
  rw [Φ_ιMulti_one_tmul, LinearMap.baseChange_tmul, ← exteriorPower.ιMulti_apply_coe, proj_coe]
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.ofBC_toBC
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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
lemma ofBC_toBC (x : A ⊗[R] (⋀[R]^n M)) : ofBC R A M n (toBC R A M n x) = x
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.span_ιMulti_one_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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
lemma span_ιMulti_one_tmul :
    Submodule.span A (Set.range fun m : Fin n → M =>
      exteriorPower.ιMulti A n (fun i => (1 : A) ⊗ₜ[R] m i)) = ⊤ := by
  have hs : Submodule.span A (Set.range fun m : M => (1 : A) ⊗ₜ[R] m) = ⊤ := by
    rw [eq_top_iff]
    rintro x -
    induction x using TensorProduct.inductionOn with
    | tmul a m =>
      have : a ⊗ₜ[R] m = a • ((1 : A) ⊗ₜ[R] m) := by
        rw [TensorProduct.smul_tmul', smul_eq_mul, mul_one]
      rw [this]
      exact Submodule.smul_mem _ _ (Submodule.subset_span ⟨m, rfl⟩)
    | add x y hx hy => exact Submodule.add_mem _ hx hy
  have h := exteriorPower.ιMulti_span_of_span A n (A ⊗[R] M) hs
  rw [eq_top_iff, ← h, Submodule.span_le]
  rintro _ ⟨a, ha, rfl⟩
  have hm : ∀ i, ∃ m : M, (1 : A) ⊗ₜ[R] m = a i := fun i => ha ⟨i, rfl⟩
  choose m hm using hm
  refine Submodule.subset_span ⟨m, ?_⟩
  simp only [hm]
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.toBC_surjective
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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
lemma toBC_surjective : Function.Surjective (toBC R A M n)
AbelianVarieties.NOSProofs.ExteriorBaseChange.ExteriorPowerBaseChange.toBC_bijective
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_exteriorPower_exists_linearEquiv_baseChange.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
namespace ExteriorPowerBaseChange
variable (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
  (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ)
lemma toBC_bijective : Function.Bijective (toBC R A M n)
exteriorPower.exists_linearEquiv_baseChange
Source context 6 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorBaseChange
open scoped TensorProduct
theorem _root_.exteriorPower.exists_linearEquiv_baseChange
    (R : Type*) [CommRing R] (A : Type*) [CommRing A] [Algebra R A]
    (M : Type*) [AddCommGroup M] [Module R M] (n : ℕ) :
    ∃ e : A ⊗[R] (⋀[R]^n M) ≃ₗ[A] ⋀[A]^n (A ⊗[R] M),
      ∀ (a : A) (m : Fin n → M),
        e (a ⊗ₜ exteriorPower.ιMulti R n m) =
          a • exteriorPower.ιMulti A n (fun i => (1 : A) ⊗ₜ[R] m i) :=
  ⟨LinearEquiv.ofBijective _ (ExteriorPowerBaseChange.toBC_bijective R A M n),
    fun a m => ExteriorPowerBaseChange.toBC_tmul_ιMulti R A M n a m⟩
KaehlerDifferential.D_ne_zero_of_forall_pow_ne
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_KaehlerDifferential_D_ne_zero_of_forall_pow_ne.lean
Upstream NOTICE: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/NOTICE
Upstream per-file ATTRIBUTION: https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/ATTRIBUTION.md
Copies of these notices are retained in the AbelianVarieties directory.
Existing upstream author/copyright comments in the source are retained below.

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ImperfectDifferentials
universe u
open Polynomial IntermediateField
theorem _root_.KaehlerDifferential.D_ne_zero_of_forall_pow_ne
    {k : Type u} [Field k] (p : ℕ) (hp : p.Prime) [ExpChar k p]
    (c : k) (hc : ∀ b : k, b ^ p ≠ c) :
    KaehlerDifferential.D (⊥ : Subfield k) k c ≠ 0
IsLocalizedModule.of_forall_apply_iotaMulti_eq
Source context 6 commands

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

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

Local adaptation and maintenance: Naganori Yamaguchi (https://github.com/n-yamaguchi-0729).
AI assistance in local adaptation and maintenance: OpenAI Codex.
-/
namespace AbelianVarieties
namespace NOSProofs
namespace ExteriorLocalization
open scoped TensorProduct
theorem _root_.IsLocalizedModule.of_forall_apply_iotaMulti_eq
    {R : Type*} [CommRing R] (S : Submonoid R) (A : Type*) [CommRing A] [Algebra R A]
        [IsLocalization S A]
    {M : Type*} [AddCommGroup M] [Module R M]
    {N : Type*} [AddCommGroup N] [Module R N] [Module A N] [IsScalarTower R A N]
    (f : M →ₗ[R] N) [IsLocalizedModule S f] (n : ℕ)
    (F : ⋀[R]^n M →ₗ[R] ⋀[A]^n N)
    (hF : ∀ m : Fin n → M, F (exteriorPower.ιMulti R n m) = exteriorPower.ιMulti A n (fun i => f (m
        i))) :
    IsLocalizedModule S F := by
  classical
  have hf : IsBaseChange A f := (isLocalizedModule_iff_isBaseChange S A f).mp inferInstance
  rw [isLocalizedModule_iff_isBaseChange S A]
  obtain ⟨e₁, he₁⟩ := exteriorPower.exists_linearEquiv_baseChange R A M n
  let g : A ⊗[R] M ≃ₗ[A] N := hf.equiv
  let e₂ : ⋀[A]^n (A ⊗[R] M) ≃ₗ[A] ⋀[A]^n N :=
    LinearEquiv.ofLinearMap (exteriorPower.map n g.toLinearMap) (exteriorPower.map n
        g.symm.toLinearMap)
      (by rw [← exteriorPower.map_comp, LinearEquiv.comp_symm, exteriorPower.map_id])
      (by rw [← exteriorPower.map_comp, LinearEquiv.symm_comp, exteriorPower.map_id])
  refine IsBaseChange.of_equiv (e₁.trans e₂) fun x => ?_
  have key : ∀ x ∈ Submodule.span R (Set.range (exteriorPower.ιMulti R n (M := M))),
      (e₁.trans e₂) ((1 : A) ⊗ₜ[R] x) = F x := by
    intro x hx
    induction hx using Submodule.span_induction with
    | mem y hy =>
      obtain ⟨m, rfl⟩ := hy
      rw [LinearEquiv.trans_apply, he₁, one_smul, hF]
      change exteriorPower.map n g.toLinearMap (exteriorPower.ιMulti A n fun i => (1 : A) ⊗ₜ[R] m
          i) = _
      rw [exteriorPower.map_apply_ιMulti]
      congr 1
      funext i
      change hf.equiv ((1 : A) ⊗ₜ[R] m i) = f (m i)
      rw [IsBaseChange.equiv_tmul, one_smul]
    | zero => rw [TensorProduct.tmul_zero, LinearEquiv.map_zero, LinearMap.map_zero]
    | add y z _ _ hy hz => rw [TensorProduct.tmul_add, map_add, map_add, hy, hz]
    | smul r y _ hy =>
      rw [map_smul, ← hy, TensorProduct.tmul_smul, ← algebraMap_smul A r ((1 : A) ⊗ₜ[R] y),
          map_smul,
        algebraMap_smul]
  exact key x (by rw [exteriorPower.ιMulti_span]; trivial)