Skip to content

Commit

Permalink
fix distribution derivative
Browse files Browse the repository at this point in the history
  • Loading branch information
lecopivo committed Mar 12, 2024
1 parent 799c8b2 commit cc84860
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions SciLean/Modules/Prob/DistribDeriv/DistribFwdDeriv.lean
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import SciLean.Core.FunctionTransformations
import SciLean.Modules.Prob.DistribDeriv.DistribDeriv

namespace SciLean.Prob
Expand Down
6 changes: 4 additions & 2 deletions SciLean/Modules/Prob/DistribDeriv/Measure.lean
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ theorem measure.distribDeriv_comp
⟪distribDeriv (fun y => (μ y).toDistribution) y dy, φ⟫ := by

simp [distribDeriv]
rw [fderiv.comp_rule_at ℝ (fun y => ∫ (x : Z), φ x ∂(μ y)) f x hφ.diff hf]
dsimp
have h := fderiv.comp (𝕜:=ℝ) (x:=x) (g:=fun y => ∫ (x : Z), φ x ∂(μ y)) (f:=f) hφ.diff hf
-- rw[h] -- ugh
-- rw [fderiv.comp x (g:=fun y => ∫ (x : Z), φ x ∂(μ y)) (f:=f)f x hφ.diff hf]
sorry -- dsimp


@[simp ↓]
Expand Down

0 comments on commit cc84860

Please sign in to comment.