MindFormal v1.0.0One Mind

MindFormal.Tools.A617Judgment.EpisodeQueryIntegral

Exact integration of N4's clipped scalar share, including inactive and pre-crossing branches and either sign of the recurrent pool coefficient.

theorem MindFormal.A617Judgment.Episodes.queryPrimitive_integral {ν g P0 B C a H : ℝ} (hν : 0 ≤ ν) (hP : 0 < P0) (hD : 0 < P0 + B) (ha : 0 ≤ a) (haH : a ≤ H) :
∫ (s : ℝ) in a..H, ν * Real.exp (ν * s) * (queryShare ν P0 B C s - g) = queryPrimitive ν g P0 B C H - queryPrimitive ν g P0 B C a
theorem MindFormal.A617Judgment.Episodes.clipped_query_integral {ν g P0 B C H : ℝ} (hν : 0 < ν) (hg : 0 < g) (hP : 0 < P0) (hD : 0 < P0 + B) (hC : 0 ≤ C) (hH : 0 ≤ H) :
expConv ν 0 (fun (s : ℝ) => max (queryShare ν P0 B C s - g) 0) H = closedQuery ν g P0 B C H