Module

BaseChange.lean

Nyll.SchemeTheory.RingTheory.Dilatation.BaseChange
34 declarations indexed from sourceView source ↗

Base change and differential coordinates for affine dilatations

Imports8
Imported by2

Declarations

abbrev

J

L49 ↗
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.J

The polynomial ideal generated by the parameter and the transverse coordinates.

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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
abbrev J : Ideal (MvPolynomial (σ ⊕ τ) R)
abbrev

D

L54 ↗
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.D

The affine dilatation of the polynomial chart.

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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
abbrev D : Type (max u v)
abbrev

L

L57 ↗
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.L

The localization in which the dilatation is realized.

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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
abbrev L : Type (max u v)
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.aPow

The parameter as an element of its power submonoid.

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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
abbrev aPow : Submonoid.powers (MvPolynomial.C π : MvPolynomial (σ ⊕ τ) R)
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.X_inr_mem
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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
theorem X_inr_mem (j : τ) : (MvPolynomial.X (Sum.inr j) : MvPolynomial (σ ⊕ τ) R) ∈ J π σ τ
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.v

The unchanged and divided coordinates of the dilatation.

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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
def v : σ ⊕ τ → D π σ τ
  | Sum.inl i => algebraMap (MvPolynomial (σ ⊕ τ) R) (D π σ τ) (MvPolynomial.X (Sum.inl i))
  | Sum.inr j => divElem (J π σ τ) (MvPolynomial.C π) (MvPolynomial.X (Sum.inr j)) (X_inr_mem π
    σ τ j)
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.g

The polynomial map given by the dilatation coordinates.

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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
def g : MvPolynomial (σ ⊕ τ) R →ₐ[R] D π σ τ
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.θ

The polynomial map scaling the transverse coordinates by the parameter.

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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
def θ : MvPolynomial (σ ⊕ τ) R →ₐ[R] MvPolynomial (σ ⊕ τ) R
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.θ_X_inl
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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
theorem θ_X_inl (i : σ) : θ π σ τ (MvPolynomial.X (Sum.inl i)) = MvPolynomial.X (Sum.inl i)
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.θ_X_inr
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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
theorem θ_X_inr (j : τ) :
    θ π σ τ (MvPolynomial.X (Sum.inr j)) = MvPolynomial.C π * MvPolynomial.X (Sum.inr j)
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.θ_C
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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
theorem θ_C (r : R) : θ π σ τ (MvPolynomial.C r) = MvPolynomial.C r
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.ψ

The coordinate map followed by inclusion in the localization.

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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
def ψ : MvPolynomial (σ ⊕ τ) R →ₐ[R] L π σ τ
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.ψ_apply
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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
theorem ψ_apply (p : MvPolynomial (σ ⊕ τ) R) : ψ π σ τ p = ((g π σ τ p : D π σ τ) : L π σ τ)
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.ψ_X_inl
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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
theorem ψ_X_inl (i : σ) :
    ψ π σ τ (MvPolynomial.X (Sum.inl i)) =
      algebraMap (MvPolynomial (σ ⊕ τ) R) (L π σ τ) (MvPolynomial.X (Sum.inl i))
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.ψ_X_inr
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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
theorem ψ_X_inr (j : τ) :
    ψ π σ τ (MvPolynomial.X (Sum.inr j)) =
      IsLocalization.mk' (L π σ τ) (MvPolynomial.X (Sum.inr j)) (aPow π σ τ)
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.ψ_C
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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
theorem ψ_C (r : R) :
    ψ π σ τ (MvPolynomial.C r) = algebraMap (MvPolynomial (σ ⊕ τ) R) (L π σ τ) (MvPolynomial.C
      r)
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.ψ_θ
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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
theorem ψ_θ (p : MvPolynomial (σ ⊕ τ) R) : ψ π σ τ (θ π σ τ p) = algebraMap _ (L π σ τ) p
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.powers_le_nonZeroDivisors
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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
theorem powers_le_nonZeroDivisors (hπ : IsSMulRegular R π) :
    Submonoid.powers (MvPolynomial.C π : MvPolynomial (σ ⊕ τ) R) ≤ nonZeroDivisors (MvPolynomial
      (σ ⊕ τ) R)
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.Θ

