Documentation

LeanPool.DistinctDistances.S4CertificateKernelReplay

Kernel replay of packed certificate checks #

A proposed summary contains literal packed tries. Direct kernel conversion against these literals avoids running the derived decidable equality for tries. For heavier cases, verify the four quarters independently and combine their exact summaries.

Check a computed equality by submitting reflexivity on its proposed right-hand side as an auxiliary theorem. Kernel conversion checks that the two sides agree.

Equations
Instances For

    Calculate the exact packed quantities from the original tree and row builder.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem Esgk.S4.summaryValidOfReplay {T : Type} {width : ℕ} {box : FarkasPackedCheck.Box} {build : T → Option FarkasPackedCheck.Row} {rows : FarkasPackedCheck.WTree T} {summary : FarkasPackedCheck.PackedSummary} (verified : replaySummary width box build rows = summary) :
      FarkasPackedCheck.SummaryValid width box build rows summary

      A replay equality certifies the four projected quantities.

      noncomputable def Esgk.S4.buildIntWithSharedDenominator (parameters : Params) (lower upper : ℚ) (tag : Tag) :

      Compute an integer row while forcing its common denominator before scaling the coefficients. A case split on the natural number lets kernel reduction share the resulting numeral.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem Esgk.S4.summaryValidOfSharedDenominatorReplay (parameters : Params) (lower upper : ℚ) {width : ℕ} {rows : FarkasPackedCheck.WTree Tag} {summary : FarkasPackedCheck.PackedSummary} (verified : replaySummary width parameters.box (buildIntWithSharedDenominator parameters lower upper) rows = summary) :
        FarkasPackedCheck.SummaryValid width parameters.box (parameters.buildInt lower upper) rows summary

        Exact replay with a shared denominator verifies the original integer-row builder.

        Check one quarter of the weighted row tree against its proposed packed summary.

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

          Verify each quarter separately, then check the combined summary.

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