Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Derivative at a shifted base point, both directions

Proved
MovingSofa.ForMathlib.hasDerivAt_comp_add_const_iff

by Tamas Fulop · Sep 29, 2026 · Mathlib c5ea003 (Lean v4.30.0)

calculus

Let f:K→Ff:\mathbb{K}\to Ff:K→F with derivative f′f'f′ (K\mathbb{K}K a nontrivially normed field). For shift aaa and base xxx,

HasDerivAt(u↦f(u+a),f′,x)  ⟺  HasDerivAt(f,f′,x+a).\mathrm{HasDerivAt}(u\mapsto f(u+a),f',x)\iff\mathrm{HasDerivAt}(f,f',x+a).HasDerivAt(u↦f(u+a),f′,x)⟺HasDerivAt(f,f′,x+a).

The forward direction shifts back by −a-a−a; the converse is Mathlib's comp_add_const.

Preamble
import Mathlib.Analysis.Calculus.Deriv.Shift
Formal statement
namespace MovingSofa.ForMathlib

theorem hasDerivAt_comp_add_const_iff {𝕜 : Type*} [NontriviallyNormedField 𝕜] {F : Type*} [NormedAddCommGroup F] [NormedSpace 𝕜 F] {f : 𝕜 → F} {f' : F} (x a : 𝕜) : HasDerivAt (fun u ↦ f (u + a)) f' x ↔ HasDerivAt f f' (x + a) := by sorry

end MovingSofa.ForMathlib
Source
https://github.com/deancureton/MovingSofa/blob/4d5569131940815f47a9ccf3e90a4c5043c56127/MovingSofa/ForMathlib/Analysis/Calculus/Deriv/Shift.lean#L11-L13

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