Documentation

HexRCF.CellsCheck

inductive Hex.RCF.Cell (n : Nat) :

A root cell or one of the open cuts around n ordered roots.

  • open {n : Nat} (cut : Fin (n + 1)) : Cell n

    Open cell at a cut between roots, including both tails.

  • root {n : Nat} (i : Fin n) : Cell n

    Singleton cell at an isolated root.

Instances For
    @[instance_reducible]
    instance Hex.RCF.instReprCell {n✝ : Nat} :
    Repr (Cell n✝)
    Equations
    def Hex.RCF.instReprCell.repr {n✝ : Nat} :
    Cell n✝NatStd.Format
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def Hex.RCF.Cell.rank {n : Nat} :
      Cell nNat

      Alternating position of a cell in the left-to-right decomposition.

      Equations
      Instances For
        theorem Hex.RCF.Cell.rank_lt {n : Nat} (c : Cell n) :
        c.rank < 2 * n + 1

        Every rank is a valid index into a 2 * n + 1 cell vector.

        Deterministic left-to-right enumeration of all 2 * n + 1 cells.

        Equations
        Instances For
          @[simp]
          theorem Hex.RCF.Cell.size_all (n : Nat) :
          (all n).size = 2 * n + 1

          The enumeration for n roots contains 2 * n + 1 cells.

          theorem Hex.RCF.Cell.mem_all {n : Nat} (c : Cell n) :
          c all n

          Every size-correct cell occurs in the executable enumeration.

          Exact dyadic sample for an open cut.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            structure Hex.RCF.IocCmps (n : Nat) :

            Claimed carrier-root comparisons against the lower and upper endpoints of a bounded domain.

            Instances For
              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                @[instance_reducible]
                instance Hex.RCF.instReprIocCmps {n✝ : Nat} :
                Repr (IocCmps n✝)
                Equations
                def Hex.RCF.IocCmps.check (f : ZPoly) (replay : SturmReplay) (cert : IsolationCert) (a b : Dyadic) (cmps : IocCmps cert.intervals.size) :

                Recompute every claimed endpoint comparison. This validates comparison data only. The bounded-domain layer separately checks a < b.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  def Hex.RCF.Cell.meetsIoc {n : Nat} (cmps : IocCmps n) :
                  Cell nBool

                  Executable bounded-domain relevance test for a cell. The surrounding certificate first checks a < b. This definition assumes that the domain is nonempty.

                  Equations
                  Instances For
                    def Hex.RCF.Cell.meetsIocOn {n : Nat} (a b : Dyadic) (cmps : IocCmps n) (c : Cell n) :

                    Guard the nonempty-domain relevance table against equal or reversed endpoints.

                    Equations
                    Instances For