Documentation

DocGen4.Process.Base

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

      Stores information about a typed name.

      Instances For

        An argument to a declaration, e.g. the (x : Nat) in def foo (x : Nat) := x.

        • binder : RenderedCode

          The pretty printed binder syntax itself.

        • implicit : Bool

          Whether the binder is implicit.

        Instances For

          A base structure for information about a declaration.

          Instances For

            Information about an opaque declaration.

            Instances For

              The maximum string length of equations before they are omitted from rendering.

              This is an arbitrary cutoff that seems to work well in practice. Very long equations are unreadable in documentation and slow down page generation and rendering, so we drop them and show a notice instead. The number 200 has no deeper justification.

              Equations exceeding this limit are stored as NULL blobs in the database (only text_length is preserved). The equationsWereOmitted field in DefinitionInfo is set when any equation exceeds this limit, causing the rendering code in DocGen4/Output/Definition.lean to show a notice.

              Equations
              Instances For

                Information about a def declaration, note that partial defs are handled by OpaqueInfo.

                Instances For
                  @[reducible, inline]

                  Information about a constructor of an inductive type

                  Equations
                  Instances For

                    Information about an inductive declaration

                    Instances For

                      Stores information about a structure field.

                      Instances For

                        Information about a structure parent.

                        Instances For

                          Information about a structure declaration.

                          Instances For
                            @[reducible, inline]

                            Information about a class declaration.

                            Equations
                            Instances For
                              @[reducible, inline]

                              Information about a class inductive declaration.

                              Equations
                              Instances For

                                A general type for informations about declarations.

                                Instances For

                                  Turns an Expr into a pretty printed RenderedCode.

                                  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