Skip to content

Commit

Permalink
cderiv rule for if with condition depending on x
Browse files Browse the repository at this point in the history
  • Loading branch information
lecopivo committed Nov 27, 2023
1 parent ce8dc90 commit fe9321e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions SciLean/Core/FunctionTransformations/CDeriv.lean
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,18 @@ by
case isFalse h => ext y; simp[h]


-- not sure about the differentiability condition on `e`
theorem ite.arg_chte.cderiv_rule
(c : X → Prop) [dec : ∀ x, Decidable (c x)] (t e : X → Y)
(ht : ∀ x ∈ closure c, IsDifferentiableAt K t x) (he : ∀ x ∈ (interior c)ᶜ, IsDifferentiableAt K e x)
(hc : (∀ x, x ∈ frontier c → cderiv K t x = cderiv K e x))
: cderiv K (fun x => ite (c x) (t x) (e x))
=
fun y =>
ite (c y) (cderiv K t y) (cderiv K e y) :=
by
sorry_proof


--------------------------------------------------------------------------------

Expand Down

0 comments on commit fe9321e

Please sign in to comment.