Documentation

Batteries.Data.Char.Basic

theorem Char.le_antisymm_iff {x y : Char} :
x = y x y y x
@[simp]
theorem Char.toNat_val (c : Char) :
@[simp]
theorem Char.toNat_ofNatAux {n : Nat} (h : n.isValidChar) :
(ofNatAux n h).toNat = n
@[simp]
theorem Char.toNat_mk {v : UInt32} (h : v.isValidChar) :
{ val := v, valid := h }.toNat = v.toNat
@[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
                  def Char.all (p : CharBool) :

                  Returns true if p returns true for every Char.

                  Equations
                    Instances For
                      theorem Char.eq_true_of_all_eq_true {p : CharBool} (h : Char.all p = true) (c : Char) :
                      p c = true
                      def Char.any (p : CharBool) :

                      Returns true if p returns true for some Char.

                      Equations
                        Instances For
                          theorem Char.eq_false_of_any_eq_false {p : CharBool} (h : Char.any p = false) (c : Char) :
                          p c = false