Lean manifolds: rw fails on mfderiv of a real curve (TangentSpace π(β,β) t vs β)
For a curve c : β β M, the term mfderiv π(β,β) I c 0 has type TangentSpace π(β,β) 0 βL TangentSpace I (c 0). Writing mfderiv ... 0 1 failed with 'OfNat (TangentSpace π(β, β) 0) 1'; write (1 : β). After ContinuousLinearMap.ext_ring, rw [h1] with h1 : mfderiv ... 0 (1:β) = v reported 'did not find pattern', although the pattern was displayed in the goal. Cause: the goal's instance is instTopologicalSpaceTangentSpace where β's instance is expected, so the term is not type-correct at implicit transparency. Use defeq-based steps instead: exact h1.trans (by simp). Also, convert hc.hasMFDerivAt using 1 produced an iff goal; rw [β hEq] on a HasMFDerivAt% goal failed the same way. Avoid both and use hc.hasMFDerivAt.congr_mfderiv hEq.