Repository navigation
Recomputable - #762
Hidden character warning
Recomputable#762
Conversation
|
Note that this type alias could readily be used in:
I don't know what a good name for this principle would be though. Edit: oh wait, no. It can only be used in |
|
@gallais We could use it in |
|
@gallais All done |
|
Hmm for starters I agree with @strake that the current name isn't great. Perhaps something like My second question is what's the use case for this? Are there instances of common non-decidable relations for which this holds? If not, and it's only useful in the two recomputable lemmas then perhaps it doesn't deserve it's own type? |
|
@MatthewDaggitt The obvious example to me is pointwise equality of functions given recomputable equality of the codomain: module _ {a b} {A : Set a} {B : A → Set b} where
_≃_ : Rel ((a : A) → B a) (a ⊔ b)
f ≃ g = ∀ {a} → f a ≡ g a
≃-irrel′ : (∀ {a} → Irrelevant′ (_≡_ {_} {B a})) → Irrelevant′ _≃_
≃-irrel′ d x = d x
≃-dec : (∀ {a} → Decidable (_≡_ {_} {B a})) → Decidable _≃_
≃-dec d f g = {!!} -- I not believe it's provable.Edit: This includes certain representations of ℝ, for example: |
|
And " |
|
@MatthewDaggitt Renamed as |
Thanks, that's a great example! Would you be able to add the Unary version as well for completeness? Also as it's a bit of an uncommon name I think the full name should probably be used, i.e. Once that's done, I'll merge it in. |
|
@MatthewDaggitt All done ☺ |
Given a decidable relation, we can rebuild a relevant proof given an irrelevant one. Please feel free to propose a better name if you have one! I wasn't sure what to call it.