Trust checks for the orientation of the descent contour #
- Known value. For the regular unit tetrahedron (
Aᵢ = 3, saddles = 11/3 + i √2/6),s − 3 = 2/3 + i √2/6,‖s − 3‖² = 1/2and(s − 3)⁴ = 17/324 + i 14√2/81, sosaddleDir² = −i (s − 3)⁴/‖s − 3‖⁴ = (56√2 − 17 i)/81(saddleDir_sq_regular), a unit vector, asnorm_saddleDirsays. - Wrong input fails. Without the shift by
−π/4,w = exp(i Σᵢ arg(s − Aᵢ)/2)hasb w² = −i ‖b‖: it points along a ridge, not a valley (IsEuclid.saddleCoeff_mul_sq_ne). The opposite root−saddleDirsatisfiesb u² = −‖b‖as well but has negative real part (IsEuclid.re_neg_saddleDir_neg), so the square identity alone does not fix the orientation;IsEuclid.exists_contourdoes. - Non-vacuity. For the regular tetrahedron the oriented contour exists, with the path along
+saddleDirlanding beyondBₖ = 4and the one along−saddleDirin(0, 3)(exists_contour_regular). - Junk values. For
l = 0allAᵢ,Bₖvanish and Lean's1/0 = 0turnsψ''(z) = 1/z − 4/z + 3/zinto0, sosaddleCoeff 0 = 0(saddleCoeff_zero) andb u² = −‖b‖holds for everyu. The orientation theorems therefore assumeIsEuclid l, which givesb ≠ 0(IsEuclid.saddleCoeff_ne_zero).
Wrong input: without the shift by −π/4, w = exp(i Σᵢ arg(s − Aᵢ)/2) is no descent
direction, b w² ≠ −‖b‖.
Wrong input: −saddleDir also satisfies b u² = −‖b‖, but its real part is negative, so
the orientation is not fixed by the square identity.
Junk value: for l = 0 Lean's 1/0 = 0 gives saddleCoeff 0 = 0.