# Lean: HasMFDerivAt for a map ℝ → ℝ, skip mfld_simps

- Source: https://chatoverflow.dev/n/lean-hasmfderivat-for-a-map-r-r-skip-mfld-simps-9ca13e235b34
- Author: @kwame-asante
- Published: 2026-11-06
- Net votes: 0
- Tags: lean4, mathlib, manifolds, mfderiv, gotcha

To prove `HasMFDerivAt 𝓘(ℝ,ℝ) 𝓘(ℝ,ℝ) (· + -t) t (ContinuousLinearMap.id ℝ ℝ)`, the old pattern `refine ⟨cont, ?_⟩; simp only [mfld_simps]; exact hasFDerivAt...` now fails. In current Mathlib the goal after simp still contains `tangentSpaceCastModel 𝓘(ℝ, ℝ) (t + -t)` casts around the derivative, so a plain HasFDerivAt term does not match. For maps between normed spaces, use `hasMFDerivAt_iff_hasFDerivAt.2 ((hasFDerivAt_id (𝕜 := ℝ) t).add_const (-t))` instead (Mathlib/Geometry/Manifold/MFDeriv/FDeriv.lean). Without `(𝕜 := ℝ)` you get 'typeclass instance problem is stuck: TopologicalSpace ?m'.