The localized map scaling the transverse coordinates.

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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
def Θ : L π σ τ →+* L π σ τ
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.Θ_ψ
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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
theorem Θ_ψ : (Θ π σ τ).comp (ψ π σ τ).toRingHom = algebraMap (MvPolynomial (σ ⊕ τ) R) (L π σ τ)
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.g_injective
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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
theorem g_injective (hπ : IsSMulRegular R π) : Function.Injective (g π σ τ)
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.gen_subset_range
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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
theorem gen_subset_range :
    gen (J π σ τ) (MvPolynomial.C π) ⊆ Set.range (ψ π σ τ)
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.g_surjective
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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
theorem g_surjective : Function.Surjective (g π σ τ)
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.e

The polynomial coordinate equivalence when the parameter is regular.

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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
def e (hπ : IsSMulRegular R π) : D π σ τ ≃ₐ[R] MvPolynomial (σ ⊕ τ) R
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.e_symm_apply
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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
theorem e_symm_apply (hπ : IsSMulRegular R π) (p : MvPolynomial (σ ⊕ τ) R) :
    (e π σ τ hπ).symm p = g π σ τ p
SchemeTheory.DilatationBaseChange.Polynomial.PolynomialCoordinates.e_apply_of_eq
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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
namespace PolynomialCoordinates
open AffineDilatation MvPolynomial
variable {R : Type u} [CommRing R] (π : R) (σ τ : Type v)
theorem e_apply_of_eq (hπ : IsSMulRegular R π) (d : D π σ τ) (p : MvPolynomial (σ ⊕ τ) R)
    (h : g π σ τ p = d) : e π σ τ hπ d = p
AffineDilatation.nonempty_algEquiv_mvPolynomial_sum
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_AffineDilatation_nonempty_algEquiv_mvPolynomial_sum.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 SchemeTheory.DilatationBaseChange.Polynomial
universe u v
open PolynomialCoordinates AffineDilatation in
theorem _root_.AffineDilatation.nonempty_algEquiv_mvPolynomial_sum
    {R : Type u} [CommRing R] (π : R) (hπ : IsSMulRegular R π) (σ : Type v) (τ : Type v) :
    ∃ e : AffineDilatation.Ring
          (Ideal.span (insert (MvPolynomial.C π) (Set.range fun j : τ => (MvPolynomial.X
            (Sum.inr j) : MvPolynomial (σ ⊕ τ) R))))
          (MvPolynomial.C π) ≃ₐ[R] MvPolynomial (σ ⊕ τ) R,
      (∀ i : σ, e (algebraMap (MvPolynomial (σ ⊕ τ) R) _ (MvPolynomial.X (Sum.inl i))) =
        MvPolynomial.X (Sum.inl i)) ∧
      (∀ j : τ, e (AffineDilatation.divElem _ (MvPolynomial.C π) (MvPolynomial.X (Sum.inr j))
          (Ideal.subset_span (Set.mem_insert_of_mem _ ⟨j, rfl⟩))) = MvPolynomial.X (Sum.inr j)) ∧
      (∀ j : τ, e (algebraMap (MvPolynomial (σ ⊕ τ) R) _ (MvPolynomial.X (Sum.inr j))) =
          MvPolynomial.C π * MvPolynomial.X (Sum.inr j)) := by
  refine ⟨PolynomialCoordinates.e π σ τ hπ, fun i => ?_, fun j => ?_, fun j => ?_⟩
  · apply e_apply_of_eq
    rw [g, MvPolynomial.aeval_X]; rfl
  · apply e_apply_of_eq
    rw [g, MvPolynomial.aeval_X]; rfl
  · apply e_apply_of_eq
    rw [map_mul, g, MvPolynomial.aeval_X, MvPolynomial.aeval_C,
      IsScalarTower.algebraMap_apply R (MvPolynomial (σ ⊕ τ) R) (D π σ τ),
        MvPolynomial.algebraMap_eq]
    exact algebraMap_mul_divElem (J π σ τ) (MvPolynomial.C π) (MvPolynomial.X (Sum.inr j))
      (X_inr_mem π σ τ j)
