Documentation

Lightlike.Regge.CMS.Lipschitz

arccos is Lipschitz away from ±1 (RC6b, step 2) #

A fat triangle has all its angles in [κ, π - κ], so the cosines of its angles stay in [-s, s] with s = cos κ < 1. On that interval arccos is Lipschitz with constant 1 / √(1 - s²). This is the sensitivity estimate that turns a relative error of the squared edge lengths into an error of the angles.

Main results #

theorem Lightlike.CMS.abs_arccos_sub_arccos_le {s x y : ℝ} (hs0 : 0 ≤ s) (hs : s < 1) (hx : x ∈ Set.Icc (-s) s) (hy : y ∈ Set.Icc (-s) s) :

arccos is Lipschitz on [-s, s], s < 1, with constant 1 / √(1 - s²).

theorem Lightlike.CMS.abs_cosArg_sub_le {a b c a' b' c' R ε : ℝ} (ha : 0 < a) (hb : 0 < b) (hε0 : 0 ≤ ε) (hε : ε ≤ 1 / 2) (ha' : |a' - a| ≤ ε * a) (hb' : |b' - b| ≤ ε * b) (hc' : |c' - c| ≤ ε * (a + b)) (hR : a + b ≤ R * √(a * b)) (hc : |a + b - c| ≤ 2 * √(a * b)) :
|(a' + b' - c') / (2 * √(a' * b')) - (a + b - c) / (2 * √(a * b))| ≤ 2 * (R + 1) * ε

Sensitivity of the cosine to relative errors of the squared lengths. The squared lengths a, b (adjacent edges) change to a', b' by at most the relative error ε ≤ 1/2, the opposite one c to c' by at most ε (a + b). If the triangle has a + b ≤ R √(a b) (bounded side ratio) and a genuine angle, |a + b - c| ≤ 2 √(a b), then the cosine of its angle changes by at most 2 (R + 1) ε.

theorem Lightlike.CMS.abs_triAngle_sub_le {a b c a' b' c' R ε s : ℝ} (ha : 0 < a) (hb : 0 < b) (hε0 : 0 ≤ ε) (hε : ε ≤ 1 / 2) (ha' : |a' - a| ≤ ε * a) (hb' : |b' - b| ≤ ε * b) (hc' : |c' - c| ≤ ε * (a + b)) (hR : a + b ≤ R * √(a * b)) (hc : |a + b - c| ≤ 2 * √(a * b)) (hs0 : 0 ≤ s) (hs : s < 1) (hu : (a + b - c) / (2 * √(a * b)) ∈ Set.Icc (-s) s) (hu' : (a' + b' - c') / (2 * √(a' * b')) ∈ Set.Icc (-s) s) :
|triAngle a' b' c' - triAngle a b c| ≤ 2 * (R + 1) * ε / √(1 - s ^ 2)

The angle of a fat triangle is Lipschitz in the squared lengths. Under the hypotheses of abs_cosArg_sub_le, if the cosines of the angle before and after lie in [-s, s], s < 1 (the angle is in [arccos s, π - arccos s]), the angle changes by at most 2 (R + 1) ε / √(1 - s²).