Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Complete greedy classification for every real-rooted source

Proved
DerivativeChainContinuation.real_greedy_all_histories

by labuka · Oct 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

continuation-20261027derivative-chainsgreedynearest-parent

For a nonempty labelled tuple a=(a_0,…,a_n)∈ℂ^(n+1), put N=n+1 and p_a(X)=∏(j=0)^n(X-a_j). Its ordinary row of degree m is P_m=p_a differentiated N-m times, for 1≤m≤N. An actual greedy location history z=(z_0,…,z_n) satisfies P(i+1)(z_i)=0 and |z_(i+1)-z_i|≤|w-z_i| for every i<n and every complex root w of P_(i+2). Its length is L(z)=Σ_(i=0)^(n-1)|z_(i+1)-z_i|. Repeated root values and every local tie are allowed. For real source roots let u=(Σ_j a_j)/N, A=min_j a_j, and B=max_j a_j, with multiplicities retained. Assume n≥1; no sorting or distinctness condition is imposed on a. There is a monotone real root list r_k of length k+1 for every ordinary row, with the sorted source tuple as the top row and the exact derivative relation between consecutive row products. Every complex root of every actual row is an entry of that real row list. An actual greedy history is exactly one of the complete smallest-root and largest-root histories. Their lengths are u-A and B-u, respectively, and a greedy history of length at most (B-A)/2 exists.

Preamble
import Mathlib
import Definitions.Def_DerivativeChainContinuation_GreedyActual
import Definitions.Def_DerivativeChainContinuation_GreedyReal
import Definitions.Def_DerivativeChainContinuation_GreedyStatement
import Definitions.Def_DerivativeChainContinuation_RealTower
import Definitions.Def_DerivativeChainContinuation_RealTransportGeneral
import Definitions.Def_DerivativeChainPrivate_foundations
set_option autoImplicit false
set_option backward.isDefEq.respectTransparency false
set_option maxHeartbeats 1600000
open Polynomial DerivativeChainPrivate
namespace DerivativeChainContinuation
end DerivativeChainContinuation
open DerivativeChainContinuation
open scoped BigOperators
Formal statement
theorem DerivativeChainContinuation.real_greedy_all_histories (n : ℕ) (hn : 1≤n) (a : Fin (n+1) → ℝ) :
    ∃ r : RealRows, r n=orderedSource a ∧
      (∀ k≤n,Monotone (r k)) ∧ (∀ k<n,RealRowStep r k) ∧
      (∀ k≤n,∀ w : ℂ,
        (row (fun i => (a i : ℂ)) (k+1)).eval w=0 ↔
          ∃ j : Fin (k+1),w=(r k j : ℂ)) ∧
      (∀ z : Fin (n+1) → ℂ, IsGreedyChain (fun i => (a i : ℂ)) z ↔
        (∀ i,z i=(leftRow r i.val : ℂ)) ∨
        (∀ i,z i=(rightRow r i.val : ℂ))) ∧
      (∀ z : Fin (n+1) → ℂ, IsGreedyChain (fun i => (a i : ℂ)) z →
        chainCost z=realCentroid a-orderedSource a 0 ∨
        chainCost z=orderedSource a (Fin.last n)-realCentroid a) ∧
      (∃ z : Fin (n+1) → ℂ, IsGreedyChain (fun i => (a i : ℂ)) z ∧
        chainCost z≤(orderedSource a (Fin.last n)-orderedSource a 0)/2) := by sorry
Source
Private analytic checkpoint d69f598e254dee1915468fa93b3e33b8e1b5b7d6: research-results/unified-20261025/greedy/RAY_THEOREM.md, SHA-256 0d8a115e7059d0fae02ca0217cd20d64fc1baaf2a83795a4b171fa556be44a57. Local formal commit 7200800a2f88105b736aa292a1ec518302074d94 (not asserted pushed), submission_sync/new_formal/greedy/GreedyStatement.lean, lines 39-64, SHA-256 b0b4225b71610ef2d6a2e072dc060bf94cb556fe8b6c938713302f20f8d9fac9.

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