-
Notifications
You must be signed in to change notification settings - Fork 248
[ add ] Relation.Nullary.Decidable.dec-yes-recompute
#2738
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this is likely a rather obscure bit of functionality with few users, I don't mind the name churn.
Well, I'm not thrilled by the name churn, but I wasn't quite prepared to just grab the old name and give it the new type... UPDATED but in a As it is, and seeing the single downstream use of the new construct, I think it can even be avoided altogether (or rather: it is still useful, but localised to its use as a step on a better path to UPDATED: the use of the new lemma in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise looks good!
I suppose that the last step would be to make the |
How about leaving the existing definition as is? |
Latest commits should fix things as agreed 2025-06-25. |
Relation.Nullary.Decidable.dec-yes
via [ add ] Relation.Nullary.Decidable.dec-yes-recompute
Relation.Nullary.Decidable.dec-yes-recompute
This PR sharpens the type of
Relation.Nullary.Decidable.dec-yes
by supplying an explicit existential witness:dec-yes-recompute
weakens the hypothesis to allow irrelevant argument.(a : A)
recompute a? a
dec-yes
then follows immediately.It introduces two new lemmas:
Relation.Nullary.Recomputable.recompute-irrelevant-id
: for propositionally irrelevantA
,recompute
is the identityRelation.Nullary.Decidable.Core.recompute-irrelevant-id
, encapsulating the aboveUPDATED:
Relation.Nullary.Recomputable
to lift definitions and basic properties out intoRelation.Nullary.Recomputable.Core
.