Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 1ff3585

Browse files
sgouezelmergify[bot]
authored andcommitted
feat(analysis/calculus/times_cont_diff): adding a lemma (#1358)
* feat(analysis/calculus/times_cont_diff): adding a lemma * doc * change k to \bbk
1 parent 3b19503 commit 1ff3585

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/analysis/calculus/times_cont_diff.lean

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Authors: Sébastien Gouëzel
77
import analysis.calculus.deriv
88

99
/-!
10-
# Higher differentiabiliity
10+
# Higher differentiability
1111
1212
A function is `C^1` on a domain if it is differentiable there, and its derivative is continuous.
1313
By induction, it is `C^n` if it is `C^{n-1}` and its (n-1)-th derivative is `C^1` there or,
@@ -430,6 +430,18 @@ lemma times_cont_diff_on.continuous_on_fderiv_within
430430
continuous_on (fderiv_within 𝕜 f s) s :=
431431
h.1 1 hn
432432

433+
/-- If a function is at least C^1 on a set, it is differentiable there. -/
434+
lemma times_cont_diff_on.differentiable_on
435+
{n : with_top ℕ} (h : times_cont_diff_on 𝕜 n f s) (hn : 1 ≤ n) :
436+
differentiable_on 𝕜 f s :=
437+
begin
438+
refine h.2 0 _,
439+
refine lt_of_lt_of_le _ hn,
440+
change ((0 : ℕ) : with_top ℕ) < (1 : ℕ),
441+
rw with_top.coe_lt_coe,
442+
exact zero_lt_one
443+
end
444+
433445
set_option class.instance_max_depth 50
434446

435447
/--

0 commit comments

Comments
 (0)