@[simp]
@[reducible, inline]
Maximum character code point. (See unicode scalar value.)
Equations
- Char.max = 1114111
Instances For
@[reducible, inline]
Maximum surrogate code point. (See unicode scalar value.)
Equations
- Char.maxSurrogate = 57343
Instances For
@[reducible, inline]
Minimum surrogate code point. (See unicode scalar value.)
Equations
- Char.minSurrogate = 55296
Instances For
@[reducible, inline]
Number of valid character code points. (See unicode scalar value.)
Equations
Instances For
theorem
Char.toNat_not_surrogate
(c : Char)
:
¬(Char.minSurrogate ≤ c.toNat ∧ c.toNat ≤ Char.maxSurrogate)
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
theorem
Char.exists_eq_false_of_all_eq_false
{p : Char → Bool}
(h : Char.all p = false)
:
∃ (c : Char), p c = false
theorem
Char.all_eq_true_iff_forall_eq_true
{p : Char → Bool}
:
Char.all p = true ↔ ∀ (c : Char), p c = true
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.exists_eq_true_of_any_eq_true
{p : Char → Bool}
(h : Char.any p = true)
:
∃ (c : Char), p c = true
theorem
Char.eq_false_of_any_eq_false
{p : Char → Bool}
(h : Char.any p = false)
(c : Char)
:
p c = false
theorem
Char.any_eq_true_iff_exists_eq_true
{p : Char → Bool}
:
Char.any p = true ↔ ∃ (c : Char), p c = true
@[implicit_reducible]
instance
Char.instDecidableForallOfDecidablePred_batteries
(P : Char → Prop)
[DecidablePred P]
:
Decidable (∀ (c : Char), P c)
@[implicit_reducible]
instance
Char.instDecidableExistsOfDecidablePred_batteries
(P : Char → Prop)
[DecidablePred P]
:
Decidable (∃ (c : Char), P c)