import Mathlib import OAI.Probability.LogConcave.OraclePrograms.FullTape namespace OAI section noncomputable section namespace LogConcaveSampling.OracleCompiler.CircuitParameters open MeanTree Coupling MeasureTheory ProbabilityTheory open scoped Classical NNReal variable (C : CircuitParameters) {d : ℕ} theorem sampleFrom_correct {F : Point d → ℝ} {lam : ℝ≥0} (hF : Primitive F lam) {q Kf Ki ef ei en ηmin : ℝ} (hd : 1≤d) (hlam : (lam:ℝ)≤1) (hq : 0≤q) (hql : q≤1/4) (hR : Real.sqrt (1-C.T^2)≤ηmin) (hD : 1≤C.D) (hA : C.A=C.actualA) (hAf : C.Af=C.actualAf) (hKf : 0≤Kf) (hKi : 0≤Ki) (hef : 0