Documentation

Mathlib.Data.FP.Basic

Implementation of floating-point numbers (experimental). #

def Int.shift2 (a b : ) :
Equations
Instances For
    inductive FP.RMode :
    Instances For
      Instances
        def FP.prec [C : FloatCfg] :
        Equations
        Instances For
          def FP.emax [C : FloatCfg] :
          Equations
          Instances For
            def FP.emin [C : FloatCfg] :
            Equations
            Instances For
              def FP.ValidFinite [C : FloatCfg] (e : ) (m : ) :
              Equations
              Instances For
                inductive FP.Float [C : FloatCfg] :
                Instances For
                  Equations
                  Instances For
                    def FP.toRat [C : FloatCfg] (f : Float) :
                    f.isFinite = true
                    Equations
                    Instances For
                      def FP.Float.zero [C : FloatCfg] (s : Bool) :
                      Equations
                      Instances For
                        Equations
                        Instances For
                          Equations
                          Instances For
                            Equations
                            Instances For
                              Equations
                              Instances For
                                def FP.divNatLtTwoPow (n d : ) :
                                Bool
                                Equations
                                Instances For
                                  unsafe def FP.ofPosRatDn [C : FloatCfg] (n d : ℕ+) :
                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For
                                    unsafe def FP.nextUpPos [C : FloatCfg] (e : ) (m : ) (v : ValidFinite e m) :
                                    Equations
                                    Instances For
                                      unsafe def FP.nextDnPos [C : FloatCfg] (e : ) (m : ) (v : ValidFinite e m) :
                                      Equations
                                      Instances For
                                        unsafe def FP.nextUp [C : FloatCfg] :
                                        Equations
                                        Instances For
                                          unsafe def FP.nextDn [C : FloatCfg] :
                                          Equations
                                          Instances For
                                            unsafe def FP.ofRatUp [C : FloatCfg] :
                                            Equations
                                            Instances For
                                              unsafe def FP.ofRatDn [C : FloatCfg] (r : ) :
                                              Equations
                                              Instances For
                                                unsafe def FP.ofRat [C : FloatCfg] :
                                                RModeFloat
                                                Equations
                                                • One or more equations did not get rendered due to their size.
                                                Instances For
                                                  unsafe def FP.Float.add [C : FloatCfg] (mode : RMode) :
                                                  FloatFloatFloat
                                                  Equations
                                                  Instances For
                                                    unsafe def FP.Float.sub [C : FloatCfg] (mode : RMode) (f1 f2 : Float) :
                                                    Equations
                                                    Instances For
                                                      unsafe def FP.Float.mul [C : FloatCfg] (mode : RMode) :
                                                      FloatFloatFloat
                                                      Equations
                                                      Instances For
                                                        unsafe def FP.Float.div [C : FloatCfg] (mode : RMode) :
                                                        FloatFloatFloat
                                                        Equations
                                                        Instances For