Skip to content

Commit

Permalink
nested discontinuity test
Browse files Browse the repository at this point in the history
  • Loading branch information
lecopivo committed May 17, 2024
1 parent cadca70 commit 698064b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions SciLean/Core/Integral/Common.lean
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ attribute [ftrans_simp] MeasureTheory.Measure.restrict_empty MeasureTheory.Measu

attribute [ftrans_simp] ENNReal.one_toReal ENNReal.zero_toReal

attribute [ftrans_simp] Set.mem_inter_iff

----------------------------------------------------------------------------------------------------
-- Measure simp theorems ---------------------------------------------------------------------------
Expand Down
22 changes: 22 additions & 0 deletions test/prob_ad/neste_discont_1d.lean
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import SciLean.Core.Integral.Common

open SciLean MeasureTheory Set

variable
{R : Type} [RealScalar R] [MeasureSpace R]

set_default_scalar R

example (w : R) :
(∂ w':=w,
∫' x in Icc (0:R) 1,
if x ≤ w' then if x + w' ≤ 0 then (1:R) else 0 else 0)
=
let ds := if 0 ≤ w ∧ w ≤ 1 then if w + w ≤ 0 then 1 else 0 else 0;
let ds_1 := if (0 ≤ -w ∧ -w ≤ 1) ∧ -w ≤ w then -1 else 0;
let sf' := ds_1 + ds;
sf' := by

conv =>
lhs
integral_deriv

0 comments on commit 698064b

Please sign in to comment.