Documentation

Lean.Data.Name

@[export lean_name_hash_exported]
Instances For
    Instances For
      Instances For
        Instances For
          Instances For
            Instances For
              Instances For
                Instances For
                  Instances For
                    Instances For
                      def Lean.Name.lt (x y : Name) :
                      Instances For
                        Instances For
                          @[implemented_by _private.Lean.Data.Name.0.Lean.Name.quickCmpImpl]
                          def Lean.Name.quickCmp (n₁ n₂ : Name) :
                          Instances For
                            def Lean.Name.quickLt (n₁ n₂ : Name) :
                            Instances For

                              Returns true if the name has any numeric components.

                              Instances For

                                The frontend does not allow user declarations to start with _ in any of its parts. We use name parts starting with _ internally to create auxiliary names (e.g., _private).

                                Instances For

                                  The frontend does not allow user declarations to start with _ in any of its parts. We use name parts starting with _ internally to create auxiliary names (e.g., _private).

                                  This function checks if any component of the name starts with _, or is numeric.

                                  Instances For

                                    Returns true if this a part of name that is internal or dynamically generated so that it may easily be changed.

                                    Generally, user code should not explicitly use internal names.

                                    Instances For

                                      Checks whether the name is an implementation-detail hypothesis name.

                                      Implementation-detail hypothesis names start with a double underscore.

                                      Instances For
                                        Instances For
                                          Instances For
                                            Instances For
                                              Instances For
                                                def Lean.Name.anyS (n : Name) (f : StringBool) :

                                                Return true if n contains a string part s that satisfies f.

                                                Examples:

                                                #eval (`foo.bla).anyS (·.startsWith "fo") -- true
                                                #eval (`foo.bla).anyS (·.startsWith "boo") -- false
                                                
                                                Instances For

                                                  Return true if the name is in a namespace associated to metaprogramming.

                                                  Instances For