Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions theories/Core/Equivocation.v
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ Proof.
by apply sum_weights_subseteq.
Qed.

#[export] Instance not_heavy_dec
`{BasicEquivocation st validator Cv threshold}
`{!DecidableReachableThreshold validator Cv threshold} :
forall (s : st), Decision (not_heavy s).
Proof. by intros s; apply rt_dec. Qed.

(** *** State-message oracles and endowing states with history

Our first step is to define some useful concepts in the context of a single VLSM.
Expand Down
5 changes: 5 additions & 0 deletions theories/Core/ReachableThreshold.v
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ Class ReachableThreshold V Cv (threshold : R) `{Hm : Measurable V} `{FinSet V Cv

#[global] Hint Mode ReachableThreshold - - - ! ! ! ! ! ! ! ! ! ! : typeclass_instances.

Class DecidableReachableThreshold V Cv (threshold : R) `{ReachableThreshold V Cv threshold} :=
rt_dec :> forall (vs : Cv), Decision (sum_weights vs <= threshold)%R.

#[global] Hint Mode DecidableReachableThreshold - - - ! ! ! ! ! ! ! ! ! ! ! : typeclass_instances.

Section sec_reachable_threshold_props.

Context
Expand Down
Loading