TorchLean API

FloatLib.Floats.Formats.P3109.Conversion.Proof

P3109 conversion proofs #

These theorems expose the executable equations, connect conversion output to the proved round-then-saturate projection semantics, and discharge the declared quantizer contract.

@[simp]

Every P3109 conversion is the policy-selected projection with its computed status.

Finite conversion uses the exact rational projection path directly.

@[simp]

Infinity conversion is controlled entirely by the named P3109 projection policy.

@[simp]

Exceptional conversion is controlled entirely by the named P3109 projection policy.

Decoding a conversion result yields the proved P3109 round-then-saturate datum.

The codec bridge supplies the semantic clause as well as the complete word and status.

theorem FloatLib.Floats.ExecFloat.P3109.Conversion.spec_iff_eq_run {format : Formats.P3109.Format} (policy : Formats.P3109.ProjectionPolicy) (input : Numerics.NumericalValue ) (outcome : ConversionOutcome (P3109 format)) :
spec policy input outcome outcome = run policy input

The semantic contract retains the converter's complete outcome, including its status.

Any successful outcome admitted by the contract denotes the policy-selected datum.

@[simp]

The installed P3109 exact decoder exposes exact rational denotations.