Skip to content

Commit aa7675a

Browse files
committed
fix: forgotten lemma about derivability of sqrt
1 parent 331a700 commit aa7675a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG_UNRELEASED.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
### Added
66

7+
- in `realfun.v`:
8+
+ lemma `derivable_sqrt`
9+
710
### Changed
811

912
### Renamed

theories/realfun.v

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1943,9 +1943,12 @@ rewrite -[x]sqrtK//; apply: (@is_derive_inverse _ (fun x => x ^+ 2)).
19431943
- by rewrite mulf_neq0// gt_eqF// sqrtr_gt0 exprn_gt0// sqrtr_gt0.
19441944
Unshelve. all: by end_near. Qed.
19451945

1946+
Lemma derivable_sqrt {K : realType} (x : K) : 0 < x -> derivable Num.sqrt x 1.
1947+
Proof. by move=> x0; exact/ex_derive/is_derive1_sqrt. Qed.
1948+
19461949
Lemma derive_sqrt {K : realType} (r : K) : 0 < r ->
19471950
'D_1 Num.sqrt r = (2 * Num.sqrt r)^-1.
1948-
Proof. by move=> r0; apply: derive_val; exact: is_derive1_sqrt. Qed.
1951+
Proof. by move=> r0; exact/derive_val/is_derive1_sqrt. Qed.
19491952

19501953
#[global] Hint Extern 0 (is_derive _ _ (fun _ => (_ _)^-1) _) =>
19511954
(eapply is_deriveV; first by []) : typeclass_instances.

0 commit comments

Comments
 (0)