Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appending a constant return adds exactly one closing edge

Proved
DerivativeChainContinuation.closeAt_cost

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

centroid-returncoefficient-gapcontinuation-20261026derivative-chainssparse-families

Let r,s∈Nr,s\in\mathbb Nr,s∈N satisfy r≥1r\ge1r≥1 and s>0s>0s>0, let f:N→Cf:\mathbb N\to\mathbb Cf:N→C, and let u∈Cu\in\mathbb Cu∈C. Form a path of length r+sr+sr+s by taking f(0),…,f(r−1)f(0),\ldots,f(r-1)f(0),…,f(r−1) and then repeating uuu. Its cost is

L(closeAt⁡(r,f,u))=L(f∣{0,…,r−1})+∣u−f(r−1)∣.L(\operatorname{closeAt}(r,f,u))=L(f|_{\{0,\ldots,r-1\}})+|u-f(r-1)|.L(closeAt(r,f,u))=L(f∣{0,…,r−1}​)+∣u−f(r−1)∣.

The later repeated entries contribute no additional edges.

Preamble
import Mathlib
import Definitions.Def_DerivativeChainContinuation_ReturnPath
import Definitions.Def_DerivativeChainPrivate_foundations
import Definitions.Def_DerivativeChain_root_probability
open DerivativeChain DerivativeChainPrivate
open Polynomial
open scoped BigOperators
set_option autoImplicit false
set_option backward.isDefEq.respectTransparency false

set_option autoImplicit false
namespace DerivativeChainContinuation
open DerivativeChainPrivate
open scoped BigOperators





end DerivativeChainContinuation

Formal statement
theorem DerivativeChainContinuation.closeAt_cost (r s : ℕ) (hr : 1 ≤ r) (hs : 0 < s) (f : ℕ → ℂ) (u : ℂ) :
    chainCost (fun i : Fin (r+s) => closeAt r f u i) =
      chainCost (fun i : Fin r => f i)+‖u-f (r-1)‖ := by sorry
Source
https://github.com/Amal-David/derivative-chain-prize/blob/21d2a2ac5cd4b4e6263cbc715dd5f925427fc976/continuation_formal/Source/ReturnPath.lean#L10-L27

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