Feynman–Kac for the heat equation
For a process B : ℝ → Ω → ℝ with B 0 = 0 a.s. and Gaussian increments B t − B s ∼ N(0, t − s) and a bounded continuous g : ℝ → ℝ, the function
u(t, x) := E[g(x + B_t)]
satisfies the heat equation ∂_t u − (1/2) ∂²_x u = 0 on t > 0, with boundary condition u(0, x) = g(x) (Saporito Theorem 9.2.1).
This proof does not use Itô calculus. The mechanism is:
1. By Measure.map transfer, u(t, x) = ∫ y, g(x + y) ∂(gaussianReal 0 t) = ∫ y, g(x + y) · gaussianPDFReal 0 t y ∂volume for t > 0. 2. The Gaussian density satisfies the heat-kernel PDE: ∂_t pdf(t, y) = (1/2) ∂²_y pdf(t, y) (pure calculus). 3. Differentiating under the integral sign passes the PDE through to u.
Main definitions
heatKernel: K(t, y) = (2π t)^{-1/2} · exp(−y² / (2 t)), defined for all t : ℝ; the statements about it assume 0 < t.feynmanU: feynmanU g t x = ∫ z, g z · K(t, z − x) dz, the heat-kernel form of E[g(x + B_t)].
Main results
heatConvolution_eq_add_integral_deriv — the integrated heat-equation form u(t, x) = u(0, x) + ½ ∫₀ᵗ ∂²_x u(s, x) ds for the Gaussian convolution.feynmanKac_boundary / feynmanU_eq_expectation — u(t, x) = E[g(x + B_t)].expectation_ito / expectation_ito_isPreBrownian — the expectation-form Itô identity E[f(B_t)] = f(0) + ½ ∫₀ᵗ E[f''(B_s)] ds.hasFDerivAt_heatKernel — the heat kernel is jointly Fréchet-differentiable in (t, y) (with hasDerivAt_heatKernel_t / _y / _y_y, the kernel-side derivatives).hasDerivAt_feynmanU_t / _x / _xx + feynmanU_heat_equation — for sub-Gaussian h the convolution u = feynmanU h is differentiable in t, twice in x, and solves ∂_t u = ½ ∂_xx u (every derivative falls on the kernel; h needs only the growth bound). These make the heat flow load-bearing for the Black–Scholes PDE (Models/BlackScholes/PDEFromFeynmanKac.lean, benchmark sc-bs-pde-feynman-kac).
References
- Y. F. Saporito, Stochastic Processes [Saporito], Theorem 9.2.1
Tags
Feynman–Kac formula, heat equation, heat kernel, parabolic PDE, Black–Scholes PDE, Gaussian convolution, MSC 60H30, MSC 35K10, JEL G13
Import neighbourhood
Above: what it imports. Below: what imports it.
Corpus entries
sc-thm-9.2.1 · stochastic_calculus.json · full statement
Feynman-Kac for the Heat Equation
Theorem 9.2.1, FEYNMAN–KAC direction: the heat-kernel convolution ∫ g(z) K(t, z−x) dz equals the Brownian expectation E[g(x + B_t)] for every t > 0, with boundary condition u(0,x) = g(x). Uniqueness of the bounded classical solution of ∂_t u − ½ ∂_xx u = 0 is NOT delivered — the entry proves the identification, not a PDE well-posedness theorem.
Declarations 29
defMathFin.FeynmanKacHeatEquation.heatKernelsource ℝ → ℝ → ℝ
Our own heat-kernel form: K(t, y) = (2π t)^{-1/2} · exp(−y² / (2 t)). Defined for all t : ℝ (when t ≤ 0 the formula returns nonsense but the heat-kernel statements gate on 0 < t).
theoremMathFin.FeynmanKacHeatEquation.hasFDerivAt_heatKernelsource ∀ {t₀ : ℝ}, 0 < t₀ → ∀ (y₀ : ℝ), HasFDerivAt (fun p => heatKernel p.1 p.2) ((heatKernel t₀ y₀ * (y₀ ^ 2 - t₀) / (2 * t₀ ^ 2)) • ContinuousLinearMap.fst ℝ ℝ ℝ + (-(y₀ / t₀) * heatKernel t₀ y₀) • ContinuousLinearMap.snd ℝ ℝ ℝ) (t₀, y₀)Joint differentiability of the heat kernel in (t, y) (for t > 0). The Fréchet derivative at (t₀, y₀) is the row functional (a, b) ↦ ∂_t K · a + ∂_y K · b (∂_t K = K·(y²−t)/(2t²), ∂_y K = −(y/t)·K). Built from the elementary calculus of (√(2πt))⁻¹·exp(−y²/(2t)); the two columns read off against the basis. This upgrades the two separately-proved partials to a total derivative — the one genuinely-2D ingredient that lets the price, differentiated along a curve τ ↦ (v τ, w τ) with both kernel arguments moving, collapse to a single chain rule.
theoremMathFin.FeynmanKacHeatEquation.hasDerivAt_heatKernel_compsource ∀ {v w : ℝ → ℝ} {τ₀ vd wd : ℝ}, HasDerivAt v vd τ₀ → HasDerivAt w wd τ₀ → 0 < v τ₀ → ∀ (z : ℝ), HasDerivAt (fun s => heatKernel (v s) (z - w s)) (vd * (heatKernel (v τ₀) (z - w τ₀) * ((z - w τ₀) ^ 2 - v τ₀) / (2 * v τ₀ ^ 2)) + wd * ((z - w τ₀) / v τ₀ * heatKernel (v τ₀) (z - w τ₀))) τ₀Derivative of the heat kernel along a curve s ↦ K(v s, z − w s). With both the variance v s and the centre w s moving, the chain rule on hasFDerivAt_heatKernel collapses to v′·∂_t K + w′·∂_x K. The kernel-level engine for the Black–Scholes τ-derivative, where v τ = σ²τ and w τ = log S + (r − σ²/2)τ move together.
theoremMathFin.FeynmanKacHeatEquation.heatKernel_nonnegsource ∀ {t : ℝ}, 0 < t → ∀ (y : ℝ), 0 ≤ heatKernel t yThe heat kernel is nonnegative.
theoremMathFin.FeynmanKacHeatEquation.integrable_heatKernelsource ∀ {t : ℝ}, 0 < t → Integrable (fun y => heatKernel t y) volumeFor t > 0, the heat kernel is integrable in y over Lebesgue.
theoremMathFin.FeynmanKacHeatEquation.integrable_id_mul_heatKernelsource ∀ {t : ℝ}, 0 < t → Integrable (fun y => y * heatKernel t y) volumeFirst moment: y · K(t, ·) is integrable.
theoremMathFin.FeynmanKacHeatEquation.integrable_sq_mul_heatKernelsource ∀ {t : ℝ}, 0 < t → Integrable (fun y => y ^ 2 * heatKernel t y) volumeSecond moment: y² · K(t, ·) is integrable.
theoremMathFin.FeynmanKacHeatEquation.continuous_heatKernelsource ∀ (s : ℝ), Continuous fun y => heatKernel s y
The heat kernel is continuous in the space variable (for any fixed time).
theoremMathFin.FeynmanKacHeatEquation.integrable_exp_mul_poly_heatKernelsource ∀ {σ : ℝ}, 0 < σ → ∀ (c d : ℝ), Integrable (fun z => Real.exp z * (((z - c) ^ 2 + d) * heatKernel σ (z - c))) volumeThe sub-Gaussian envelope is integrable. For σ > 0, the function z ↦ eᶻ·((z−c)² + d)·K(σ, z−c) is Lebesgue-integrable. By the mean shift exp_mul_heatKernel it equals e^{c+σ/2}·((z−c)² + d)·K(σ, z−(c+σ)); expanding (z−c)² = (z−(c+σ))² + 2σ(z−(c+σ)) + σ² turns it into a finite combination of heat-kernel moments (integrable_sq_mul_heatKernel, integrable_id_mul_heatKernel, integrable_heatKernel) translated by c+σ (Integrable.comp_sub_right). This is the dominating function that lets the call payoff (eᶻ − K)⁺ ≤ eᶻ pass under the integral sign — the one genuinely new analytic ingredient for the kernel-side heat equation.
theoremMathFin.FeynmanKacHeatEquation.integrable_payoff_mul_heatKernelsource ∀ {t : ℝ}, 0 < t → ∀ {h : ℝ → ℝ}, Continuous h → (∀ (z : ℝ), |h z| ≤ Real.exp z) → ∀ (x : ℝ), Integrable (fun z => h z * heatKernel t (z - x)) volumeIntegrability of a sub-Gaussian payoff against the shifted heat kernel. For t > 0, h continuous with |h z| ≤ eᶻ, the integrand z ↦ h z · K(t, z−x) is Lebesgue-integrable — dominated by the envelope eᶻ·((z−x)²+1)·K(t, z−x) of integrable_exp_mul_poly_heatKernel. The "value at the base point" integrability shared by the time- and first-space-derivative lemmas hasDerivAt_feynmanU_t / hasDerivAt_feynmanU_x below.
theoremMathFin.FeynmanKacHeatEquation.heatKernel_shift_lesource ∀ {t : ℝ}, 0 < t → ∀ {x x₀ δ : ℝ}, |x - x₀| < δ → ∀ (z : ℝ), heatKernel t (z - x) ≤ √2 * Real.exp (δ ^ 2 / (2 * t)) * heatKernel (2 * t) (z - x₀)Spatial monotonicity of the heat kernel. For t > 0 and |x − x₀| < δ, the kernel centred near x is dominated by a wider kernel centred at the fixed x₀: K(t, z − x) ≤ √2 · e^{δ²/(2t)} · K(2t, z − x₀). From the elementary (a + b)² ≥ ½a² − b² (here (z−x)² ≥ ½(z−x₀)² − (x−x₀)² ≥ ½(z−x₀)² − δ²), so exp(−(z−x)²/(2t)) ≤ e^{δ²/(2t)}·exp(−(z−x₀)²/(4t)), and exp(−(z−x₀)²/(4t)) = √2·√(2πt)·K(2t,z−x₀). This is the spatial analogue of the temporal bound K(s,·) ≤ √3·K(3t/2,·) (heatKernel_temporal_le); it makes the x-derivatives' dominating function independent of x over Metric.ball x₀ δ.
theoremMathFin.FeynmanKacHeatEquation.heatKernel_temporal_lesource ∀ {t s : ℝ}, 0 < t → t / 2 < s → s < 3 * t / 2 → ∀ (y : ℝ), heatKernel s y ≤ √3 * heatKernel (3 * t / 2) yTemporal monotonicity of the heat kernel. On the time-window (t/2, 3t/2), K(s, y) ≤ √3 · K(3t/2, y): a smaller variance is dominated by the fixed wider one. The temporal analogue of heatKernel_shift_le, and the domination engine for the time-derivative lemmas hasDerivAt_phi / hasDerivAt_feynmanU_t.
theoremMathFin.FeynmanKacHeatEquation.sq_sub_div_lesource ∀ {t s : ℝ}, 0 < t → t / 2 < s → s < 3 * t / 2 → ∀ (w : ℝ), |w ^ 2 - s| / (2 * s ^ 2) ≤ 2 * (w ^ 2 + 3 * t / 2) / t ^ 2Quadratic-over-variance ratio bound on the time window (t/2, 3t/2): |w² − s| / (2 s²) ≤ 2 (w² + 3t/2) / t². The polynomial factor of the time-derivative domination, shared verbatim (modulo the centring w = y vs w = z−x) by hasDerivAt_phi and hasDerivAt_feynmanU_t.
theoremMathFin.FeynmanKacHeatEquation.heatKernel_loc_lesource ∀ {v₀ v x x₀ δ : ℝ}, 0 < v₀ → v₀ / 2 < v → v < 3 * v₀ / 2 → |x - x₀| < δ → ∀ (z : ℝ), heatKernel v (z - x) ≤ √3 * (√2 * Real.exp (δ ^ 2 / (3 * v₀))) * heatKernel (3 * v₀) (z - x₀)Local domination of the heat kernel under a joint variance + centre perturbation. When the variance v stays in (v₀/2, 3v₀/2) and the centre x within δ of x₀, K(v, z−x) ≤ √3·√2·e^{δ²/(3v₀)}·K(3v₀, z−x₀). The composition of heatKernel_temporal_le (variance) with heatKernel_shift_le (centre); the domination engine for differentiating the price along the curve τ ↦ (σ²τ, log S + (r−σ²/2)τ), where both kernel arguments move with τ.
theoremMathFin.FeynmanKacHeatEquation.curve_sq_ratio_lesource ∀ {v₀ v W W₀ d : ℝ}, 0 < v₀ → v₀ / 2 < v → v < 3 * v₀ / 2 → |W - W₀| ≤ d → 0 ≤ d → |W ^ 2 - v| / (2 * v ^ 2) ≤ 2 * (2 * W₀ ^ 2 + 2 * d ^ 2 + 3 * v₀ / 2) / v₀ ^ 2Curve quadratic-ratio bound (the ∂_t-kernel polynomial factor of the curve domination). On v ∈ (v₀/2, 3v₀/2) with the centre shifted by ≤ d (|W − W₀| ≤ d), the moving denominator is absorbed into the fixed v₀: |W²−v|/(2v²) ≤ 2(2W₀²+2d²+3v₀/2)/v₀². Isolated as its own lemma so the nlinarith elaborates without the heartbeat blow-up that defeats it inline.
theoremMathFin.FeynmanKacHeatEquation.curve_abs_ratio_lesource ∀ {v₀ v W W₀ d : ℝ}, 0 < v₀ → v₀ / 2 < v → |W - W₀| ≤ d → 0 ≤ d → |W| / v ≤ 2 * (W₀ ^ 2 + 1 + d) / v₀Curve linear-ratio bound (the ∂_x-kernel polynomial factor). Companion to curve_sq_ratio_le: |W|/v ≤ 2(W₀²+1+d)/v₀ on v > v₀/2 with |W − W₀| ≤ d.
theoremMathFin.FeynmanKacHeatEquation.hasDerivAt_integral_mul_kernelFamilysource ∀ {h : ℝ → ℝ}, Continuous h → ∀ {φ φ' : ℝ → ℝ → ℝ} {p₀ r : ℝ}, 0 < r → (∀ (p : ℝ), Continuous fun z => φ p z) → (Continuous fun z => φ' p₀ z) → Integrable (fun z => h z * φ p₀ z) volume → ∀ {bound : ℝ → ℝ}, Integrable bound volume → (∀ᵐ (z : ℝ), ∀ p ∈ Metric.ball p₀ r, ‖h z * φ' p z‖ ≤ bound z) → (∀ (z p : ℝ), p ∈ Metric.ball p₀ r → HasDerivAt (fun p => φ p z) (φ' p z) p) → HasDerivAt (fun p => ∫ (z : ℝ), h z * φ p z) (∫ (z : ℝ), h z * φ' p₀ z) p₀Parametric differentiation under the integral, for an h-weighted kernel family. The single skeleton behind every derivative of a heat-flow integral p ↦ ∫ z, h z · φ(p, z) dz: given the family's pointwise derivative φ′(p, ·) on a ball around p₀, an integrable base point, and an integrable uniform dominating function for h·φ′, the integral is differentiable with d/dp = ∫ h·φ′(p₀, ·). Specialising φ to K(s, z−x) (time) or K(t, z−x') (space, once and twice) recovers hasDerivAt_phi and hasDerivAt_feynmanU_{t,x,xx}, each supplying only its genuinely-distinct domination. The h z-factor is pulled through HasDerivAt.const_mul, so callers hand over the bare kernel-family derivative.
theoremMathFin.FeynmanKacHeatEquation.heatConvolution_eq_add_integral_derivsource ∀ {t : ℝ}, 0 < t → ∀ {f f' f'' : ℝ → ℝ}, (∀ (x : ℝ), HasDerivAt f (f' x) x) → (∀ (x : ℝ), HasDerivAt f' (f'' x) x) → Continuous f'' → ∀ {Cf Cf' Cf'' : ℝ}, (∀ (x : ℝ), |f x| ≤ Cf) → (∀ (x : ℝ), |f' x| ≤ Cf') → (∀ (x : ℝ), |f'' x| ≤ Cf'') → ∫ (y : ℝ), f y * heatKernel t y = f 0 + ∫ (s : ℝ) in 0..t, 1 / 2 * ∫ (y : ℝ), f'' y * heatKernel s yItô's formula in expectation — analytic core (Feynman–Kac). For f ∈ C²_b and t > 0, ∫ f(y)·K(t,y) dy = f(0) + ∫₀ᵗ ½·(∫ f″(y)·K(s,y) dy) ds. The Gaussian convolution at time t equals its t→0 boundary value f(0) plus the integral of its time-derivative φ′(s) = ½∫f″·K(s,·). Proof: the fundamental theorem of calculus for the continuous-corrected Φ (value φ(s) for s>0, f(0) at s=0), whose right derivative on (0,t) is φ′ (hasDerivAt_phi_heatEq), whose boundary value is the approximate-identity limit (tendsto_integral_heatKernel_zero), and whose derivative is interval-integrable (bounded by ½Cf″). Under the standard Brownian hypotheses this reads E[f(Bₜ)] = f(0) + ½∫₀ᵗ E[f″(Bₛ)] ds via feynmanU_eq_expectation.
defMathFin.FeynmanKacHeatEquation.feynmanUsource (ℝ → ℝ) → ℝ → ℝ → ℝ
Feynman–Kac heat-kernel function: u(t, x) = ∫ z, g(z) · K(t, z − x) dz. This form is symmetric to ∫ y, g(x + y) · K(t, y) dy by Lebesgue translation invariance, but is easier to differentiate in x (the x-dependence sits in the kernel argument, not in g).
theoremMathFin.FeynmanKacHeatEquation.feynmanU_eq_integral_of_mapsource ∀ {Ω : Type u_1} [MeasurableSpace Ω] {μ : Measure Ω} {B : ℝ → Ω → ℝ} {g : ℝ → ℝ} {t : ℝ}, AEMeasurable (B t) μ → Measure.map (B t) μ = gaussianReal 0 t.toNNReal → Continuous g → 0 < t → ∀ (x : ℝ), feynmanU g t x = ∫ (ω : Ω), g (x + B t ω) ∂μCore transfer. If B_t has law N(0, t) (Measure.map (B t) μ = gaussianReal 0 t.toNNReal), the heat-kernel form feynmanU g t x equals the expectation E[g(x + B_t)]. Factored out of feynmanU_eq_expectation so the same transfer serves both the increment-hypothesis bundle and the IsPreBrownianReal marginal law.
theoremMathFin.FeynmanKacHeatEquation.feynmanU_eq_expectationsource ∀ {Ω : Type u_1} [MeasurableSpace Ω] {μ : Measure Ω} {B : ℝ → Ω → ℝ} {g : ℝ → ℝ}, (∀ (t : ℝ), Measurable (B t)) → (∀ᵐ (ω : Ω) ∂μ, B 0 ω = 0) → (∀ ⦃s t : ℝ⦄, s ≤ t → ∃ v, ↑v = t - s ∧ Measure.map (fun ω => B t ω - B s ω) μ = gaussianReal 0 v) → Continuous g → ∀ {t : ℝ}, 0 < t → ∀ (x : ℝ), feynmanU g t x = ∫ (ω : Ω), g (x + B t ω) ∂μFor t > 0, the heat-kernel form feynmanU g t x equals the Feynman–Kac expectation E[g(x + B_t)], assuming:
B 0 = 0 a.s.B_t − B_0 ∼ N(0, t) (Gaussian increments at the origin),B_t is measurable,g is continuous.
theoremMathFin.FeynmanKacHeatEquation.feynmanKac_boundarysource ∀ {Ω : Type u_1} [MeasurableSpace Ω] {μ : Measure Ω} [IsProbabilityMeasure μ] {B : ℝ → Ω → ℝ} {g : ℝ → ℝ}, (∀ᵐ (ω : Ω) ∂μ, B 0 ω = 0) → ∀ (x : ℝ), ∫ (ω : Ω), g (x + B 0 ω) ∂μ = g xThe boundary condition: at t = 0, the Feynman-Kac expectation equals g(x) (since B 0 = 0 a.s. and μ is a probability measure).
theoremMathFin.FeynmanKacHeatEquation.expectation_itosource ∀ {Ω : Type u_1} [MeasurableSpace Ω] {μ : Measure Ω} {B : ℝ → Ω → ℝ}, (∀ (t : ℝ), Measurable (B t)) → (∀ᵐ (ω : Ω) ∂μ, B 0 ω = 0) → (∀ ⦃s t : ℝ⦄, s ≤ t → ∃ v, ↑v = t - s ∧ Measure.map (fun ω => B t ω - B s ω) μ = gaussianReal 0 v) → ∀ {t : ℝ}, 0 < t → ∀ {f f' f'' : ℝ → ℝ}, (∀ (x : ℝ), HasDerivAt f (f' x) x) → (∀ (x : ℝ), HasDerivAt f' (f'' x) x) → Continuous f'' → ∀ {Cf Cf' Cf'' : ℝ}, (∀ (x : ℝ), |f x| ≤ Cf) → (∀ (x : ℝ), |f' x| ≤ Cf') → (∀ (x : ℝ), |f'' x| ≤ Cf'') → ∫ (ω : Ω), f (B t ω) ∂μ = f 0 + ∫ (s : ℝ) in 0..t, 1 / 2 * ∫ (ω : Ω), f'' (B s ω) ∂μItô's formula in expectation (Dynkin / Kolmogorov form). For a Brownian motion B (B 0 = 0 a.s., Gaussian increments B_t − B_s ∼ N(0, t−s), each B_t measurable) and f ∈ C²_b, E[f(Bₜ)] = f(0) + ½·∫₀ᵗ E[f″(Bₛ)] ds for t > 0. This is the expectation form of the analytic Feynman–Kac identity heatConvolution_eq_add_integral_deriv, transported across the bridge feynmanU_eq_expectation (∫ g·K(r,·) = E[g(B_r)]). The ½ f″ term is the signature of the quadratic variation of Brownian motion — the source of the Itô correction.
theoremMathFin.FeynmanKacHeatEquation.expectation_ito_isPreBrowniansource ∀ {Ω : Type u_1} [MeasurableSpace Ω] {μ : Measure Ω} {X : NNReal → Ω → ℝ}, IsPreBrownianReal X μ → ∀ {t : ℝ}, 0 < t → ∀ {f f' f'' : ℝ → ℝ}, (∀ (x : ℝ), HasDerivAt f (f' x) x) → (∀ (x : ℝ), HasDerivAt f' (f'' x) x) → Continuous f'' → ∀ {Cf Cf' Cf'' : ℝ}, (∀ (x : ℝ), |f x| ≤ Cf) → (∀ (x : ℝ), |f' x| ≤ Cf') → (∀ (x : ℝ), |f'' x| ≤ Cf'') → ∫ (ω : Ω), f (X t.toNNReal ω) ∂μ = f 0 + ∫ (s : ℝ) in 0..t, 1 / 2 * ∫ (ω : Ω), f'' (X s.toNNReal ω) ∂μItô's formula in expectation for a pre-Brownian motion — the repo-standard IsPreBrownianReal (Degenne) reading of expectation_ito. For f ∈ C²_b and t > 0, E[f(X_t)] = f(0) + ½·∫₀ᵗ E[f″(X_s)] ds. The increment-law hypotheses are discharged from the marginal law IsPreBrownianReal.hasLaw_eval through the shared transfer feynmanU_eq_integral_of_map. (X is ℝ≥0-indexed; the ∫₀ᵗ runs over real s, so X is read at ·.toNNReal.)
theoremMathFin.FeynmanKacHeatEquation.hasDerivAt_feynmanU_tsource ∀ {t : ℝ}, 0 < t → ∀ {h : ℝ → ℝ}, Continuous h → (∀ (z : ℝ), |h z| ≤ Real.exp z) → ∀ (x : ℝ), HasDerivAt (fun s => feynmanU h s x) (∫ (z : ℝ), h z * (heatKernel t (z - x) * ((z - x) ^ 2 - t) / (2 * t ^ 2))) tTime-derivative of the Feynman–Kac function (kernel-side, sub-Gaussian payoff). For h continuous with |h z| ≤ eᶻ and t > 0, ∂_t (feynmanU h t x) = ∫ z, h z · K(t, z−x)·((z−x)²−t)/(2t²) dz. The sub-Gaussian analogue of hasDerivAt_phi: the s-derivative is dominated, uniformly over s ∈ (t/2, 3t/2), by the integrable envelope (2√3/t²)·eᶻ·((z−x)²+3t/2)·K(3t/2, z−x), via the temporal monotonicity K(s, w) ≤ √3·K(3t/2, w). Differentiating the kernel (not the payoff) is what frees h of any regularity beyond exponential growth — the call payoff's kink is irrelevant.
theoremMathFin.FeynmanKacHeatEquation.hasDerivAt_feynmanU_xsource ∀ {t : ℝ}, 0 < t → ∀ {h : ℝ → ℝ}, Continuous h → (∀ (z : ℝ), |h z| ≤ Real.exp z) → ∀ (x : ℝ), HasDerivAt (fun x' => feynmanU h t x') (∫ (z : ℝ), h z * ((z - x) / t * heatKernel t (z - x))) xSpace-derivative of the Feynman–Kac function (kernel-side, sub-Gaussian payoff). For h continuous with |h z| ≤ eᶻ and t > 0, ∂_x (feynmanU h t x) = ∫ z, h z · ((z−x)/t)·K(t, z−x) dz. Differentiating the shifted kernel in x via hasDerivAt_heatKernel_x; dominated, uniformly over x' ∈ ball x 1, by the integrable envelope (√2·e^{1/2t}/t)·eᶻ·((z−x)²+2)·K(2t, z−x) (integrable_exp_mul_poly_heatKernel at σ=2t), via the spatial monotonicity heatKernel_shift_le.
theoremMathFin.FeynmanKacHeatEquation.hasDerivAt_feynmanU_xxsource ∀ {t : ℝ}, 0 < t → ∀ {h : ℝ → ℝ}, Continuous h → (∀ (z : ℝ), |h z| ≤ Real.exp z) → ∀ (x : ℝ), HasDerivAt (fun x' => ∫ (z : ℝ), h z * ((z - x') / t * heatKernel t (z - x'))) (∫ (z : ℝ), h z * (heatKernel t (z - x) * ((z - x) ^ 2 - t) / t ^ 2)) xSecond space-derivative of the Feynman–Kac function. The derivative of the first-space- derivative integral is ∫ z, h z · K(t, z−x)·((z−x)²−t)/t² dz. Same template, now differentiating hasDerivAt_heatKernel_x_x; dominated over x' ∈ ball x 1 by the envelope at σ=2t, d=3+t (using |(z−x')²−t| ≤ 3((z−x)²+(3+t))).
theoremMathFin.FeynmanKacHeatEquation.hasDerivAt_feynmanU_compsource ∀ {h : ℝ → ℝ}, Continuous h → (∀ (z : ℝ), |h z| ≤ Real.exp z) → ∀ {α β x₀ τ : ℝ}, 0 < α → 0 < τ → HasDerivAt (fun s => feynmanU h (α * s) (x₀ + β * s)) (∫ (z : ℝ), h z * (α * (heatKernel (α * τ) (z - (x₀ + β * τ)) * ((z - (x₀ + β * τ)) ^ 2 - α * τ) / (2 * (α * τ) ^ 2)) + β * ((z - (x₀ + β * τ)) / (α * τ) * heatKernel (α * τ) (z - (x₀ + β * τ))))) τDerivative of the Feynman–Kac function along an affine curve s ↦ (α s, x₀ + β s) (kernel-side, sub-Gaussian payoff). For h continuous with |h z| ≤ eᶻ, α > 0, τ > 0, the price s ↦ feynmanU h (α s) (x₀ + β s) — with both kernel arguments moving — is differentiable at τ with d/ds = ∫ z, h z · (α·∂_t K + β·∂_x K). This is the Black–Scholes τ-derivative engine (α = σ², β = r − σ²/2, x₀ = log S) and the consumer that makes the heat kernel's joint differentiability hasFDerivAt_heatKernel load-bearing for pricing. Pointwise derivative: hasDerivAt_heatKernel_comp. The uniform domination on s ∈ (τ/2, 3τ/2) bounds the two terms separately by Gaussian-moment envelopes (integrable_exp_mul_poly_heatKernel) via heatKernel_loc_le + curve_sq_ratio_le / curve_abs_ratio_le — no single mega-constant — fed to hasDerivAt_integral_mul_kernelFamily.
theoremMathFin.FeynmanKacHeatEquation.feynmanU_heat_equationsource ∀ {t : ℝ}, 0 < t → ∀ (h : ℝ → ℝ) (x : ℝ), ∫ (z : ℝ), h z * (heatKernel t (z - x) * ((z - x) ^ 2 - t) / (2 * t ^ 2)) = 1 / 2 * ∫ (z : ℝ), h z * (heatKernel t (z - x) * ((z - x) ^ 2 - t) / t ^ 2)The Feynman–Kac function solves the heat equation ∂_t u = ½ ∂_xx u (the derivative values). Pointwise on the kernel: K·((z−x)²−t)/(2t²) = ½·K·((z−x)²−t)/t². Combined with hasDerivAt_feynmanU_t (∂_t u = ∫ h·K·((z−x)²−t)/(2t²)) and hasDerivAt_feynmanU_xx (∂_xx u = ∫ h·K·((z−x)²−t)/t²) this is the heat equation for u = feynmanU h. Consumed by the Black–Scholes-PDE keystone bsV_satisfies_bs_pde_via_feynmanKac (sc-bs-pde-feynman-kac).