Boolean quantifiers #
This proves a few properties about list.all
and list.any
, which are the bool
universal and
existential quantifiers. Their definitions are in core Lean.
@[protected, instance]
Equations
- l.decidable_forall_mem = decidable_of_iff ↥(l.all (λ (a : α), to_bool (p a))) _
@[protected, instance]
Equations
- l.decidable_exists_mem = decidable_of_iff ↥(l.any (λ (a : α), to_bool (p a))) _