Documentation

LeanPool.DistinctDistances.S4DataElab

Data terms for the 1/40 certificate #

The certificate data of Theorem S4 (grid points, bands, chord conditions and the weighted row tags of each case) is written in the generated Lean files as string literals. The term elaborators of this file turn such a string into a term:

The elaborators only build terms; the kernel checks every use of the data. LTree stores the entry of index i at the path of the binary digits of i, lowest digit first, so that LTree.get is a short kernel computation.

inductive Esgk.S4.LTree (α : Type) :

A binary tree with values at the leaves.

Instances For
    noncomputable def Esgk.S4.LTree.get {α : Type} (t : LTree α) :
    ℕ → α

    The entry of index k: the lowest binary digit of k picks the subtree.

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

      A natural-number literal for a certificate entry.

      Equations
      Instances For

        The rational constructor term mkRat n d for a nonnegative entry.

        Equations
        Instances For

          Split one certificate line into its nonempty space-delimited fields.

          Equations
          Instances For

            Read the nonempty rows of a certificate and keep their literal line numbers.

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

              Read a natural field with a diagnostic pointing to the input row.

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

                Read exactly the declared number of natural-number fields.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  def Esgk.S4.checkedRational (row numerator denominator : ℕ) :

                  Build a rational literal with a nonzero denominator.

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

                    The tree with xs[i] at the path of the binary digits of i (lowest first); xs is padded to a power of two with its last entry.

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

                      Split a power-of-two array by successive low index bits.

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

                        The constructor term for a pair with the supplied component types.

                        Equations
                        Instances For

                          The product type of two certificate component types.

                          Equations
                          Instances For

                            Elaborate rational pairs into a low-bit-indexed tree.

                            Equations
                            Instances For

                              Elaborate triples of natural numbers into a low-bit-indexed tree.

                              Equations
                              Instances For

                                Elaborate triples of rational numbers into a low-bit-indexed tree.

                                Equations
                                Instances For

                                  The constructor and the number of arguments of a tag name.

                                  Equations
                                  Instances For
                                    @[irreducible]

                                    Combine a nonempty array interval into a balanced constructor tree.

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

                                      Elaborate weighted geometric row tags into a balanced certificate tree.

                                      Equations
                                      Instances For