Polynomial vector fields, invariant algebraic curves, algebraic limit cycles and
DefinitionHilbertSixteenth_PolyFieldsWrite for real polynomials in two variables.
- A polynomial vector field is a pair with , i.e. the system , . Its degree is (total degrees).
- For write . The curve is an invariant algebraic curve with cofactor if .
- A limit cycle of is algebraic if it is contained in the real zero set of a non-zero polynomial .
- The number of algebraic limit cycles of is the cardinality of the set of its algebraic limit cycles, in .
- The algebraic Hilbert number is
- A family of polynomials is generic if, with points of the affine plane taken in and "distinct" meaning "not scalar multiples of each other": (i) no has a point where ; (ii) the highest-degree homogeneous part of each is square-free; (iii) at every common zero of two distinct the gradients are linearly independent, ; (iv) no point is a common zero of three pairwise distinct members of ; (v) the highest-degree homogeneous parts of two distinct members of have no common non-unit factor. has generic invariant curves if the set of its irreducible invariant algebraic curves is generic.
- The generic bound is for even and for odd .
- The bounded components of are the bounded connected components of its real zero set.
These objects are the language of Problems 6–7, Theorem 4, the conjectures and Christopher's theorem.
Formalization Note Polynomials are MvPolynomial (Fin 2) ℝ with variable 0 as and 1 as . The zero polynomial has degree . Counts are Set.encard values in ℕ∞ and is an iSup in ℕ∞, so unbounded or infinite counts give . The source's genericity conditions do not specify real or complex points; complex points are used here, which makes the genericity hypothesis of Theorem 4 stronger (hence Theorem 4 weaker).
import Definitions.Def_HilbertSixteenth_Dynamics
/-!
# Polynomial vector fields, invariant algebraic curves and algebraic limit cycles
Source: J. Llibre, *Sobre el problema 16 de Hilbert*, La Gaceta de la RSME 18 (2015),
no. 3, 543–554: equation (1), Problems 6–7 (algebraic limit cycles, algebraic Hilbert
number), §7 equations (3)–(4) (invariant algebraic curves, cofactor), conditions (i)–(v)
(generic invariant curves), and Theorem 2 (bounded components of an algebraic curve).
Polynomials in `x, y` are elements of `MvPolynomial (Fin 2) ℝ`, with variable `0` playing
the role of `x` and variable `1` the role of `y`.
-/
namespace HilbertSixteenth
/-- Real polynomials in the two variables `x = X 0`, `y = X 1`. -/
abbrev Poly2 := MvPolynomial (Fin 2) ℝ
/-- Evaluation of a polynomial `f(x, y)` at the point `p = (x, y)`. -/
noncomputable def evalAt (f : Poly2) (p : ℝ × ℝ) : ℝ := MvPolynomial.eval ![p.1, p.2] f
/-- The real zero set `{(x, y) ∈ ℝ² : f(x, y) = 0}`. -/
def zeroSet (f : Poly2) : Set (ℝ × ℝ) := {p | evalAt f p = 0}
/-- A polynomial vector field `P ∂/∂x + Q ∂/∂y`, i.e. the system `ẋ = P(x,y), ẏ = Q(x,y)`. -/
structure PolyField where
/-- The `x`-component `P`. -/
P : Poly2
/-- The `y`-component `Q`. -/
Q : Poly2
/-- The degree of the polynomial vector field: the maximum of the degrees of `P` and `Q`. -/
noncomputable def PolyField.degree (V : PolyField) : ℕ :=
max V.P.totalDegree V.Q.totalDegree
/-- The polynomial vector field as a map `ℝ² → ℝ²`. -/
noncomputable def PolyField.toField (V : PolyField) : ℝ × ℝ → ℝ × ℝ :=
fun p => (evalAt V.P p, evalAt V.Q p)
/-- The action of the vector field on polynomials: `X f = P ∂f/∂x + Q ∂f/∂y`. -/
noncomputable def PolyField.derivation (V : PolyField) (f : Poly2) : Poly2 :=
V.P * MvPolynomial.pderiv 0 f + V.Q * MvPolynomial.pderiv 1 f
/-- `f = 0` is an invariant algebraic curve of `V` with cofactor `K`: `X f = K f`
(equation (4) of the source). -/
def IsInvariantCurve (V : PolyField) (f K : Poly2) : Prop :=
V.derivation f = K * f
/-- An algebraic limit cycle: a limit cycle contained in the zero set of a non-zero
polynomial. -/
def IsAlgebraicLimitCycle (V : PolyField) (O : Set (ℝ × ℝ)) : Prop :=
IsLimitCycle V.toField O ∧ ∃ f : Poly2, f ≠ 0 ∧ O ⊆ zeroSet f
/-- The number of algebraic limit cycles of `V` (in `ℕ∞`; `⊤` if there are infinitely many). -/
noncomputable def numAlgebraicLimitCycles (V : PolyField) : ℕ∞ :=
{O : Set (ℝ × ℝ) | IsAlgebraicLimitCycle V O}.encard
/-- The algebraic Hilbert number `Hₐ(d)`: the supremum, over all polynomial vector fields of
degree at most `d`, of the number of algebraic limit cycles (`⊤` if unbounded). -/
noncomputable def algebraicHilbertNumber (d : ℕ) : ℕ∞ :=
⨆ (V : PolyField) (_ : V.degree ≤ d), numAlgebraicLimitCycles V
/-- The homogeneous part of highest degree of `f`. -/
noncomputable def topForm (f : Poly2) : Poly2 :=
MvPolynomial.homogeneousComponent f.totalDegree f
/-- Evaluation of a real polynomial at a complex point `z = (z₀, z₁) ∈ ℂ²`. -/
noncomputable def cEval (f : Poly2) (z : Fin 2 → ℂ) : ℂ := MvPolynomial.aeval z f
/-- A family `S` of algebraic curves is *generic* (conditions (i)–(v) of the source, with
points of the affine plane taken in `ℂ²`; curves are distinct when they are not
associated, i.e. not scalar multiples of each other):
(i) no curve has a singular point;
(ii) the highest-degree homogeneous part of each curve is square-free;
(iii) two distinct curves meet transversally (their gradients are independent at every
common point);
(iv) no point lies on three distinct curves;
(v) the highest-degree homogeneous parts of two distinct curves have no common factor. -/
def IsGenericFamily (S : Set Poly2) : Prop :=
(∀ f ∈ S, ∀ z : Fin 2 → ℂ,
¬ (cEval f z = 0 ∧ cEval (MvPolynomial.pderiv 0 f) z = 0 ∧
cEval (MvPolynomial.pderiv 1 f) z = 0)) ∧
(∀ f ∈ S, Squarefree (topForm f)) ∧
(∀ f ∈ S, ∀ g ∈ S, ¬ Associated f g → ∀ z : Fin 2 → ℂ, cEval f z = 0 → cEval g z = 0 →
cEval (MvPolynomial.pderiv 0 f) z * cEval (MvPolynomial.pderiv 1 g) z -
cEval (MvPolynomial.pderiv 1 f) z * cEval (MvPolynomial.pderiv 0 g) z ≠ 0) ∧
(∀ f ∈ S, ∀ g ∈ S, ∀ h ∈ S, ¬ Associated f g → ¬ Associated f h → ¬ Associated g h →
∀ z : Fin 2 → ℂ, ¬ (cEval f z = 0 ∧ cEval g z = 0 ∧ cEval h z = 0)) ∧
(∀ f ∈ S, ∀ g ∈ S, ¬ Associated f g → IsRelPrime (topForm f) (topForm g))
/-- The irreducible invariant algebraic curves of `V`. -/
def invariantIrreducibleCurves (V : PolyField) : Set Poly2 :=
{f | Irreducible f ∧ ∃ K : Poly2, IsInvariantCurve V f K}
/-- All invariant algebraic curves of `V` are generic. -/
def HasGenericInvariantCurves (V : PolyField) : Prop :=
IsGenericFamily (invariantIrreducibleCurves V)
/-- The bound of Theorem 4: `1 + (d-1)(d-2)/2` for even `d`, `(d-1)(d-2)/2` for odd `d`. -/
def genericAlgebraicBound (d : ℕ) : ℕ :=
if Even d then 1 + (d - 1) * (d - 2) / 2 else (d - 1) * (d - 2) / 2
/-- The bounded connected components of the real algebraic curve `f = 0`. -/
def boundedComponents (f : Poly2) : Set (Set (ℝ × ℝ)) :=
{C | ∃ p ∈ zeroSet f, C = connectedComponentIn (zeroSet f) p ∧ Bornology.IsBounded C}
end HilbertSixteenth
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; NON-BLIND
Disclosure — NON-BLIND read-back. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statements of this proposal, at the explicit request of the proposal owner. It is not independent testimony: its author knew the intended meaning of the code while writing it, so it may unconsciously read that intent into the code. Reviewers should compare the Lean code against the source directly and should not treat this text as an independent audit.
Polynomials are elements of (multivariate polynomials in two variables indexed by , ).
- Evaluation and zero set. for is evaluated at , . The zero set of is (real points only; ).
- Polynomial vector field. A pair of polynomials, with no further conditions (both may be zero; they may share factors). Its degree is , where the zero polynomial has total degree . As a map , .
- Derivation. .
- Invariant curve. For polynomials : is an invariant curve of with cofactor iff as polynomials. No condition such as or non-constant is imposed ( and non-zero constants with qualify).
- Algebraic limit cycle. is an algebraic limit cycle of iff is a limit cycle of the map (in the sense of the Dynamics definitions) and there exists a non-zero polynomial (of any degree) with .
- Number of algebraic limit cycles. is the cardinality of the set of algebraic limit cycles of ; it is if that set is infinite.
- Algebraic Hilbert number. For ,
computed in (supremum if unbounded). Fields of every degree , including degree (constant fields), are included.
- Top form. is the homogeneous component of of degree (; for a non-zero constant , ).
- Complex evaluation. for is evaluated at the complex point .
- Generic family. A set is generic iff all five hold:
- for every there is no with ;
- for every , is square-free in (no square of a non-unit divides it);
- for all that are not associated (not related by multiplication by a non-zero real constant) and every with : ;
- for all pairwise non-associated, there is no with ;
- for all non-associated , and are relatively prime (every common divisor is a unit, i.e. a non-zero constant). The empty set is generic.
- Invariant irreducible curves. (closed under multiplication by non-zero constants). has generic invariant curves iff is generic; this holds vacuously if has no irreducible invariant curves.
- Generic bound. For , if is even and if is odd, with truncated natural-number subtraction (so for : and ; ). For the product is even and the division is exact.
- Bounded components. For a polynomial , the family of sets such that is the connected component, inside the subspace , of some point , and is bounded.