Physlib Documentation

Physlib.Meta.Basic

Basic Lean meta programming commands #

def Array.flatSize {α : Type u_1} :
Array (Array α)Nat

The size of a flattened array of arrays.

Equations
Instances For
    def Array.flatFilterSizeM {α : Type} {m : TypeType u_1} [Monad m] (p : αm Bool) :
    Array (Array α)m Nat

    The size of a flattened array of arrays after applying an element-wise filter.

    Equations
    Instances For

      Imports #

      Gets all imports within Physlib.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        Number of files within Physlib.

        Equations
        Instances For

          Gets all constants from an import.

          Equations
          Instances For

            Gets all user defined constants from an import.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              Turns a name into a system file path.

              Equations
              Instances For

                Lines from import.

                Equations
                Instances For

                  Name #

                  Turns a name into a Lean file.

                  Equations
                  Instances For
                    def Lean.Name.lineNumber {m : TypeType} [Monad m] [MonadEnv m] [MonadLiftT BaseIO m] (c : Name) :
                    m Nat

                    Given a name, returns the line number.

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      def Lean.Name.fileName {m : TypeType} [Monad m] [MonadEnv m] (c : Name) :

                      Given a name, returns the file name corresponding to that declaration.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For

                        Returns the location of a name.

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For
                          def Lean.Name.hasPos {m : TypeType} [Monad m] [MonadEnv m] [MonadLiftT BaseIO m] (c : Name) :

                          Determines if a name has a location.

                          Equations
                          Instances For

                            Determines if a name has a doc string.

                            Equations
                            Instances For

                              The doc string from a name.

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For

                                Given a name, returns the source code defining that name, including doc strings.

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For

                                  Given a name, returns the source code defining that name, starting with the def ... or lemma... etc.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For

                                    Number of definitions.

                                    Equations
                                    • One or more equations did not get rendered due to their size.
                                    Instances For

                                      Number of definitions.

                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Instances For

                                        All docstrings present in Physlib.

                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For

                                          Number of definitions without a doc-string.

                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For

                                            Number of definitions without a doc-string.

                                            Equations
                                            • One or more equations did not get rendered due to their size.
                                            Instances For

                                              The number of lines in Physlib.

                                              Equations
                                              Instances For

                                                The number of TODO items.

                                                Equations
                                                Instances For

                                                  The number of files with a TODO item.

                                                  Equations
                                                  • One or more equations did not get rendered due to their size.
                                                  Instances For

                                                    All user defined declarations.

                                                    Equations
                                                    Instances For