TorchLean API

FloatLib.Numerics.Exact.Trigonometric.PiValues.Proof

Complete rational-value classification for pi-scaled sine and cosine #

Niven's theorem supplies completeness, including thirds as well as the more familiar integer and half-integer angles. Every unclassified value is irrational, so converging rational enclosures eventually separate it from any rational rounding boundary.

The parity computation is the exact sign from the integer-angle cosine identity.

theorem FloatLib.Numerics.TrigonometricComparison.cosPiExact_eq_real (argument value : ℚ) (hvalue : cosPiExact argument = some value) :
Real.cos (↑argument * Real.pi) = ↑value

Every reported rational cosine value is exact.

An unclassified cosine value is irrational, so refinement cannot stall at a boundary.

theorem FloatLib.Numerics.TrigonometricComparison.sinPiExact_eq_real (argument value : ℚ) (hvalue : sinPiExact argument = some value) :
Real.sin (↑argument * Real.pi) = ↑value

Every reported rational sine value is exact.

An unclassified sine value is irrational.