Skip to content

Commit 252139d

Browse files
e-271828wwylele
andauthored
Update Mathlib/Analysis/Calculus/DSlope.lean
Apply suggestion from wwylele to simplify proof using sub_smul_dslope Co-authored-by: Weiyi Wang <wwylele@gmail.com>
1 parent 6c7d871 commit 252139d

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Mathlib/Analysis/Calculus/DSlope.lean

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,7 @@ variable {E : Type*} [NormedAddCommGroup E] [NormedSpace 𝕜 E]
148148
/-- If `f a = 0`, then `f b = (b - a) • dslope f a b`. -/
149149
lemma eq_smul_dslope_of_zero {f : 𝕜 → E} {a : 𝕜} (hf : f a = 0) (b : 𝕜) :
150150
f b = (b - a) • dslope f a b := by
151-
by_cases h : b = a
152-
· simp [h, hf]
153-
· -- 正しく関数 f を渡して dslope を slope に展開する
154-
rw [dslope_of_ne f h]
155-
-- slope の定義(傾きの式)に強制的に書き換える
156-
change f b = (b - a) • ((b - a)⁻¹ • (f b - f a))
157-
-- (b - a) * (b - a)⁻¹ = 1 となることを用いて代数的に約分する
158-
rw [← mul_smul, mul_inv_cancel₀ (sub_ne_zero.mpr h)]
159-
rw [one_smul, hf, sub_zero]
151+
simp [hf]
160152

161153
/-- If `f` and its first `n-1` iterated dslopes at `a` vanish,
162154
then `f b = (b - a) ^ n • (Function.swap dslope a)^[n] f b`. -/

0 commit comments

Comments
 (0)