TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.Descriptor.Plan.Candidates

Certified execution candidates for arbitrary binary descriptors #

Every binary FloatFormat has a proof-carrying candidate plan for addition, subtraction, multiplication, division, square root, and fused multiply-add. The public ExecFloat dispatcher makes the only selection:

Every candidate is selected from descriptor data through the same structural predicates used by runtime dispatch. Layout-specific kernels remain specialized, but no plan depends on descriptor identity or a catalogued format name. A new IEEE, finite-only, FNUZ, or otherwise custom descriptor receives table and structural candidates when eligible, together with the generic baseline.

Cost estimates live in Descriptor.Plan.Estimates; this module is responsible for candidate availability and proof-carrying construction.

Generic certified constructors #

Descriptor-generic exhaustive tables #

def FloatLib.Floats.Formats.BinaryInterchange.Descriptor.Plan.binaryTableCertified {format : FloatFormat} (operation : ExecFloat.Backend.Operation) (modelSpec modelRun : Model formatModel formatModel format) (modelRun_eq_spec : ∀ (left right : Model format), modelRun left right = modelSpec left right) (hwidth : format.bitWidth 8) :

Build a certified exhaustive binary table for a descriptor of at most eight bits.

Instances For
    def FloatLib.Floats.Formats.BinaryInterchange.Descriptor.Plan.unaryTableCertified {format : FloatFormat} (operation : ExecFloat.Backend.Operation) (modelSpec modelRun : Model formatModel format) (modelRun_eq_spec : ∀ (value : Model format), modelRun value = modelSpec value) (hwidth : format.bitWidth 8) :

    Build a certified exhaustive unary table for a descriptor of at most eight bits.

    Instances For
      def FloatLib.Floats.Formats.BinaryInterchange.Descriptor.Plan.ternaryTableCertified {format : FloatFormat} (operation : ExecFloat.Backend.Operation) (modelSpec modelRun : Model formatModel formatModel formatModel format) (modelRun_eq_spec : ∀ (left right addend : Model format), modelRun left right addend = modelSpec left right addend) (hwidth : format.bitWidth 8) :

      Build a certified exhaustive ternary table for a descriptor of at most eight bits.

      Instances For

        Candidate availability #

        def FloatLib.Floats.Formats.BinaryInterchange.Descriptor.Plan.tableBinary? {format : FloatFormat} (operation : ExecFloat.Backend.Operation) (modelSpec modelRun : Model formatModel formatModel format) (modelRun_eq_spec : ∀ (left right : Model format), modelRun left right = modelSpec left right) :

        Offer an exhaustive binary table exactly when the encoded width fits in one byte.

        Instances For
          def FloatLib.Floats.Formats.BinaryInterchange.Descriptor.Plan.tableUnary? {format : FloatFormat} (operation : ExecFloat.Backend.Operation) (modelSpec modelRun : Model formatModel format) (modelRun_eq_spec : ∀ (value : Model format), modelRun value = modelSpec value) :

          Offer an exhaustive unary table exactly when the encoded width fits in one byte.

          Instances For
            def FloatLib.Floats.Formats.BinaryInterchange.Descriptor.Plan.tableTernary? {format : FloatFormat} (operation : ExecFloat.Backend.Operation) (modelSpec modelRun : Model formatModel formatModel formatModel format) (modelRun_eq_spec : ∀ (left right addend : Model format), modelRun left right addend = modelSpec left right addend) :

            Offer an exhaustive ternary table exactly when the encoded width fits in one byte.

            Instances For

              Complete per-operation plans #

              Certified subtraction candidates derived from descriptor structure.

              Instances For

                Certified multiplication candidates derived from descriptor structure.

                Instances For

                  Certified fused-multiply-add candidates derived from descriptor structure.

                  Instances For