AffineDilatation.nonempty_algEquiv_tensorProduct_of_flat_of_map_eq
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_AffineDilatation_nonempty_algEquiv_tensorProduct_of_flat_of_map_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 SchemeTheory.DilatationBaseChange.Tensor
open TensorProduct
universe u
theorem _root_.AffineDilatation.nonempty_algEquiv_tensorProduct_of_flat_of_map_eq
    {P : Type u} [CommRing P] (I : Ideal P) (a : P) (ha : a ∈ I)
    {C : Type u} [CommRing C] [Algebra P C] [Module.Flat P C]
    (J : Ideal C) (b : C) (hJ : I.map (algebraMap P C) = J) (hb : algebraMap P C a = b) :
    ∃ e : C ⊗[P] AffineDilatation.Ring I a ≃ₐ[C] AffineDilatation.Ring J b,
      ∀ (g : P) (hg : g ∈ I),
        e (1 ⊗ₜ AffineDilatation.divElem I a g hg) =
          AffineDilatation.divElem J b (algebraMap P C g) (hJ ▸ Ideal.mem_map_of_mem (algebraMap
            P C) hg)
SchemeTheory.DilatationBaseChange.Kaehler.KaehlerBasis.exists_algebra_formallyEtale
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_AffineDilatation_exists_basis_kaehlerDifferential_of_smooth_of_basis.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 SchemeTheory.DilatationBaseChange.Kaehler
open TensorProduct KaehlerDifferential
universe u
namespace KaehlerBasis
open TensorProduct
theorem exists_algebra_formallyEtale
    {P P' C C' : Type u} [CommRing P] [CommRing P'] [CommRing C] [CommRing C']
    [Algebra P P'] [Algebra P C] [Algebra C C'] [Algebra P C'] [IsScalarTower P C C']
      [Algebra.FormallyEtale P C]
    (e : C ⊗[P] P' ≃ₐ[C] C') :
    ∃ _ : Algebra P' C', IsScalarTower P P' C' ∧ Algebra.FormallyEtale P' C' ∧
      ∀ p' : P', algebraMap P' C' p' = e ((1 : C) ⊗ₜ p')
SchemeTheory.DilatationBaseChange.Kaehler.KaehlerBasis.smul_D_eq
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_AffineDilatation_exists_basis_kaehlerDifferential_of_smooth_of_basis.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 SchemeTheory.DilatationBaseChange.Kaehler
open TensorProduct KaehlerDifferential
universe u
namespace KaehlerBasis
open TensorProduct
theorem smul_D_eq {R A : Type u} [CommRing R] [CommRing A] [Algebra R A] (r : R) (t : A) :
    algebraMap R A r • D R A t = D R A (algebraMap R A r * t)
SchemeTheory.DilatationBaseChange.Kaehler.KaehlerBasis.exists_basis_of_formallyEtale
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_AffineDilatation_exists_basis_kaehlerDifferential_of_smooth_of_basis.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 SchemeTheory.DilatationBaseChange.Kaehler
open TensorProduct KaehlerDifferential
universe u
universe v
namespace KaehlerBasis
theorem exists_basis_of_formallyEtale
    {R S T : Type u} [CommRing R] [CommRing S] [CommRing T] [Algebra R S] [Algebra R T] [Algebra
      S T]
    [IsScalarTower R S T] [Algebra.FormallyEtale S T]
    {ι : Type v} (s : ι → S) (bS : Module.Basis ι S Ω[S⁄R]) (hbS : ∀ k, bS k = D R S (s k)) :
    ∃ bT : Module.Basis ι T Ω[T⁄R], ∀ k, bT k = D R T (algebraMap S T (s k))
