-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recomputable #762
The head ref may contain hidden characters: "irrelevance\u2032"
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.