| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Some properties imply others |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
module Relation.Unary.Consequences where |
| 10 |
|
| 11 |
open import Relation.Unary using (Pred; Recomputable; Decidable) |
| 12 |
open import Relation.Nullary.Decidable.Core using (recompute) |
| 13 |
|
| 14 |
dec⇒recomputable : {a ℓ : _} {A : Set a} {P : Pred A ℓ} → Decidable P → Recomputable P |
| 15 |
dec⇒recomputable P-dec = recompute (P-dec _) |
| 16 |
|
| 17 |
------------------------------------------------------------------------ |
| 18 |
-- DEPRECATED NAMES |
| 19 |
------------------------------------------------------------------------ |
| 20 |
-- Please use the new names as continuing support for the old names is |
| 21 |
-- not guaranteed. |
| 22 |
|
| 23 |
-- Version 2.0 |
| 24 |
|
| 25 |
dec⟶recomputable = dec⇒recomputable |
| 26 |
{-# WARNING_ON_USAGE dec⟶recomputable |
| 27 |
"Warning: dec⟶recomputable was deprecated in v2.0. |
| 28 |
Please use dec⇒recomputable instead." |
| 29 |
#-} |