TorchLean API

FloatLib.Floats.Formats.Codebook.Configured.Catalog

Configured catalog-codebook operations #

Named codebooks expose only the arithmetic justified by their complete denotation. The bipolar table has total negation and multiplication; the ternary table uses checked operations because one word is reserved.

@[reducible, inline]

Configured one-bit {-1, +1} lookup encoding.

Instances For
    @[inline]

    Construct the bipolar value negative one without exposing its stored bit.

    Instances For
      @[inline]

      Construct the bipolar value positive one without exposing its stored bit.

      Instances For
        @[simp]

        The named negative bipolar value has exact integer meaning -1.

        @[simp]

        The named positive bipolar value has exact integer meaning 1.

        @[inline]

        Exact additive inverse of a configured bipolar value.

        Instances For
          @[inline]

          Exact multiplication of configured bipolar values.

          Instances For

            Planner estimate for exact one-bit bipolar multiplication.

            Instances For

              Certified bipolar multiplication candidate used by common ExecFloat dispatch.

              Instances For
                @[instance_reducible, always_inline]

                The proved bipolar multiplication kernel participates in common ExecFloat dispatch.

                @[reducible, inline]

                Configured two-bit {0, +1, -1, reserved} lookup encoding.

                Instances For
                  @[inline]

                  Construct the ternary codebook's zero without exposing its stored word.

                  Instances For
                    @[inline]

                    Construct the ternary codebook's positive one without exposing its stored word.

                    Instances For
                      @[inline]

                      Construct the ternary codebook's negative one without exposing its stored word.

                      Instances For
                        @[inline]

                        Construct the ternary codebook's reserved exceptional value.

                        Instances For
                          @[simp]

                          The named ternary zero has exact integer meaning 0.

                          @[simp]

                          The named positive ternary value has exact integer meaning 1.

                          @[simp]

                          The named negative ternary value has exact integer meaning -1.

                          @[simp]

                          The named reserved ternary value denotes the catalog's exceptional observation.

                          @[inline]

                          Exact negation, returning none for the reserved word.

                          Instances For
                            @[inline]

                            Exact multiplication, returning none if either operand is the reserved word.

                            Instances For