Documentation

Lightlike.Regge.CMS.Quadratic

Second-order expansion of a triangle angle (RC6b, step 4b) #

The squared lengths of a triangle are a₀ (1 + x), b₀ (1 + y), c₀ (1 + z) with small relative errors. The cosine of the angle between the first two edges is then a smooth function of (x, y, z); this file expands it, and the angle, to second order with an explicit cubic remainder.

Main results #

noncomputable def Lightlike.CMS.invSqrtPoly (x : ℝ) :

The second-order Taylor polynomial of (1 + x)^(-1/2).

Equations
Instances For
    theorem Lightlike.CMS.abs_invSqrt_sub_le {x : ℝ} (hx : |x| ≤ 1 / 2) :
    |1 / √(1 + x) - invSqrtPoly x| ≤ 2 * |x| ^ 3

    1/√(1+x) to second order.

    theorem Lightlike.CMS.abs_cubic_le {x y ε : ℝ} (hxe : |x| ≤ ε) (hye : |y| ≤ ε) (hε : ε ≤ 1 / 2) :
    |-3 * x * y ^ 2 / 16 - 3 * x ^ 2 * y / 16 + 9 * x ^ 2 * y ^ 2 / 64| ≤ ε ^ 3

    Cubic terms of the product of two second-order polynomials.

    noncomputable def Lightlike.CMS.cosArg (a b c : ℝ) :

    The cosine of the angle between the edges with squared lengths a, b, the third being c.

    Equations
    Instances For
      noncomputable def Lightlike.CMS.cosLin (a₀ b₀ c₀ x y z : ℝ) :

      First-order term of the cosine: with P = (a₀ x + b₀ y - c₀ z) / (2 √(a₀ b₀)) and u = cosArg a₀ b₀ c₀, it is P - u (x + y) / 2.

      Equations
      Instances For
        noncomputable def Lightlike.CMS.cosQuad (a₀ b₀ c₀ x y z : ℝ) :

        Second-order term of the cosine.

        Equations
        Instances For
          theorem Lightlike.CMS.abs_cosArg_expansion_le {a₀ b₀ c₀ x y z ε R : ℝ} (ha : 0 < a₀) (hb : 0 < b₀) (hx : |x| ≤ ε) (hy : |y| ≤ ε) (hz : |z| ≤ ε) (hε : ε ≤ 1 / 2) (hc : 0 ≤ c₀) (hu : |cosArg a₀ b₀ c₀| ≤ 1) (hR : a₀ + b₀ + c₀ ≤ 2 * R * √(a₀ * b₀)) :
          |cosArg (a₀ * (1 + x)) (b₀ * (1 + y)) (c₀ * (1 + z)) - cosArg a₀ b₀ c₀ - cosLin a₀ b₀ c₀ x y z - cosQuad a₀ b₀ c₀ x y z| ≤ (7 + 5 * R) * ε ^ 3

          The cosine of a perturbed triangle to second order. The squared lengths a₀ (1 + x), b₀ (1 + y), c₀ (1 + z) have relative errors at most ε ≤ 1/2, and a₀ + b₀ + c₀ ≤ 2 R √(a₀ b₀) (bounded side ratio). Then the cosine differs from u + cosLin + cosQuad by at most (7 + 5 R) ε³, where u is the unperturbed cosine.

          noncomputable def Lightlike.CMS.angK (R m : ℝ) :

          Constants of the second-order angle bound.

          Equations
          Instances For
            theorem Lightlike.CMS.abs_angle_algebra_le {u ℓ q₂ E T q m ε R : ℝ} (hm : 0 < m) (hq : m ≤ q) (hu : |u| ≤ 1) (hR : 0 ≤ R) (hε0 : 0 ≤ ε) (hε : ε ≤ 1 / 2) (hℓ : |ℓ| ≤ (R + 1) * ε) (hq₂ : |q₂| ≤ (R + 1) * ε ^ 2) (hE : |E| ≤ (7 + 5 * R) * ε ^ 3) (hT : |T| ≤ 3 * |ℓ + q₂ + E| ^ 3 / m ^ 5) :
            |T - E / q + u * (ℓ ^ 2 - (ℓ + q₂ + E) ^ 2) / (2 * q ^ 3)| ≤ angK R m * ε ^ 3

            Pure algebra behind the angle expansion: if Δ = ℓ + q₂ + E with ℓ = O(ε), q₂ = O(ε²), E = O(ε³), and T is the Taylor defect, then T - E/q + u (ℓ² - Δ²)/(2 q³) is O(ε³).

            theorem Lightlike.CMS.abs_numPert_le {a₀ b₀ c₀ x y z ε R : ℝ} (ha : 0 < a₀) (hb : 0 < b₀) (hc : 0 ≤ c₀) (hx : |x| ≤ ε) (hy : |y| ≤ ε) (hz : |z| ≤ ε) (hR : a₀ + b₀ + c₀ ≤ 2 * R * √(a₀ * b₀)) :
            |(a₀ * x + b₀ * y - c₀ * z) / (2 * √(a₀ * b₀))| ≤ R * ε

            The numerator perturbation is O(ε) for a triangle with bounded side ratio.

            theorem Lightlike.CMS.abs_triAngle_expansion_le {a₀ b₀ c₀ x y z ε R s : ℝ} (ha : 0 < a₀) (hb : 0 < b₀) (hc : 0 ≤ c₀) (hx : |x| ≤ ε) (hy : |y| ≤ ε) (hz : |z| ≤ ε) (hε : ε ≤ 1 / 2) (hR : a₀ + b₀ + c₀ ≤ 2 * R * √(a₀ * b₀)) (hs0 : 0 ≤ s) (hs : s < 1) (hu : cosArg a₀ b₀ c₀ ∈ Set.Icc (-s) s) (hf : cosArg (a₀ * (1 + x)) (b₀ * (1 + y)) (c₀ * (1 + z)) ∈ Set.Icc (-s) s) :
            |triAngle (a₀ * (1 + x)) (b₀ * (1 + y)) (c₀ * (1 + z)) - triAngle a₀ b₀ c₀ + (cosLin a₀ b₀ c₀ x y z + cosQuad a₀ b₀ c₀ x y z) / qq (cosArg a₀ b₀ c₀) + cosArg a₀ b₀ c₀ * cosLin a₀ b₀ c₀ x y z ^ 2 / (2 * qq (cosArg a₀ b₀ c₀) ^ 3)| ≤ angK R √(1 - s ^ 2) * ε ^ 3

            A triangle angle to second order. Under the hypotheses of abs_cosArg_expansion_le, and with the cosines before and after in [-s, s], s < 1, the angle triAngle of the perturbed triangle differs from the unperturbed one by -(ℓ + q₂)/q - u ℓ²/(2 q³) up to angK R m ε³, where u is the unperturbed cosine, ℓ, q₂ are cosLin, cosQuad, q = √(1 - u²) and m = √(1 - s²).