Helpers for Decidability / Model Checking #
This file does not import anything and thus is not specifically about Gossip.
def
Decidable.forall_of_list_mem
{α : Type u_1}
{all : List α}
(all_spec : ∀ (x : α), x ∈ all)
{P : α → Prop}
(h : DecidablePred P)
:
Decidable (∀ (x : α), P x)
Equations
- Decidable.forall_of_list_mem all_spec h = decidable_of_iff (∀ (x : α), x ∈ all → P x) ⋯
Instances For
def
Decidable.forall_implies_of_list_mem
{α : Type u_1}
{P Q : α → Prop}
(all : List α)
(all_spec : ∀ (x : α), Q x ↔ x ∈ all)
(h : DecidablePred P)
:
Decidable (∀ (x : α), Q x → P x)
Equations
- Decidable.forall_implies_of_list_mem all all_spec h = decidable_of_iff (∀ (x : α), x ∈ all → P x) ⋯