Documentation

Lake.Util.Version

Version #

This module contains useful definitions for manipulating versions. It also defines a v!"<ver>" syntax for version literals.

The major-minor-patch triple of a SemVer.

Instances For
    Equations
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      Equations
      Equations
      • One or more equations did not get rendered due to their size.
      structure Lake.StdVerextends Lake.SemVerCore :

      A Lean-style semantic version. A major-minor-patch triple with an optional arbitrary - suffix.

      Instances For
        Equations
        @[reducible, inline]

        A Lean version.

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

                A Lean toolchain version.

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

                      Parse a toolchain from a lean-toolchain file.

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

                        The elan toolchain file name (i.e., lean-toolchain).

                        Equations
                        Instances For
                          @[inline]

                          Parse a toolchain from the lean-toolchain file of the directory dir.

                          Equations
                          Instances For
                            Equations

                            Version Literals #

                            Defines the v!"<ver>" syntax for version literals. The elaborator attempts to synthesize an instance of ToVersion for the expected type and then applies it to the string literal.

                            class Lake.DecodeVersion (α : Type u) :

                            Parses a version from a string.

                            Instances
                              @[defaultInstance 1000]
                              Equations

                              A Lake version literal.

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