TorchLean API

NN.Floats.IEEEExec.TrigRules

Deterministic trigonometric special-value rules (sin, cos) #

NN.Floats.IEEEExec.Exec32 defines deterministic, executable IEEE32Exec.sin and IEEE32Exec.cos (implemented purely inside Lean; no delegation to the host Float runtime).

This file exposes the special-case rewrite rules (NaN/Inf/±0) so downstream proofs do not need to unfold the whole implementation.

sin propagates NaNs by returning the quieted payload.

cos propagates NaNs by returning the quieted payload.