Documentation

Cvc.Untyped.Theory.Array

Generated Array constructors, sort-erased #

def Cvc.Untyped.Term.eqRange [Ω] (lft rgt lo hi : Term) :

Equality of two arrays at every index from lo to hi, both included.

Needs cvc5's arrays-exp option, and an integer, real, bit-vector or floating-point index.

Equations
Instances For
    def Cvc.Untyped.Term.store [Ω] (arr idx elm : Term) :

    Writes an element at an index, yielding the updated array.

    Equations
    Instances For

      Reads the element stored at an index.

      Equations
      Instances For
        def Cvc.Untyped.Term.mkConstArray [Ω] (ι : Srt) (default : Term) :

        The array mapping every index, of sort ι, to default.

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

          Array's operators, taken apart one level, sort-erased.

          • select [Ω] (arr idx : Term) : View.Array

            Reads the element stored at an index.

          • store [Ω] (arr idx elm : Term) : View.Array

            Writes an element at an index, yielding the updated array.

          • eqRange [Ω] (lft rgt lo hi : Term) : View.Array

            Equality of two arrays at every index from lo to hi, both included.

            Needs cvc5's arrays-exp option, and an integer, real, bit-vector or floating-point index.

          Instances For

            Takes a term apart one level, if Array owns its operator.

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

              Values #

              A TotalMap denotes an SMT array: a constant array holding the default element, with one store per binding. Reading one back peels that spine, keeping the outermost store for a repeated index since it is the one that wins.

              Determine if this term is a constant array.

              Equations
              Instances For

                The default element of a constant-array term, if it is one.

                Equations
                Instances For
                  def Cvc.Untyped.Term.mkArrayValue {α β : Type} [Ω] [Ord α] [ToTyp α] [ValueToTerm α] [ValueToTerm β] (map : TotalMap α β) :

                  The array term denoting a total map.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    def Cvc.Untyped.Term.getArrayValue {α β : Type} [Ω] [Ord α] [TermToValue α] [TermToValue β] (term : Term) :
                    Env (TotalMap α β)

                    The total map a constant array term denotes.

                    Equations
                    Instances For