AFTD Auto-Formalizing Theoretical Domains

bivariate_poisson_pmf

def

The bivariate Poisson probability mass function bivariate_poisson_pmf a b is defined by Real.exp (-(3/2)) * ∑ j ∈ Finset.range (min a b + 1), ((1 / 2) ^ (a + b - j) / (j! * (a - j)! * (b - j)!)).

Statement

noncomputable def bivariate_poisson_pmf (a b : ℕ) : ℝ
Defined in
scout/2610-38017-on-the-b-symbol-weight-distribution-of-dual-melas-codes-and.md:1045
Verified
01 Nov 2026
Axioms
none listed
Used by 4

Read back from the Lean

A definition of bivariate_poisson_pmf, which takes two natural numbers a and b and returns the real number given by: $$\exp\left(-\frac{3}{2}\right) \sum_{j=0}^{\min(a, b)} \frac{(1/2)^{a + b - j}}{j! \, (a - j)! \, (b - j)!}$$ where the sum ranges over all integers $j$ from $0$ to $\min(a, b)$ inclusive.

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 joint PMF of (A+C, B+C) for independent Poisson(1/2) variables A, B, C. -/
noncomputable def bivariate_poisson_pmf (a b : ℕ) : ℝ := Real.exp (-(3/2 : ℝ)) * ∑ j ∈ Finset.range (min a b + 1), ((1 / 2 : ℝ) ^ (a + b - j) / (j.factorial * (a - j).factorial * (b - j).factorial : ℝ))
See it in the graphDiscuss this resultChallenge it