jensen_shannon_regularized_generator_one
For any parameter c, the regularized generator evaluates to 0 at 1: f_c(1) = 0.
Statement
theorem jensen_shannon_regularized_generator_one (c : ℝ) :
jensen_shannon_regularized_generator c 1 = 0- Source
- folklore
- Verified
- 04 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- jensen_shannon_regularized_generatorThe regularized generator with parameter c is f_c(x) = f_{JS}(x) + c x log x.
- jensen_shannon_generatorThe f-divergence generator for Jensen-Shannon divergence is f(x) = (1/2) x log x - ((x + 1)/2) log((x + 1)/2).
Read back from the Lean
For every real number $c$, jensen_shannon_regularized_generator c 1 = 0.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
The theorem states that for any parameter $c$, the regularized Jensen–Shannon generator satisfies $f_c(1) = 0$. Expanding the definitions of $f_c$ and the base generator at $x = 1$ expresses the value in terms of $\log 1$ and $\log\left(\frac{1+1}{2}\right) = \log 1$. Since $\log 1 = 0$, every term vanishes, and the equality follows by elementary arithmetic evaluation.
The value $f_c(1)$ expands to $\frac{1}{2} \cdot 1 \cdot \log 1 - \frac{1+1}{2} \log\left(\frac{1+1}{2}\right) + c \cdot (1 \cdot \log 1)$.
Unfold the definitions of the regularized generator $f_c(x) = f(x) + c \cdot x \log x$ and the base generator $f(x) = \frac{1}{2} x \log x - \frac{x+1}{2} \log\left(\frac{x+1}{2}\right)$ at $x = 1$.
unfold jensen_shannon_regularized_generator jensen_shannon_generatorThe regularized generator satisfies $f_c(1) = 0$. automation
Since $\log 1 = 0$ and $\frac{1+1}{2} = 1$, each term in the sum vanishes. The `norm_num` tactic performs the arithmetic and logarithmic evaluations to close the goal.
norm_num
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
/-- The regularized generator satisfies f_c(1) = 0. -/theorem jensen_shannon_regularized_generator_one (c : ℝ) : jensen_shannon_regularized_generator c 1 = 0 := by unfold jensen_shannon_regularized_generator jensen_shannon_generator norm_num