Skip to content

Commit

Permalink
simp rule to prefer more applied functions
Browse files Browse the repository at this point in the history
this is temporary fix that should be fix on the level of ftrans and fprop

see the issue #9
  • Loading branch information
lecopivo committed Aug 21, 2023
1 parent 9acdaeb commit a68f470
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions SciLean/Core/FunctionTransformations/CDeriv.lean
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ def cderiv (K : Type _) [IsROrC K]
{X Y : Type _} [Vec K X] [Vec K Y]
(f : X → Y) (x dx : X) : Y := Curve.deriv (fun t : K => f (x + t•dx)) 0


@[simp]
theorem cderiv_apply
(f : X → Y → Z) (x dx : X) (y : Y)
: cderiv K f x dx y
=
cderiv K (fun x' => f x' y) x dx := sorry_proof


-- Basic lambda calculus rules -------------------------------------------------
--------------------------------------------------------------------------------
variable (K)
Expand Down

0 comments on commit a68f470

Please sign in to comment.