def cesGeneralHessianEntry (ρ F : ℝ) (P x : Fin J → ℝ) (i j : Fin J) : ℝ := if i = j then F * (1 - ρ) * P i * (P i - 1) / (x i) ^ 2 else F * (1 - ρ) * P i * P j / (x i * x j)
thesis/CESProofs/Foundations/GeneralHessian.lean:55
General CES Hessian at Arbitrary Allocation