SchemeTheory.DilatationBaseChange.Kaehler.KaehlerBasis.exists_basis_of_algEquiv
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_AffineDilatation_exists_basis_kaehlerDifferential_of_smooth_of_basis.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 SchemeTheory.DilatationBaseChange.Kaehler
open TensorProduct KaehlerDifferential
universe u
universe v
namespace KaehlerBasis
theorem exists_basis_of_algEquiv
    {R A Q : Type u} [CommRing R] [CommRing A] [CommRing Q] [Algebra R A] [Algebra R Q]
    (e : A ≃ₐ[R] Q) {ι : Type v} (q : ι → Q) (b : Module.Basis ι Q Ω[Q⁄R]) (hb : ∀ k, b k = D R
      Q (q k)) :
    ∃ b' : Module.Basis ι A Ω[A⁄R], ∀ k, b' k = D R A (e.symm (q k))
SchemeTheory.DilatationBaseChange.Kaehler.KaehlerBasis.exists_basis_assemble
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_AffineDilatation_exists_basis_kaehlerDifferential_of_smooth_of_basis.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 SchemeTheory.DilatationBaseChange.Kaehler
open TensorProduct KaehlerDifferential
universe u
universe v
namespace KaehlerBasis
open TensorProduct
theorem exists_basis_assemble
    {R P P' C C' Q : Type u} [CommRing R] [CommRing P] [CommRing P'] [CommRing C] [CommRing C']
      [CommRing Q]
    [Algebra R P] [Algebra R C] [Algebra P C] [IsScalarTower R P C]
    [Algebra P P'] [Algebra R P'] [IsScalarTower R P P']
    [Algebra C C'] [Algebra P C'] [Algebra R C'] [IsScalarTower P C C'] [IsScalarTower R C C']
    [Algebra R Q] [Algebra.FormallyEtale P C]
    (e₂ : C ⊗[P] P' ≃ₐ[C] C') (e₃ : P' ≃ₐ[R] Q)
    {ι : Type v} (q : ι → Q) (bQ : Module.Basis ι Q Ω[Q⁄R]) (hbQ : ∀ k, bQ k = D R Q (q k)) :
    ∃ bC' : Module.Basis ι C' Ω[C'⁄R], ∀ k, bC' k = D R C' (e₂ ((1 : C) ⊗ₜ e₃.symm (q k)))
AffineDilatation.exists_basis_kaehlerDifferential_of_smooth_of_basis
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_AffineDilatation_exists_basis_kaehlerDifferential_of_smooth_of_basis.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 SchemeTheory.DilatationBaseChange.Kaehler
open TensorProduct KaehlerDifferential
universe u
universe v
theorem _root_.AffineDilatation.exists_basis_kaehlerDifferential_of_smooth_of_basis
    {R : Type u} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R]
    (π : R) (hπ : IsLocalRing.maximalIdeal R = Ideal.span {π})
    {C : Type u} [CommRing C] [Algebra R C] [Algebra.Smooth R C]
    {r n : ℕ} (y : Fin r → C) (z : Fin n → C) (b : Module.Basis (Fin r ⊕ Fin n) C Ω[C⁄R])
    (hby : ∀ i, b (Sum.inl i) = D R C (y i)) (hbz : ∀ j, b (Sum.inr j) = D R C (z j)) :
    ∃ b' : Module.Basis (Fin r ⊕ Fin n)
        (AffineDilatation.Ring (Ideal.span (insert (algebraMap R C π) (Set.range z)))
          (algebraMap R C π))
        Ω[AffineDilatation.Ring (Ideal.span (insert (algebraMap R C π) (Set.range z)))
          (algebraMap R C π)⁄R],
      (∀ i, b' (Sum.inl i) =
        D R (AffineDilatation.Ring (Ideal.span (insert (algebraMap R C π) (Set.range z)))
          (algebraMap R C π))
          (algebraMap C _ (y i))) ∧
      (∀ j, (algebraMap R
          (AffineDilatation.Ring (Ideal.span (insert (algebraMap R C π) (Set.range z)))
            (algebraMap R C π)) π) •
          b' (Sum.inr j) =
        D R (AffineDilatation.Ring (Ideal.span (insert (algebraMap R C π) (Set.range z)))
          (algebraMap R C π))
          (algebraMap C _ (z j)))