Documentation

Batteries.Data.Char.Basic

theorem Char.le_antisymm_iff {x y : Char} :
x = y ↔ x ≤ y ∧ y ≤ x
@[simp]
theorem Char.toNat_ofNatAux {n : Nat} (h : n.isValidChar) :
(ofNatAux n h).toNat = n
@[simp]
theorem Char.val_ofNat {n : Nat} (hn : n.isValidChar) :
@[reducible, inline]
abbrev Char.max :

Maximum character code point. (See unicode scalar value.)

Equations
Instances For
    @[reducible, inline]

    Maximum surrogate code point. (See unicode scalar value.)

    Equations
    Instances For
      @[reducible, inline]

      Minimum surrogate code point. (See unicode scalar value.)

      Equations
      Instances For
        @[reducible, inline]
        abbrev Char.count :

        Number of valid character code points. (See unicode scalar value.)

        Equations
        Instances For
          @[implicit_reducible, inline]

          Checks whether a character is in the ASCII range, that is, its code point is less than 128.

          Equations
          Instances For
            def Char.all (p : Char → Bool) :

            Returns true if p returns true for every Char.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              theorem Char.eq_true_of_all_eq_true {p : Char → Bool} (h : Char.all p = true) (c : Char) :
              p c = true
              def Char.any (p : Char → Bool) :

              Returns true if p returns true for some Char.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                theorem Char.eq_false_of_any_eq_false {p : Char → Bool} (h : Char.any p = false) (c : Char) :
                p c = false
                @[instance_reducible]