TorchLean API

FloatLib.Floats.Formats.Posit.Configured.Trigonometric.Pi.Proof

Correct rounding of configured posit pi-scaled trigonometric operations #

The configured pi-scaled operations inherit the model's real-rounding theorems through any lawful storage codec. Separate equations cover NaR inputs, inverse-function domain failures, and the half-integer poles of tanPi.

@[simp]

Configured sine refines the model operation.

@[simp]

Configured cosine refines the model operation.

@[simp]

Configured tangent refines the model operation.

@[simp]

Configured inverse sine refines the model operation.

@[simp]

Configured inverse cosine refines the model operation.

@[simp]

Configured inverse tangent refines the model operation.

Configured sine rounds the exact real result once.

Configured cosine rounds the exact real result once.

theorem FloatLib.Floats.ExecFloat.Posit.tanPi_eq_real {format : Formats.Posit.Format} {plan : Formats.Posit.Configured.StoragePlan format} {code : Type} [ModelCodec plan (Formats.Posit.Model format) code] (value : ExecFloat (Formats.Posit.Configured.Family format code plan)) {q : } (hvalue : toRat? value = some q) (hpole : Int.fract q 1 / 2) :

Configured tangent rounds the exact real result once.

theorem FloatLib.Floats.ExecFloat.Posit.arcSinPi_eq_real {format : Formats.Posit.Format} {plan : Formats.Posit.Configured.StoragePlan format} {code : Type} [ModelCodec plan (Formats.Posit.Model format) code] (value : ExecFloat (Formats.Posit.Configured.Family format code plan)) {q : } (hvalue : toRat? value = some q) (hlower : -1 q) (hupper : q 1) :

Configured inverse sine includes both real-domain endpoints.

theorem FloatLib.Floats.ExecFloat.Posit.arcCosPi_eq_real {format : Formats.Posit.Format} {plan : Formats.Posit.Configured.StoragePlan format} {code : Type} [ModelCodec plan (Formats.Posit.Model format) code] (value : ExecFloat (Formats.Posit.Configured.Family format code plan)) {q : } (hvalue : toRat? value = some q) (hlower : -1 q) (hupper : q 1) :

Configured inverse cosine includes both real-domain endpoints.

Configured inverse tangent rounds its exact principal value.

NaR propagates through configured sine.

NaR propagates through configured cosine.

NaR propagates through configured tangent.

NaR propagates through configured inverse sine.

NaR propagates through configured inverse cosine.

NaR propagates through configured inverse tangent.

theorem FloatLib.Floats.ExecFloat.Posit.arcSinPi_eq_nar_of_outside {format : Formats.Posit.Format} {plan : Formats.Posit.Configured.StoragePlan format} {code : Type} [ModelCodec plan (Formats.Posit.Model format) code] (value : ExecFloat (Formats.Posit.Configured.Family format code plan)) {q : } (hvalue : toRat? value = some q) (houtside : q < -1 1 < q) :

Configured inverse sine rejects the exterior of its real domain.

theorem FloatLib.Floats.ExecFloat.Posit.arcCosPi_eq_nar_of_outside {format : Formats.Posit.Format} {plan : Formats.Posit.Configured.StoragePlan format} {code : Type} [ModelCodec plan (Formats.Posit.Model format) code] (value : ExecFloat (Formats.Posit.Configured.Family format code plan)) {q : } (hvalue : toRat? value = some q) (houtside : q < -1 1 < q) :

Configured inverse cosine rejects the exterior of its real domain.

theorem FloatLib.Floats.ExecFloat.Posit.tanPi_eq_nar_of_pole {format : Formats.Posit.Format} {plan : Formats.Posit.Configured.StoragePlan format} {code : Type} [ModelCodec plan (Formats.Posit.Model format) code] (value : ExecFloat (Formats.Posit.Configured.Family format code plan)) {q : } (hvalue : toRat? value = some q) (hpole : Int.fract q = 1 / 2) :

Configured pi-scaled tangent rejects every half-integer pole.