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

Tests.BakryEmeryInterpolation

0 named declarations scanned from Tests/BakryEmeryInterpolation.lean.

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

Declarations

This aggregator contains no named declarations.

Complete Lean source

Tests/BakryEmeryInterpolation.lean — full module with imports and context
Download module (.lean)
import AutoSamplingTheory.TechnicalLemmas.FunctionalInequalities.BakryEmeryInterpolation

namespace AutoSamplingTheory.Tests.BakryEmeryInterpolation

open Set
open AutoSamplingTheory.TechnicalLemmas.FunctionalInequalities.SemigroupDecay

example {rate s t : ℝ} (hst : s ≤ t) :
    (0 : ℝ) ≤ 0 * Real.exp (-rate * (t - s)) := by
  apply backward_interpolation_contraction_of_growth
    (interpolation := fun _ : ℝ => 0)
    (interpolation' := fun _ : ℝ => 0)
  · exact continuous_const
  · intro u
    simpa using
      (hasDerivWithinAt_const
        (x := u) (s := Ici u) (c := (0 : ℝ)))
  · intro u
    simp
  · exact hst

example {interpolation interpolation' : ℝ → ℝ} {rate s t : ℝ}
    (hst : s ≤ t)
    (hinterpolation : ∀ u ∈ Icc s t,
      HasDerivAt interpolation (interpolation' u) u)
    (hgrowth : ∀ u ∈ Ioo s t,
      rate * interpolation u ≤ interpolation' u) :
    interpolation s ≤
      interpolation t * Real.exp (-rate * (t - s)) :=
  backward_endpoint_contraction_of_growth_on_Icc
    hst hinterpolation hgrowth

end AutoSamplingTheory.Tests.BakryEmeryInterpolation