Liouville's theorem (differential algebra)
ProvedLiouvilleDiffAlg.liouville_basic_theoremLet be differential fields of characteristic zero with the same constants, , and suppose that is an elementary differential extension of . Suppose and satisfy (that is, contains an antiderivative of ). Then there exist , constants , nonzero elements and such that
In words: if has an antiderivative in an elementary extension of , then that antiderivative is an element of plus a constant linear combination of logarithms of elements of . This is the theorem on which the Risch algorithm is based.
Formalization Note The characteristic-zero hypothesis is not written in the source article. It is the standing convention of the theorem in its standard references (Rosenlicht 1972; Geddes–Czapor–Labahn §12.4). The equality of constants is stated as: the image of in equals .
import Mathlib import Definitions.Def_LiouvilleDiffAlg_Basic open scoped Differential
namespace LiouvilleDiffAlg
theorem liouville_basic_theorem {F G : Type*} [Field F] [Field G] [Differential F]
[Differential G] [Algebra F G] [DifferentialAlgebra F G] [CharZero F]
(hcon : algebraMap F G '' constants F = constants G)
(helem : IsElementaryDifferentialExtension F G)
(f : F) (g : G) (hg : g′ = algebraMap F G f) :
∃ (n : ℕ) (c : Fin n → F) (u : Fin n → F) (v : F),
(∀ i, c i ∈ constants F) ∧ (∀ i, u i ≠ 0) ∧
f = ∑ i, c i * ((u i)′ / u i) + v′ := by sorry
end LiouvilleDiffAlg
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.
Let and be fields, each with a derivation (over ), with an algebra map commuting with the derivations (), and assume has characteristic zero. Assume:
- (equality of sets);
- is an elementary differential extension of : there are and intermediate fields , , where each () is generated over by and a single . This is algebraic over , or transcendental over with for some nonzero , or transcendental over with for some , with derivatives computed in ;
- and with .
Then there exist (possibly ), elements with , elements with every , and such that, in ,
When the sum is empty and the conclusion says .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.