Samplinglib
Lean gate not recorded for this source state main · 9bb7a7394ab0
test module

Tests.SmoothedPicardRGOClosure

0 named declarations scanned from Tests/SmoothedPicardRGOClosure.lean.

Imports
Imported by
Placeholder scan
0 declaration(s) flagged
Gate status
Partial

Declarations

This aggregator contains no named declarations.

Complete Lean source

Tests/SmoothedPicardRGOClosure.lean — full module with imports and context
Download module (.lean)
import AutoSamplingTheory.ExampleCases.SmoothedPicardHMC.RGOClosure

open MeasureTheory
open AutoSamplingTheory.ExampleCases.SmoothedPicardHMC.RGOClosure

example (μ : Measure ℝ) [IsProbabilityMeasure μ] (u y : ℝ) :
    (μ.tilted (fun x => -(0 / 2) * ‖x - u‖ ^ 2)).tilted
        (fun x => -(1 / 2) * ‖x - y‖ ^ 2) =
      μ.tilted (fun x => -((0 + 1) / 2) *
        ‖x - (0 + 1 : ℝ)⁻¹ • ((0 : ℝ) • u + (1 : ℝ) • y)‖ ^ 2) :=
  quadratic_tilt_tilt μ (r := 0) (s := 1) le_rfl zero_lt_one u y

example (μ : Measure ℝ) [IsProbabilityMeasure μ] (u y : ℝ) :
    (μ.tilted (fun x => -(1 / 2) * ‖x - u‖ ^ 2)).tilted
        (fun x => -(1 / 2) * ‖x - y‖ ^ 2) =
      μ.tilted (fun x => -‖x - ((1 / 2 : ℝ) • (u + y))‖ ^ 2) := by
  convert quadratic_tilt_tilt μ (r := 1) (s := 1) zero_le_one zero_lt_one u y using 1
  norm_num

#check @quadratic_tilt_tilt
#print axioms quadratic_tilt_tilt