Equations
- c.is_whitespace = (c ∈ [' ', '\t', '\n'])
Instances for char.is_whitespace
Instances for char.is_alpha
Equations
- c.is_alphanum = (c.is_alpha ∨ c.is_digit)
Instances for char.is_alphanum
Equations
- c.is_punctuation = (c ∈ [' ', ',', '.', '?', '!', ';', '-', '\''])
Instances for char.is_punctuation
@[protected, instance]
Equations
- char.decidable_is_whitespace = id (λ (c : char), id (list.decidable_mem c [' ', '\t', '\n']))
@[protected, instance]
Equations
- char.decidable_is_upper = id (λ (c : char), id and.decidable)
@[protected, instance]
Equations
- char.decidable_is_lower = id (λ (c : char), id and.decidable)
@[protected, instance]
Equations
- char.decidable_is_alpha = id (λ (c : char), id or.decidable)
@[protected, instance]
Equations
- char.decidable_is_digit = id (λ (c : char), id and.decidable)
@[protected, instance]
Equations
- char.decidable_is_alphanum = id (λ (c : char), id or.decidable)
@[protected, instance]
Equations
- char.decidable_is_punctuation = id (λ (c : char), id (list.decidable_mem c [' ', ',', '.', '?', '!', ';', '-', '\'']))