TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.Configured.ByteTable.Proof

Correctness of configured binary byte tables #

These theorems connect direct table execution to the representation-independent configured operations. They apply to every binary-interchange descriptor whose complete encoding fits in eight bits.

theorem FloatLib.Floats.Formats.BinaryInterchange.Configured.ByteTable.runBinary_eq_lift {format : FloatFormat} {modelSpec : Model formatModel formatModel format} (width_le_eight : format.bitWidth 8) (kernel : ExecFloat.Backend.TinyTable.CertifiedBinary (encoding format width_le_eight) modelSpec) (left right : ExecFloat (Family format (Code (StoragePlan.byte width_le_eight)) (StoragePlan.byte width_le_eight))) :
runBinary width_le_eight kernel left right = ExecFloat.ModelCodec.liftBinary modelSpec left right

A direct binary-table call is exactly the configured lifted model operation.

theorem FloatLib.Floats.Formats.BinaryInterchange.Configured.ByteTable.runUnary_eq_lift {format : FloatFormat} {modelSpec : Model formatModel format} (width_le_eight : format.bitWidth 8) (kernel : ExecFloat.Backend.TinyTable.CertifiedUnary (encoding format width_le_eight) modelSpec) (value : ExecFloat (Family format (Code (StoragePlan.byte width_le_eight)) (StoragePlan.byte width_le_eight))) :
runUnary width_le_eight kernel value = ExecFloat.ModelCodec.liftUnary modelSpec value

A direct unary-table call is exactly the configured lifted model operation.

theorem FloatLib.Floats.Formats.BinaryInterchange.Configured.ByteTable.runTernary_eq_lift {format : FloatFormat} {modelSpec : Model formatModel formatModel formatModel format} (width_le_eight : format.bitWidth 8) (kernel : ExecFloat.Backend.TinyTable.CertifiedTernary (encoding format width_le_eight) modelSpec) (left right addend : ExecFloat (Family format (Code (StoragePlan.byte width_le_eight)) (StoragePlan.byte width_le_eight))) :
runTernary width_le_eight kernel left right addend = ExecFloat.ModelCodec.liftTernary modelSpec left right addend

A direct ternary-table call is exactly the configured lifted model operation.