Documentation

Cvc.Untyped.Theory.String

Generated String constructors, sort-erased #

Whether s matches re.

Equations
Instances For

    Replaces every match of a regular expression.

    Equations
    Instances For

      Value of a string of digits, or -1 if it is not one.

      Equations
      Instances For

        Reversal.

        Equations
        Instances For

          Whether s contains sub.

          Equations
          Instances For

            The sub-string of length len starting at idx; empty when out of range.

            Equations
            Instances For

              Replaces every occurrence of a sub-string.

              Equations
              Instances For
                def Cvc.Untyped.Term.strUpdate [Ω] (s idx repl : Term) :

                Overwrites s from idx with repl, keeping its length; s if idx is out of range.

                Equations
                Instances For

                  Whether suf is a suffix of s.

                  Equations
                  Instances For
                    def Cvc.Untyped.Term.mkString [Ω] (s : String) (useEscapes : Bool) :

                    A string literal; with useEscapes, SMT-LIB escapes such as \u{48} in s are decoded.

                    Equations
                    Instances For

                      Whether pre is a prefix of s.

                      Equations
                      Instances For

                        Conversion to lower case.

                        Equations
                        Instances For

                          Replaces the first occurrence of a sub-string.

                          Equations
                          Instances For

                            Concatenation.

                            Equations
                            Instances For
                              def Cvc.Untyped.Term.strConcatN [Ω] (terms : Terms) (atLeastTwoElements : 2 ≤ Array.size terms := by (try grind) <;> fail "failed to prove term array has at least two elements") :

                              strConcat over two or more terms.

                              Equations
                              Instances For

                                Whether the string is a single digit, "0" through "9".

                                Equations
                                Instances For

                                  Replaces the first match of a regular expression.

                                  Equations
                                  Instances For

                                    Whether lft comes before rgt or equals it, lexicographically over code points.

                                    Equations
                                    Instances For

                                      The regular expression matching exactly the given string.

                                      Equations
                                      Instances For

                                        Index of the first match of re in s at or after start, or -1.

                                        Equations
                                        Instances For
                                          def Cvc.Untyped.Term.strIndexof [Ω] (s sub start : Term) :

                                          Index of the first occurrence of sub in s at or after start, or -1.

                                          Equations
                                          Instances For

                                            Decimal representation of a non-negative integer, or the empty string otherwise.

                                            Equations
                                            Instances For

                                              The one-character string with the given code point, or the empty string if out of range.

                                              Equations
                                              Instances For

                                                Code point of a one-character string, or -1 otherwise.

                                                Equations
                                                Instances For

                                                  Whether lft comes strictly before rgt, lexicographically over code points.

                                                  Equations
                                                  Instances For

                                                    The one-character string at an index, or the empty string if out of bounds.

                                                    Equations
                                                    Instances For

                                                      Conversion to upper case.

                                                      Equations
                                                      Instances For

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

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

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

                                                          • strContains [Ω] (s sub : Term) : View.String

                                                            Whether s contains sub.

                                                          • strPrefix [Ω] (pre s : Term) : View.String

                                                            Whether pre is a prefix of s.

                                                          • strSuffix [Ω] (suf s : Term) : View.String

                                                            Whether suf is a suffix of s.

                                                          • strIsDigit [Ω] (s : Term) : View.String

                                                            Whether the string is a single digit, "0" through "9".

                                                          • strLt [Ω] (lft rgt : Term) : View.String

                                                            Whether lft comes strictly before rgt, lexicographically over code points.

                                                          • strLe [Ω] (lft rgt : Term) : View.String

                                                            Whether lft comes before rgt or equals it, lexicographically over code points.

                                                          • strInRegex [Ω] (s re : Term) : View.String

                                                            Whether s matches re.

                                                          • strConcat [Ω] (kids : Kids) : View.String

                                                            Concatenation.

                                                            kids holds every operand, two or more.

                                                          • strLength [Ω] (s : Term) : View.String

                                                            Length.

                                                          • strSubstr [Ω] (s idx len : Term) : View.String

                                                            The sub-string of length len starting at idx; empty when out of range.

                                                          • strCharAt [Ω] (s idx : Term) : View.String

                                                            The one-character string at an index, or the empty string if out of bounds.

                                                          • strIndexof [Ω] (s sub start : Term) : View.String

                                                            Index of the first occurrence of sub in s at or after start, or -1.

                                                          • strIndexofRe [Ω] (s re start : Term) : View.String

                                                            Index of the first match of re in s at or after start, or -1.

                                                          • strReplace [Ω] (s pat repl : Term) : View.String

                                                            Replaces the first occurrence of a sub-string.

                                                          • strReplaceAll [Ω] (s pat repl : Term) : View.String

                                                            Replaces every occurrence of a sub-string.

                                                          • strReplaceRe [Ω] (s re repl : Term) : View.String

                                                            Replaces the first match of a regular expression.

                                                          • strReplaceReAll [Ω] (s re repl : Term) : View.String

                                                            Replaces every match of a regular expression.

                                                          • strRev [Ω] (s : Term) : View.String

                                                            Reversal.

                                                          • strUpdate [Ω] (s idx repl : Term) : View.String

                                                            Overwrites s from idx with repl, keeping its length; s if idx is out of range.

                                                          • strToLower [Ω] (s : Term) : View.String

                                                            Conversion to lower case.

                                                          • strToUpper [Ω] (s : Term) : View.String

                                                            Conversion to upper case.

                                                          • strToCode [Ω] (s : Term) : View.String

                                                            Code point of a one-character string, or -1 otherwise.

                                                          • strFromCode [Ω] (code : Term) : View.String

                                                            The one-character string with the given code point, or the empty string if out of range.

                                                          • strToInt [Ω] (s : Term) : View.String

                                                            Value of a string of digits, or -1 if it is not one.

                                                          • strFromInt [Ω] (arg : Term) : View.String

                                                            Decimal representation of a non-negative integer, or the empty string otherwise.

                                                          • strToRegex [Ω] (s : Term) : View.String

                                                            The regular expression matching exactly the given string.

                                                          Instances For

                                                            Values #

                                                            Whether a term is a string value.

                                                            Equations
                                                            Instances For

                                                              The string a term denotes, failing if it denotes none.

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

                                                                The string term denoting s, whatever characters it holds.

                                                                Fails on a character beyond cvc5's alphabet, whose code points stop at 0x2FFFF.

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

                                                                  The string a term denotes, failing if it denotes none.

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

                                                                    smt! literals #

                                                                    String literals in smt!. Without this module smt! accepts none.

                                                                    String literal.

                                                                    Equations
                                                                    Instances For