AFTD Auto-Formalizing Theoretical Domains

d2_tilde_factor_p

def

Given a function W : ℝ → ℝ → ℝ, boolean values eps1, eps2 : Bool, and real numbers x1, x2 : ℝ, the factor d2_tilde_factor_p W eps1 eps2 x1 x2 is the integral over y in Set.Icc (0 : ℝ) 1 of (if eps1 then W x1 y else W y x1) * (if eps2 then W x2 y else W y x2).

Statement

noncomputable def d2_tilde_factor_p (W : ℝ → ℝ → ℝ) (eps1 eps2 : Bool) (x1 x2 : ℝ) : ℝ
Defined in
arXiv:2611.15027 Section 5
Verified
15 Nov 2026
Axioms
none listed
Used by 2
  • d2_tilde_kernel_rGiven a function W : ℝ → ℝ → ℝ and real numbers x1, x2 : ℝ, the kernel d2_tilde_kernel_r W x1 x2 is the product d2_tilde_factor_p W true…
  • d2_tilde_kernel_r_symmFor every function W : ℝ → ℝ → ℝ and all x1, x2 : ℝ, the kernel d2_tilde_kernel_r W is symmetric: d2_tilde_kernel_r W x1 x2 =…

Read back from the Lean

Definition of a function d2_tilde_factor_p taking a function W : ℝ → ℝ → ℝ, two booleans eps1 and eps2, and two real numbers x1 and x2, returning the real number given by the integral over the closed interval $[0, 1]$ (with respect to the Lebesgue measure) of: (if eps1 then W x1 y else W y x1) * (if eps2 then W x2 y else W y x2) with respect to y.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- The marginal factor P_ε(x₁, x₂) integrating over the fiber of v_ε. -/
noncomputable def d2_tilde_factor_p (W : ℝ → ℝ → ℝ) (eps1 eps2 : Bool) (x1 x2 : ℝ) : ℝ := ∫ y in Set.Icc (0 : ℝ) 1,
    (if eps1 then W x1 y else W y x1) * (if eps2 then W x2 y else W y x2)
See it in the graphDiscuss this resultChallenge it