TorchLean API

FloatLib.Floats.Formats.Flocq.Theory.Scalar.Representable

Grid Invariants for NF #

NF permits raw real-valued construction for approximation proofs, while its smart constructor and primitive arithmetic round onto the declared format. This file proves the corresponding NF.IsRepresentable closure properties without adding generic-format theory to the core scalar module's import surface.

The smart constructor rounds its input onto the declared format grid.

@[simp]
theorem FloatLib.Floats.Formats.Flocq.NF.isRepresentable_neg {β : Numerics.Radix} {fexp : } {rnd : } [ValidExp fexp] [ValidRnd rnd] (a : NF β fexp rnd) :

Negation through the smart constructor remains on the declared format grid.

@[simp]
theorem FloatLib.Floats.Formats.Flocq.NF.isRepresentable_add {β : Numerics.Radix} {fexp : } {rnd : } [ValidExp fexp] [ValidRnd rnd] (a b : NF β fexp rnd) :

Addition through the smart constructor remains on the declared format grid.

@[simp]
theorem FloatLib.Floats.Formats.Flocq.NF.isRepresentable_sub {β : Numerics.Radix} {fexp : } {rnd : } [ValidExp fexp] [ValidRnd rnd] (a b : NF β fexp rnd) :

Subtraction through the smart constructor remains on the declared format grid.

@[simp]
theorem FloatLib.Floats.Formats.Flocq.NF.isRepresentable_mul {β : Numerics.Radix} {fexp : } {rnd : } [ValidExp fexp] [ValidRnd rnd] (a b : NF β fexp rnd) :

Multiplication through the smart constructor remains on the declared format grid.

@[simp]
theorem FloatLib.Floats.Formats.Flocq.NF.isRepresentable_div {β : Numerics.Radix} {fexp : } {rnd : } [ValidExp fexp] [ValidRnd rnd] (a b : NF β fexp rnd) :

Division through the smart constructor remains on the declared format grid.