Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Constants, logarithmic/exponential extensions, elementary differential extensions

Definition
LiouvilleDiffAlg_Basic

by LG · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

differential-algebrafield-theory

Basic notions of differential algebra, following the section "Definitions" of the source.

Let FFF be a differential field with derivation DDD.

  1. The constants of FFF are Con⁡(F)={f∈F:Df=0}\operatorname{Con}(F) = \{ f \in F : Df = 0 \}Con(F)={f∈F:Df=0} (constants F).
  2. Let GGG be a differential field extension of FFF and KKK an intermediate field. An element t∈Gt \in Gt∈G is a logarithmic generator over KKK if ttt is transcendental over KKK and Dt=Ds/sDt = Ds/sDt=Ds/s for some nonzero s∈Ks \in Ks∈K. It is an exponential generator over KKK if ttt is transcendental over KKK and Dt/t=DsDt/t = DsDt/t=Ds for some s∈Ks \in Ks∈K.
  3. GGG is a logarithmic extension of FFF if G=F(t)G = F(t)G=F(t) with ttt transcendental over FFF and Dt=Ds/sDt = Ds/sDt=Ds/s for some nonzero s∈Fs\in Fs∈F. It is an exponential extension if G=F(t)G = F(t)G=F(t) with ttt transcendental over FFF and Dt/t=DsDt/t = DsDt/t=Ds for some s∈Fs \in Fs∈F.
  4. GGG is an elementary differential extension of FFF if there is a finite chain
F=K0⊆K1⊆⋯⊆Km=GF = K_0 \subseteq K_1 \subseteq \cdots \subseteq K_m = GF=K0​⊆K1​⊆⋯⊆Km​=G

of intermediate fields with Ki+1=Ki(ti)K_{i+1} = K_i(t_i)Ki+1​=Ki​(ti​), where each tit_iti​ is algebraic over KiK_iKi​, a logarithmic generator over KiK_iKi​, or an exponential generator over KiK_iKi​.

These definitions are shared by every statement of the mission.

Formalization Note A differential field is a Field with a Differential instance. The extension is an Algebra F G with DifferentialAlgebra F G. Intermediate fields are IntermediateField F G, and Ki(ti)K_i(t_i)Ki​(ti​) is IntermediateField.adjoin F (insert t (K i)). All derivatives in the chain are taken in GGG.

Definition code
import Mathlib

namespace LiouvilleDiffAlg

open scoped Differential

/-- The constants of a differential field `F`: `Con(F) = {f ∈ F : Df = 0}`. -/
def constants (F : Type*) [Field F] [Differential F] : Set F :=
  {f | f′ = 0}

section Steps

variable {F G : Type*} [Field F] [Field G] [Differential G] [Algebra F G]

/-- `t ∈ G` is a *logarithmic generator* over the intermediate field `K` of `G / F`:
`t` is transcendental over `K` and `Dt = Ds / s` for some nonzero `s ∈ K`. -/
def IsLogarithmicOver (K : IntermediateField F G) (t : G) : Prop :=
  Transcendental K t ∧ ∃ s ∈ K, s ≠ 0 ∧ t′ = s′ / s

/-- `t ∈ G` is an *exponential generator* over the intermediate field `K` of `G / F`:
`t` is transcendental over `K` and `Dt / t = Ds` for some `s ∈ K`. -/
def IsExponentialOver (K : IntermediateField F G) (t : G) : Prop :=
  Transcendental K t ∧ ∃ s ∈ K, t′ / t = s′

end Steps

section Extensions

variable (F G : Type*) [Field F] [Field G] [Differential F] [Differential G]
  [Algebra F G] [DifferentialAlgebra F G]

/-- `G` is a *logarithmic extension* of `F`: `G = F(t)` for some `t` transcendental over `F`
with `Dt = Ds / s` for some nonzero `s ∈ F`. -/
def IsLogarithmicExtension : Prop :=
  ∃ t : G, IntermediateField.adjoin F {t} = ⊤ ∧ Transcendental F t ∧
    ∃ s : F, s ≠ 0 ∧ t′ = (algebraMap F G s)′ / algebraMap F G s

/-- `G` is an *exponential extension* of `F`: `G = F(t)` for some `t` transcendental over `F`
with `Dt / t = Ds` for some `s ∈ F`. -/
def IsExponentialExtension : Prop :=
  ∃ t : G, IntermediateField.adjoin F {t} = ⊤ ∧ Transcendental F t ∧
    ∃ s : F, t′ / t = (algebraMap F G s)′

