Documentation

LeanPool.ConwaySoifer.Certificates.Model

Certificate data and the initial necessary model #

CertData is the content of one certificate file (proof/certificates/*.json): the contact case, the interval (lo, hi], the common denominator den, the forced steps and the owner whose final mandatory set is contradictory. initModel rebuilds the initial mandatory sets, caps and non-overfull flags inside Lean, exactly as proof/geometry_model.py does; nothing about them is read from the certificate. Owner indices: 0 = centre, 1..6 = side owners S₀..S₅, 7..9 = corner owners A₀..A₂.

Every initial point is mkPt den lo a b c d, the scaled integer form of the real parametric point (a + c s, b + d s) with s = lo + x; the lists are given explicitly per owner (rawB) so that their geometric meaning can be established by case analysis in ModelSound.lean.

The four contact cases used by the rational certificate model.

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

      Proposed interval and forced-assignment data; validity is proved separately.

      • case : Case

        The normalized contact case covered by the trace.

      • lo : ℚ

        The left endpoint of the closed parameter interval.

      • hi : ℚ

        The right endpoint of the closed parameter interval.

      • den : ℤ

        The positive common scale for integer polynomial coordinates.

      • steps : List Step

        The proposed forced-point assignments, in replay order.

      • last : Fin 10

        The proposed final obstructed owner; validity checks every owner.

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

          Trim trailing zero coefficients but keep one coefficient, as exact_polynomials.trim.

          Equations
          Instances For
            def ConwaySoifer.Certificates.mkPt (den : ℤ) (lo a b c d : ℚ) :

            The scaled parametric point ((a + c s), (b + d s)), s = lo + x, as integer polynomials in x; none if a coefficient is not integral.

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

              The six hexagon vertices, three corners and six core directions as rationals.

              Equations
              Instances For

                The three target corners as rational coordinate pairs.

                Equations
                Instances For

                  The six adaptive-core directions as rational coordinate pairs.

                  Equations
                  Instances For

                    The side owner index whose section receives the minimal endpoint: 5 (v₅) for Sext, 1 (v₁) otherwise.

                    Equations
                    Instances For

                      Whether the certificate case has a side-owner receiver.

                      Equations
                      Instances For

                        Core vertices ((1-hi) s / 3) K_j.

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

                          v_i, v_i + s (v_{i-1} - v_i), v_i + s (v_{i+1} - v_i).

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

                            w_j, w_j + s (v_{2j} - w_j), w_j + s (v_{2j+1} - w_j).

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

                              The minimal endpoint v₀ + s (v_jj - v₀).

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

                                The exit direction v_jj - v₀ (constant).

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

                                  The direction v₀ - v₁ (constant).

                                  Equations
                                  Instances For

                                    The external midpoint M₀ = (1, 1/2).

                                    Equations
                                    Instances For

                                      The two external midpoints (w_j + v_{2j}) / 2, (w_j + v_{2j+1}) / 2 of corner cell j.

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

                                        Whether the small-parameter strengthenings of the model are active.

                                        Equations
                                        Instances For
                                          def ConwaySoifer.Certificates.rawB (c : Case) (lo hi : ℚ) (den : ℤ) (j : Fin 10) :

                                          The initial mandatory list of owner j, before thinning.

                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For
                                            def ConwaySoifer.Certificates.capsOf (c : Case) (e dv bd : IPoint) (j : Fin 10) :

                                            The caps of owner j: the full endpoint of S₀ (owner 1) and, in the corner cases, the strict exclusion of the endpoint from S₁ (owner 2).

                                            Equations
                                            Instances For
                                              def ConwaySoifer.Certificates.ordOf (c : Case) (hi : ℚ) (j : Fin 10) :

                                              The non-overfull flags: side owners other than the receiver in the S cases and S₁..S₅ in Aown, only when hi ≤ 1/14.

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

                                                Rebuild necessary owner sets, cap constraints and non-overfull flags from a case.

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

                                                  The complete check of one certificate: the interval (lo, hi] is encoded as the piece [0, w] with w = hi - lo (the parameter x = s - lo), the model is rebuilt, every forced step is validated and the final mandatory set of last is contradictory.

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