Module

InertiaLifting.lean

Nyll.ValuedFieldTheory.Ramification.InertiaLifting
50 declarations indexed from sourceView source ↗

Lifting inertia automorphisms through a normal field extension

Extend a valuation and lift an inertia automorphism by first passing to the separable closure, using the action on integral closures and residue fields, then the purely inseparable extension.

Imports15
  • Mathlib.FieldTheory.Galois.IsGaloisGroup
  • Mathlib.FieldTheory.Galois.Profinite
  • Mathlib.FieldTheory.KrullTopology
  • Mathlib.FieldTheory.Normal.Basic
  • Mathlib.FieldTheory.PurelyInseparable.Basic
  • Mathlib.FieldTheory.SeparableClosure
  • Mathlib.Order.Lex
  • Mathlib.RingTheory.IntegralClosure.IntegralRestrict
  • Mathlib.RingTheory.Invariant.Profinite
  • Mathlib.RingTheory.IsGaloisGroup.Basic
  • Mathlib.RingTheory.Localization.Integral
  • Mathlib.RingTheory.Valuation.LocalSubring
  • Mathlib.Tactic.GCongr
  • Mathlib.Tactic.Ring
  • Nyll.ValuedFieldTheory.Ramification.InertiaSubgroup
Imported by4

Declarations

AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.inv_mem_of_not_mem_nonunits
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Basic
variable {E : Type*} [Field E]
theorem inv_mem_of_not_mem_nonunits (A : ValuationSubring E) {z : E}
    (hz : z ∉ A.nonunits) : z⁻¹ ∈ A
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.mem_nonunits_iff_zero_or_inv_not_mem
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Basic
variable {E : Type*} [Field E]
theorem mem_nonunits_iff_zero_or_inv_not_mem (A : ValuationSubring E) (x : E) :
    x ∈ A.nonunits ↔ x = 0 ∨ x⁻¹ ∉ A
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.mem_nonunits_pointwise_smul_iff
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Basic
variable {E : Type*} [Field E]
theorem mem_nonunits_pointwise_smul_iff {G : Type*} [Group G] [MulSemiringAction G E]
    (A : ValuationSubring E) (g : G) (x : E) :
    x ∈ (g • A).nonunits ↔ g⁻¹ • x ∈ A.nonunits
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.nonunits_add_mem
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Basic
variable {E : Type*} [Field E]
theorem nonunits_add_mem (A : ValuationSubring E) {x y : E} (hx : x ∈ A.nonunits)
    (hy : y ∈ A.nonunits) : x + y ∈ A.nonunits
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.nonunits_mul_mem_of_mem
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Basic
variable {E : Type*} [Field E]
theorem nonunits_mul_mem_of_mem (A : ValuationSubring E) {x y : E} (hx : x ∈ A.nonunits)
    (hy : y ∈ A) : x * y ∈ A.nonunits
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.pow_mem_nonunits_iff
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Basic
variable {E : Type*} [Field E]
theorem pow_mem_nonunits_iff (A : ValuationSubring E) {x : E} {n : ℕ} (hn : n ≠ 0) :
    x ^ n ∈ A.nonunits ↔ x ∈ A.nonunits
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.pow_mem_iff
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Basic
variable {E : Type*} [Field E]
theorem pow_mem_iff (A : ValuationSubring E) {x : E} {n : ℕ} (hn : n ≠ 0) :
    x ^ n ∈ A ↔ x ∈ A
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.exists_comap_eq
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Chevalley
variable {L E : Type*} [Field L] [Field E] [Algebra L E]
theorem exists_comap_eq (A₀ : ValuationSubring L) :
    ∃ A : ValuationSubring E, A.comap (algebraMap L E) = A₀
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.le_of_comap_eq_of_isPurelyInseparable
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section PurelyInseparable
variable {S Ω : Type*} [Field S] [Field Ω] [Algebra S Ω]
theorem le_of_comap_eq_of_isPurelyInseparable [IsPurelyInseparable S Ω]
    {A A' : ValuationSubring Ω}
    (h : A.comap (algebraMap S Ω) = A'.comap (algebraMap S Ω)) : A ≤ A'
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.eq_of_comap_eq_of_isPurelyInseparable
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section PurelyInseparable
variable {S Ω : Type*} [Field S] [Field Ω] [Algebra S Ω]
theorem eq_of_comap_eq_of_isPurelyInseparable [IsPurelyInseparable S Ω]
    {A A' : ValuationSubring Ω}
    (h : A.comap (algebraMap S Ω) = A'.comap (algebraMap S Ω)) : A = A'
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.isIntegral_of_monic_relation
Source context 13 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Horner
variable {R S : Type*} [CommRing R] [CommRing S] [Algebra R S]
open Polynomial in
theorem isIntegral_of_monic_relation (n : ℕ) (c : ℕ → S) (hc : ∀ i, IsIntegral R (c i)) (y : S)
    (hy : y ^ (n + 1) + ∑ i ∈ Finset.range (n + 1), c i * y ^ i = 0) : IsIntegral R y
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.isIntegral_horner_tail
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Horner
variable {R S : Type*} [CommRing R] [CommRing S] [Algebra R S]
theorem isIntegral_horner_tail (n : ℕ) :
    ∀ (a : ℕ → S), (∀ i, IsIntegral R (a i)) → ∀ x : S,
      ∑ i ∈ Finset.range (n + 1), a i * x ^ i = 0 →
      ∀ k : ℕ, IsIntegral R (∑ i ∈ Finset.Ico k (n + 1), a i * x ^ (i - k))
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.one_not_mem_nonunits
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section MoreBasic
variable {E : Type*} [Field E]
theorem one_not_mem_nonunits (A : ValuationSubring E) : (1 : E) ∉ A.nonunits
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.zero_mem_nonunits
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section MoreBasic
variable {E : Type*} [Field E]
theorem zero_mem_nonunits (A : ValuationSubring E) : (0 : E) ∈ A.nonunits
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.neg_mem_nonunits_iff
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section MoreBasic
variable {E : Type*} [Field E]
theorem neg_mem_nonunits_iff (A : ValuationSubring E) (x : E) :
    -x ∈ A.nonunits ↔ x ∈ A.nonunits
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.sub_mem_nonunits
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section MoreBasic
variable {E : Type*} [Field E]
theorem sub_mem_nonunits (A : ValuationSubring E) {x y : E} (hx : x ∈ A.nonunits)
    (hy : y ∈ A.nonunits) : x - y ∈ A.nonunits
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.sum_mem_nonunits
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section MoreBasic
variable {E : Type*} [Field E]
theorem sum_mem_nonunits (A : ValuationSubring E) {ι : Type*} (s : Finset ι) (f : ι → E)
    (h : ∀ i ∈ s, f i ∈ A.nonunits) : ∑ i ∈ s, f i ∈ A.nonunits
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.smul_mem_nonunits_of_smul_eq
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section MoreBasic
variable {E : Type*} [Field E]
theorem smul_mem_nonunits_of_smul_eq {G : Type*} [Group G] [MulSemiringAction G E]
    {A : ValuationSubring E} {g : G} (hgA : g • A = A) {y : E} (hy : y ∈ A.nonunits) :
    g • y ∈ A.nonunits
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.algebraMap_vs_apply
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Dictionary
variable {L E : Type*} [Field L] [Field E] [Algebra L E]
theorem algebraMap_vs_apply (A₀ : ValuationSubring L) (a : A₀) :
    algebraMap A₀ E a = algebraMap L E (a : L)
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.algebraMap_mem_iff
Source context 13 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Dictionary
variable {L E : Type*} [Field L] [Field E] [Algebra L E]
variable (A₀ : ValuationSubring L)
theorem algebraMap_mem_iff {A : ValuationSubring E} (hA : A.comap (algebraMap L E) = A₀)
    (x : L) : algebraMap L E x ∈ A ↔ x ∈ A₀
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.algebraMap_mem_nonunits_iff
Source context 13 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Dictionary
variable {L E : Type*} [Field L] [Field E] [Algebra L E]
variable (A₀ : ValuationSubring L)
theorem algebraMap_mem_nonunits_iff {A : ValuationSubring E}
    (hA : A.comap (algebraMap L E) = A₀) (x : L) :
    algebraMap L E x ∈ A.nonunits ↔ x ∈ A₀.nonunits
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.mem_of_isIntegral
Source context 13 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Dictionary
variable {L E : Type*} [Field L] [Field E] [Algebra L E]
variable (A₀ : ValuationSubring L)
theorem mem_of_isIntegral {A : ValuationSubring E} (hA : A.comap (algebraMap L E) = A₀)
    {b : E} (hb : IsIntegral A₀ b) : b ∈ A
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.center

Center of the valuation on the integral closure.

Source context 13 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Dictionary
variable {L E : Type*} [Field L] [Field E] [Algebra L E]
variable (A₀ : ValuationSubring L)
def center (A : ValuationSubring E) (hle : ∀ b : integralClosure A₀ E, (b : E) ∈ A) :
    Ideal (integralClosure A₀ E) where
  carrier := {b | (b : E) ∈ A.nonunits}
  add_mem' {x y} hx hy := by
    simp only [Set.mem_ofPred_eq] at hx hy ⊢
    rw [Subalgebra.coe_add]
    exact nonunits_add_mem A hx hy
  zero_mem' := by
    simp only [Set.mem_ofPred_eq]
    rw [Subalgebra.coe_zero]
    exact zero_mem_nonunits A
  smul_mem' c x hx := by
    simp only [Set.mem_ofPred_eq] at hx ⊢
    rw [smul_eq_mul, Subalgebra.coe_mul, mul_comm]
    exact nonunits_mul_mem_of_mem A hx (hle c)
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.mem_center_iff
Source context 14 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Dictionary
variable {L E : Type*} [Field L] [Field E] [Algebra L E]
variable (A₀ : ValuationSubring L)
variable {A₀}
theorem mem_center_iff {A : ValuationSubring E} {hle : ∀ b : integralClosure A₀ E, (b : E) ∈ A}
    {b : integralClosure A₀ E} : b ∈ center A₀ A hle ↔ (b : E) ∈ A.nonunits
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.center_isPrime
Source context 15 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Dictionary
variable {L E : Type*} [Field L] [Field E] [Algebra L E]
variable (A₀ : ValuationSubring L)
variable {A₀}
variable (A₀)
theorem center_isPrime (A : ValuationSubring E) (hle : ∀ b : integralClosure A₀ E, (b : E) ∈ A) :
    (center A₀ A hle).IsPrime
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.center_under
Source context 15 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Dictionary
variable {L E : Type*} [Field L] [Field E] [Algebra L E]
variable (A₀ : ValuationSubring L)
variable {A₀}
variable (A₀)
theorem center_under {A : ValuationSubring E} (hA : A.comap (algebraMap L E) = A₀)
    (hle : ∀ b : integralClosure A₀ E, (b : E) ∈ A) :
    (center A₀ A hle).under A₀ = maximalIdeal A₀
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.center_isMaximal
Source context 15 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Dictionary
variable {L E : Type*} [Field L] [Field E] [Algebra L E]
variable (A₀ : ValuationSubring L)
variable {A₀}
variable (A₀)
theorem center_isMaximal {A : ValuationSubring E} (hA : A.comap (algebraMap L E) = A₀)
    (hle : ∀ b : integralClosure A₀ E, (b : E) ∈ A) :
    (center A₀ A hle).IsMaximal
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.exists_mul_isIntegral
Source context 15 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Dictionary
variable {L E : Type*} [Field L] [Field E] [Algebra L E]
variable (A₀ : ValuationSubring L)
variable {A₀}
variable (A₀)
theorem exists_mul_isIntegral [Algebra.IsAlgebraic L E] {A : ValuationSubring E}
    (hA : A.comap (algebraMap L E) = A₀) {x : E} (hx : x ∈ A) :
    ∃ s : E, IsIntegral A₀ s ∧ s ∉ A.nonunits ∧ IsIntegral A₀ (s * x)
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.le_of_forall_mem_nonunits_iff
Source context 15 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Dictionary
variable {L E : Type*} [Field L] [Field E] [Algebra L E]
variable (A₀ : ValuationSubring L)
variable {A₀}
variable (A₀)
theorem le_of_forall_mem_nonunits_iff [Algebra.IsAlgebraic L E] {A A' : ValuationSubring E}
    (hA : A.comap (algebraMap L E) = A₀) (hA' : A'.comap (algebraMap L E) = A₀)
    (h : ∀ b : E, IsIntegral A₀ b → (b ∈ A.nonunits ↔ b ∈ A'.nonunits)) : A ≤ A'
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.eq_of_forall_mem_nonunits_iff
Source context 15 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Dictionary
variable {L E : Type*} [Field L] [Field E] [Algebra L E]
variable (A₀ : ValuationSubring L)
variable {A₀}
variable (A₀)
theorem eq_of_forall_mem_nonunits_iff [Algebra.IsAlgebraic L E] {A A' : ValuationSubring E}
    (hA : A.comap (algebraMap L E) = A₀) (hA' : A'.comap (algebraMap L E) = A₀)
    (h : ∀ b : E, IsIntegral A₀ b → (b ∈ A.nonunits ↔ b ∈ A'.nonunits)) : A = A'
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.exists_isIntegral_sub_mem_nonunits
Source context 15 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Dictionary
variable {L E : Type*} [Field L] [Field E] [Algebra L E]
variable (A₀ : ValuationSubring L)
variable {A₀}
variable (A₀)
theorem exists_isIntegral_sub_mem_nonunits [Algebra.IsAlgebraic L E] {A : ValuationSubring E}
    (hA : A.comap (algebraMap L E) = A₀) {x : E} (hx : x ∈ A) :
    ∃ b : E, IsIntegral A₀ b ∧ x - b ∈ A.nonunits
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.smulCommClass_vs
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Galois
variable {L E : Type*} [Field L] [Field E] [Algebra L E] (A₀ : ValuationSubring L)
instance smulCommClass_vs : SMulCommClass (E ≃ₐ[L] E) A₀ E
instance

topB

L561 ↗
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.topB

Use the discrete topology on the integral closure for the profinite action.

Source context 13 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Galois
variable {L E : Type*} [Field L] [Field E] [Algebra L E] (A₀ : ValuationSubring L)
local instance smulCommClass_vs : SMulCommClass (E ≃ₐ[L] E) A₀ E :=
  ⟨fun g a x => by
    rw [Algebra.smul_def, Algebra.smul_def, algebraMap_vs_apply, AlgEquiv.smul_def,
      AlgEquiv.smul_def, map_mul, AlgEquiv.commutes]⟩
instance topB : TopologicalSpace (integralClosure A₀ E)
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.discreteB
Source context 14 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Galois
variable {L E : Type*} [Field L] [Field E] [Algebra L E] (A₀ : ValuationSubring L)
local instance smulCommClass_vs : SMulCommClass (E ≃ₐ[L] E) A₀ E :=
  ⟨fun g a x => by
    rw [Algebra.smul_def, Algebra.smul_def, algebraMap_vs_apply, AlgEquiv.smul_def,
      AlgEquiv.smul_def, map_mul, AlgEquiv.commutes]⟩
/-- Use the discrete topology on the integral closure for the profinite action. -/
local instance topB : TopologicalSpace (integralClosure A₀ E) := ⊥
instance discreteB : DiscreteTopology (integralClosure A₀ E)
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.isOpen_setOf_smul_eq
Source context 15 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Galois
variable {L E : Type*} [Field L] [Field E] [Algebra L E] (A₀ : ValuationSubring L)
local instance smulCommClass_vs : SMulCommClass (E ≃ₐ[L] E) A₀ E :=
  ⟨fun g a x => by
    rw [Algebra.smul_def, Algebra.smul_def, algebraMap_vs_apply, AlgEquiv.smul_def,
      AlgEquiv.smul_def, map_mul, AlgEquiv.commutes]⟩
/-- Use the discrete topology on the integral closure for the profinite action. -/
local instance topB : TopologicalSpace (integralClosure A₀ E) := ⊥
local instance discreteB : DiscreteTopology (integralClosure A₀ E) := ⟨rfl⟩
theorem isOpen_setOf_smul_eq [Algebra.IsAlgebraic L E] (x b : integralClosure A₀ E) :
    IsOpen {g : E ≃ₐ[L] E | g • x = b}
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.continuousSMul_B
Source context 15 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Galois
variable {L E : Type*} [Field L] [Field E] [Algebra L E] (A₀ : ValuationSubring L)
local instance smulCommClass_vs : SMulCommClass (E ≃ₐ[L] E) A₀ E :=
  ⟨fun g a x => by
    rw [Algebra.smul_def, Algebra.smul_def, algebraMap_vs_apply, AlgEquiv.smul_def,
      AlgEquiv.smul_def, map_mul, AlgEquiv.commutes]⟩
/-- Use the discrete topology on the integral closure for the profinite action. -/
local instance topB : TopologicalSpace (integralClosure A₀ E) := ⊥
local instance discreteB : DiscreteTopology (integralClosure A₀ E) := ⟨rfl⟩
instance continuousSMul_B [Algebra.IsAlgebraic L E] :
    ContinuousSMul (E ≃ₐ[L] E) (integralClosure A₀ E)
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.isInvariant_B
Source context 16 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Galois
variable {L E : Type*} [Field L] [Field E] [Algebra L E] (A₀ : ValuationSubring L)
local instance smulCommClass_vs : SMulCommClass (E ≃ₐ[L] E) A₀ E :=
  ⟨fun g a x => by
    rw [Algebra.smul_def, Algebra.smul_def, algebraMap_vs_apply, AlgEquiv.smul_def,
      AlgEquiv.smul_def, map_mul, AlgEquiv.commutes]⟩
/-- Use the discrete topology on the integral closure for the profinite action. -/
local instance topB : TopologicalSpace (integralClosure A₀ E) := ⊥
local instance discreteB : DiscreteTopology (integralClosure A₀ E) := ⟨rfl⟩
local instance continuousSMul_B [Algebra.IsAlgebraic L E] :
    ContinuousSMul (E ≃ₐ[L] E) (integralClosure A₀ E) := by
  constructor
  rw [continuous_discrete_rng]
  intro b
  have hset : (fun q : (E ≃ₐ[L] E) × integralClosure A₀ E => q.1 • q.2) ⁻¹' {b} =
      ⋃ x : integralClosure A₀ E, {g : E ≃ₐ[L] E | g • x = b} ×ˢ {x} := by
    ext ⟨g, x⟩
    simp only [Set.mem_preimage, Set.mem_singleton_iff, Set.mem_iUnion,
      Set.mem_prod, Set.mem_ofPred_eq]
    constructor
    · intro h; exact ⟨x, h, rfl⟩
    · rintro ⟨y, hy, rfl⟩; exact hy
  rw [hset]
  exact isOpen_iUnion fun x => (isOpen_setOf_smul_eq A₀ x b).prod (isOpen_discrete _)
theorem isInvariant_B [IsGalois L E] :
    Algebra.IsInvariant A₀ (integralClosure A₀ E) (E ≃ₐ[L] E)
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.comap_smul
Source context 16 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Galois
variable {L E : Type*} [Field L] [Field E] [Algebra L E] (A₀ : ValuationSubring L)
local instance smulCommClass_vs : SMulCommClass (E ≃ₐ[L] E) A₀ E :=
  ⟨fun g a x => by
    rw [Algebra.smul_def, Algebra.smul_def, algebraMap_vs_apply, AlgEquiv.smul_def,
      AlgEquiv.smul_def, map_mul, AlgEquiv.commutes]⟩
/-- Use the discrete topology on the integral closure for the profinite action. -/
local instance topB : TopologicalSpace (integralClosure A₀ E) := ⊥
local instance discreteB : DiscreteTopology (integralClosure A₀ E) := ⟨rfl⟩
local instance continuousSMul_B [Algebra.IsAlgebraic L E] :
    ContinuousSMul (E ≃ₐ[L] E) (integralClosure A₀ E) := by
  constructor
  rw [continuous_discrete_rng]
  intro b
  have hset : (fun q : (E ≃ₐ[L] E) × integralClosure A₀ E => q.1 • q.2) ⁻¹' {b} =
      ⋃ x : integralClosure A₀ E, {g : E ≃ₐ[L] E | g • x = b} ×ˢ {x} := by
    ext ⟨g, x⟩
    simp only [Set.mem_preimage, Set.mem_singleton_iff, Set.mem_iUnion,
      Set.mem_prod, Set.mem_ofPred_eq]
    constructor
    · intro h; exact ⟨x, h, rfl⟩
    · rintro ⟨y, hy, rfl⟩; exact hy
  rw [hset]
  exact isOpen_iUnion fun x => (isOpen_setOf_smul_eq A₀ x b).prod (isOpen_discrete _)
theorem comap_smul (g : E ≃ₐ[L] E) (A : ValuationSubring E) :
    (g • A).comap (algebraMap L E) = A.comap (algebraMap L E)
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.exists_smul_eq_of_comap_eq
Source context 16 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Galois
variable {L E : Type*} [Field L] [Field E] [Algebra L E] (A₀ : ValuationSubring L)
local instance smulCommClass_vs : SMulCommClass (E ≃ₐ[L] E) A₀ E :=
  ⟨fun g a x => by
    rw [Algebra.smul_def, Algebra.smul_def, algebraMap_vs_apply, AlgEquiv.smul_def,
      AlgEquiv.smul_def, map_mul, AlgEquiv.commutes]⟩
/-- Use the discrete topology on the integral closure for the profinite action. -/
local instance topB : TopologicalSpace (integralClosure A₀ E) := ⊥
local instance discreteB : DiscreteTopology (integralClosure A₀ E) := ⟨rfl⟩
local instance continuousSMul_B [Algebra.IsAlgebraic L E] :
    ContinuousSMul (E ≃ₐ[L] E) (integralClosure A₀ E) := by
  constructor
  rw [continuous_discrete_rng]
  intro b
  have hset : (fun q : (E ≃ₐ[L] E) × integralClosure A₀ E => q.1 • q.2) ⁻¹' {b} =
      ⋃ x : integralClosure A₀ E, {g : E ≃ₐ[L] E | g • x = b} ×ˢ {x} := by
    ext ⟨g, x⟩
    simp only [Set.mem_preimage, Set.mem_singleton_iff, Set.mem_iUnion,
      Set.mem_prod, Set.mem_ofPred_eq]
    constructor
    · intro h; exact ⟨x, h, rfl⟩
    · rintro ⟨y, hy, rfl⟩; exact hy
  rw [hset]
  exact isOpen_iUnion fun x => (isOpen_setOf_smul_eq A₀ x b).prod (isOpen_discrete _)
theorem exists_smul_eq_of_comap_eq [IsGalois L E] {A A' : ValuationSubring E}
    (hA : A.comap (algebraMap L E) = A₀) (hA' : A'.comap (algebraMap L E) = A₀) :
    ∃ g : E ≃ₐ[L] E, g • A = A'
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.isIntegral_map_of_commutes
Source context 16 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Galois
variable {L E : Type*} [Field L] [Field E] [Algebra L E] (A₀ : ValuationSubring L)
local instance smulCommClass_vs : SMulCommClass (E ≃ₐ[L] E) A₀ E :=
  ⟨fun g a x => by
    rw [Algebra.smul_def, Algebra.smul_def, algebraMap_vs_apply, AlgEquiv.smul_def,
      AlgEquiv.smul_def, map_mul, AlgEquiv.commutes]⟩
/-- Use the discrete topology on the integral closure for the profinite action. -/
local instance topB : TopologicalSpace (integralClosure A₀ E) := ⊥
local instance discreteB : DiscreteTopology (integralClosure A₀ E) := ⟨rfl⟩
local instance continuousSMul_B [Algebra.IsAlgebraic L E] :
    ContinuousSMul (E ≃ₐ[L] E) (integralClosure A₀ E) := by
  constructor
  rw [continuous_discrete_rng]
  intro b
  have hset : (fun q : (E ≃ₐ[L] E) × integralClosure A₀ E => q.1 • q.2) ⁻¹' {b} =
      ⋃ x : integralClosure A₀ E, {g : E ≃ₐ[L] E | g • x = b} ×ˢ {x} := by
    ext ⟨g, x⟩
    simp only [Set.mem_preimage, Set.mem_singleton_iff, Set.mem_iUnion,
      Set.mem_prod, Set.mem_ofPred_eq]
    constructor
    · intro h; exact ⟨x, h, rfl⟩
    · rintro ⟨y, hy, rfl⟩; exact hy
  rw [hset]
  exact isOpen_iUnion fun x => (isOpen_setOf_smul_eq A₀ x b).prod (isOpen_discrete _)
theorem isIntegral_map_of_commutes (τ : L →+* L) (ψ : E →+* E)
    (hψτ : ∀ x : L, ψ (algebraMap L E x) = algebraMap L E (τ x))
    (hτ : ∀ a ∈ A₀, τ a ∈ A₀) {b : E} (hb : IsIntegral A₀ b) : IsIntegral A₀ (ψ b)
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.exists_smul_eq_and_forall_sub_mem_nonunits
Source context 16 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Galois
variable {L E : Type*} [Field L] [Field E] [Algebra L E] (A₀ : ValuationSubring L)
local instance smulCommClass_vs : SMulCommClass (E ≃ₐ[L] E) A₀ E :=
  ⟨fun g a x => by
    rw [Algebra.smul_def, Algebra.smul_def, algebraMap_vs_apply, AlgEquiv.smul_def,
      AlgEquiv.smul_def, map_mul, AlgEquiv.commutes]⟩
/-- Use the discrete topology on the integral closure for the profinite action. -/
local instance topB : TopologicalSpace (integralClosure A₀ E) := ⊥
local instance discreteB : DiscreteTopology (integralClosure A₀ E) := ⟨rfl⟩
local instance continuousSMul_B [Algebra.IsAlgebraic L E] :
    ContinuousSMul (E ≃ₐ[L] E) (integralClosure A₀ E) := by
  constructor
  rw [continuous_discrete_rng]
  intro b
  have hset : (fun q : (E ≃ₐ[L] E) × integralClosure A₀ E => q.1 • q.2) ⁻¹' {b} =
      ⋃ x : integralClosure A₀ E, {g : E ≃ₐ[L] E | g • x = b} ×ˢ {x} := by
    ext ⟨g, x⟩
    simp only [Set.mem_preimage, Set.mem_singleton_iff, Set.mem_iUnion,
      Set.mem_prod, Set.mem_ofPred_eq]
    constructor
    · intro h; exact ⟨x, h, rfl⟩
    · rintro ⟨y, hy, rfl⟩; exact hy
  rw [hset]
  exact isOpen_iUnion fun x => (isOpen_setOf_smul_eq A₀ x b).prod (isOpen_discrete _)
theorem exists_smul_eq_and_forall_sub_mem_nonunits [IsGalois L E] {A : ValuationSubring E}
    (hA : A.comap (algebraMap L E) = A₀) (τ : L ≃+* L) (ψ : E ≃+* E)
    (hψτ : ∀ x : L, ψ (algebraMap L E x) = algebraMap L E (τ x))
    (hτA₀ : ∀ x : L, τ x ∈ A₀ ↔ x ∈ A₀)
    (hτi : ∀ a ∈ A₀, τ a - a ∈ A₀.nonunits)
    (hψA : ∀ x : E, ψ x ∈ A ↔ x ∈ A) :
    ∃ g : E ≃ₐ[L] E, g • A = A ∧ ∀ x ∈ A, g • x - ψ x ∈ A.nonunits
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.isSeparable_map_of_commutes
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Aux
variable {K L Ω : Type*} [Field K] [Field L] [Field Ω] [Algebra K L] [Algebra K Ω]
  [Algebra L Ω] [IsScalarTower K L Ω]
theorem isSeparable_map_of_commutes (σ : Ω →+* Ω) (τ : L ≃+* L)
    (hσ : ∀ x : L, σ (algebraMap L Ω x) = algebraMap L Ω (τ x)) {x : Ω}
    (hx : IsSeparable L x) : IsSeparable L (σ x)
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.restrictSep

Restrict the lifted automorphism to the separable closure.

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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Aux
variable {K L Ω : Type*} [Field K] [Field L] [Field Ω] [Algebra K L] [Algebra K Ω]
  [Algebra L Ω] [IsScalarTower K L Ω]
def restrictSep (σ : Ω ≃ₐ[K] Ω) (τ : L ≃+* L)
    (hσ : ∀ x : L, σ (algebraMap L Ω x) = algebraMap L Ω (τ x)) :
    separableClosure L Ω ≃+* separableClosure L Ω
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.coe_restrictSep
Source context 13 commands

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

@[expose] public section
section
/-
Anthropic FLT upstream notice: Copyright 2026 Anthropic, PBC.
Released under Apache 2.0 license as described in the file LICENSE.
Adapted Anthropic FLT source (pinned revision):
https://github.com/anthropics/fermats-last-theorem/blob/6e837e75355538c7f80bab5b956861e86c4eacc2/P2M/Sol/S_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Aux
variable {K L Ω : Type*} [Field K] [Field L] [Field Ω] [Algebra K L] [Algebra K Ω]
  [Algebra L Ω] [IsScalarTower K L Ω]
omit [Algebra K L] [IsScalarTower K L Ω] in
theorem coe_restrictSep (σ : Ω ≃ₐ[K] Ω) (τ : L ≃+* L)
    (hσ : ∀ x : L, σ (algebraMap L Ω x) = algebraMap L Ω (τ x)) (s : separableClosure L Ω) :
    ((restrictSep σ τ hσ s : separableClosure L Ω) : Ω) = σ s
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.comap_smul_of_commutes
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Aux
variable {K L Ω : Type*} [Field K] [Field L] [Field Ω] [Algebra K L] [Algebra K Ω]
  [Algebra L Ω] [IsScalarTower K L Ω]
theorem comap_smul_of_commutes {S : Type*} [Field S] [Algebra L S] [Algebra S Ω]
    (ρΩ : Ω ≃ₐ[L] Ω) (ρS : S ≃ₐ[L] S)
    (h : ∀ s : S, ρΩ (algebraMap S Ω s) = algebraMap S Ω (ρS s)) (A : ValuationSubring Ω) :
    (ρΩ • A).comap (algebraMap S Ω) = ρS • A.comap (algebraMap S Ω)
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.restrictScalars_smul
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Aux
variable {K L Ω : Type*} [Field K] [Field L] [Field Ω] [Algebra K L] [Algebra K Ω]
  [Algebra L Ω] [IsScalarTower K L Ω]
theorem restrictScalars_smul (ρ : Ω ≃ₐ[L] Ω) (A : ValuationSubring Ω) :
    (ρ.restrictScalars K) • A = ρ • A
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.smul_eq_of_mem_inertiaSubgroupIn
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Aux
variable {K L Ω : Type*} [Field K] [Field L] [Field Ω] [Algebra K L] [Algebra K Ω]
  [Algebra L Ω] [IsScalarTower K L Ω]
theorem smul_eq_of_mem_inertiaSubgroupIn (A₀ : ValuationSubring L) {τ : L ≃ₐ[K] L}
    (h : τ ∈ A₀.inertiaSubgroupIn K) :
    τ • A₀ = A₀ ∧ ∀ a ∈ A₀, τ a - a ∈ A₀.nonunits
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.mem_inertiaSubgroupIn_of
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Aux
variable {K L Ω : Type*} [Field K] [Field L] [Field Ω] [Algebra K L] [Algebra K Ω]
  [Algebra L Ω] [IsScalarTower K L Ω]
theorem mem_inertiaSubgroupIn_of {σ : Ω ≃ₐ[K] Ω} {A : ValuationSubring Ω} (hσA : σ • A = A)
    (h : ∀ a ∈ A, σ a - a ∈ A.nonunits) : σ ∈ A.inertiaSubgroupIn K
AbelianVarieties.NOSProofs.ValuationInertiaLifting.ValuationSubring.InertiaLift.main
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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
namespace ValuationSubring
open _root_.ValuationSubring
namespace InertiaLift
open _root_.ValuationSubring
section Main
variable (K : Type u) [Field K] {L : Type u} [Field L] [Algebra K L]
    {Ω : Type u} [Field Ω] [Algebra K Ω] [Algebra L Ω] [IsScalarTower K L Ω] [Normal K Ω]
theorem main (A₀ : ValuationSubring L) (τ : L ≃ₐ[K] L) (hτ : τ ∈ A₀.inertiaSubgroupIn K) :
    ∃ (A : ValuationSubring Ω) (σ : Ω ≃ₐ[K] Ω),
      A.comap (algebraMap L Ω) = A₀ ∧ σ ∈ A.inertiaSubgroupIn K ∧
        ∀ x : L, σ (algebraMap L Ω x) = algebraMap L Ω (τ x)
ValuationSubring.exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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_ValuationSubring_exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_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.NOSProofs.ValuationInertiaLifting
open IsLocalRing
open scoped Pointwise
universe u
theorem _root_.ValuationSubring.exists_mem_inertiaSubgroupIn_and_forall_apply_algebraMap_eq
    (K : Type u) [Field K] {L : Type u} [Field L] [Algebra K L]
    {Ω : Type u} [Field Ω] [Algebra K Ω] [Algebra L Ω] [IsScalarTower K L Ω] [Normal K Ω]
    (A₀ : ValuationSubring L) (τ : L ≃ₐ[K] L) (hτ : τ ∈ A₀.inertiaSubgroupIn K) :
    ∃ (A : ValuationSubring Ω) (σ : Ω ≃ₐ[K] Ω),
      A.comap (algebraMap L Ω) = A₀ ∧ σ ∈ A.inertiaSubgroupIn K ∧
        ∀ x : L, σ (algebraMap L Ω x) = algebraMap L Ω (τ x)