/-- `G` is an *elementary differential extension* of `F`: there is a finite chain of
intermediate fields `F = K₀ ⊆ K₁ ⊆ ⋯ ⊆ Kₘ = G` such that each `Kᵢ₊₁ = Kᵢ(tᵢ)` is obtained
from `Kᵢ` by adjoining a single element `tᵢ` which is algebraic over `Kᵢ`, or a logarithmic
generator over `Kᵢ`, or an exponential generator over `Kᵢ`. -/
def IsElementaryDifferentialExtension : Prop :=
  ∃ (m : ℕ) (K : ℕ → IntermediateField F G), K 0 = ⊥ ∧ K m = ⊤ ∧
    ∀ i < m, ∃ t : G, K (i + 1) = IntermediateField.adjoin F (insert t (K i : Set G)) ∧
      (IsAlgebraic (K i) t ∨ IsLogarithmicOver (K i) t ∨ IsExponentialOver (K i) t)

end Extensions

end LiouvilleDiffAlg
Source
Wikipedia, "Liouville's theorem (differential algebra)", revision oldid=1349223559, https://en.wikipedia.org/w/index.php?title=Liouville%27s_theorem_(differential_algebra)&oldid=1349223559, section "Definitions"
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic)

Non-blind read-back — not independent testimony. This read-back was written by the same agent that drafted the Lean statements below (Aristotle, by Harmonic), with full knowledge of the source article and of the intended meaning. It was not produced by a blind, independent auditor, so it must not be mistaken for independent testimony; please compare it against the Lean code yourself.

All objects live over a field FFF and a field GGG with a ring map F→GF \to GF→G (an algebra structure). DDD denotes the given derivation on the relevant field; on GGG it is the derivation of GGG.

  • Constants. For a field FFF with derivation DDD, constants⁡(F)\operatorname{constants}(F)constants(F) is the set {f∈F:Df=0}\{f \in F : Df = 0\}{f∈F:Df=0}. It is defined as a set, not as a subfield.

  • Logarithmic generator over KKK. Here F,GF, GF,G are fields, GGG has a derivation DDD and is an FFF-algebra, and KKK is an intermediate field of G/FG/FG/F; no derivation on FFF is used. t∈Gt \in Gt∈G qualifies if (i) ttt is transcendental over KKK, and (ii) there is s∈Ks \in Ks∈K with s≠0s \neq 0s=0 and

Dt=Dss,Dt = \frac{Ds}{s},Dt=sDs​,

with both derivatives computed in GGG.

  • Exponential generator over KKK (same setting). t∈Gt \in Gt∈G qualifies if ttt is transcendental over KKK and there is s∈Ks \in Ks∈K with
Dtt=Ds\frac{Dt}{t} = DstDt​=Ds

(computed in GGG; since ttt is transcendental, t≠0t \neq 0t=0).

  • Logarithmic extension. Now FFF and GGG both carry derivations and the embedding ι:F→G\iota : F \to Gι:F→G commutes with them. The property holds if there is t∈Gt \in Gt∈G such that the intermediate field generated by ttt over FFF is all of GGG, ttt is transcendental over FFF, and there is s∈Fs \in Fs∈F, s≠0s \neq 0s=0, with Dt=D(ιs)/ιsDt = D(\iota s)/\iota sDt=D(ιs)/ιs.

  • Exponential extension (same setting). There is t∈Gt \in Gt∈G generating GGG over FFF, transcendental over FFF, and s∈Fs \in Fs∈F with Dt/t=D(ιs)Dt/t = D(\iota s)Dt/t=D(ιs).

  • Elementary differential extension (same setting). There exist m∈Nm \in \mathbb{N}m∈N and a sequence K0,K1,K2,…K_0, K_1, K_2, \dotsK0​,K1​,K2​,… of intermediate fields of G/FG/FG/F with K0K_0K0​ the bottom field (the image of FFF) and Km=GK_m = GKm​=G, such that for every i<mi < mi<m there is t∈Gt \in Gt∈G with Ki+1K_{i+1}Ki+1​ equal to the intermediate field generated over FFF by Ki∪{t}K_i \cup \{t\}Ki​∪{t}, and ttt is either algebraic over KiK_iKi​, or a logarithmic generator over KiK_iKi​, or an exponential generator over KiK_iKi​ (in the senses above, using the derivation of GGG). Terms KjK_jKj​ with j>mj > mj>m are unconstrained. The case m=0m = 0m=0 forces G=G = G= image of FFF. There is no explicit hypothesis that each KiK_iKi​ is closed under DDD, and no characteristic assumption.

Human review
  • Endorsed by Shuze Chen · Oct 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Oct 1, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me