memb and nodupb in ListDec.v#132
Draft
Villetaneuse wants to merge 1 commit intorocq-prover:masterfrom
Draft
Conversation
Still a draft, request for comments - reflect_iff_false in Bool/Bool.v to help work with reflect in vanilla - memb and nodupb in List.dec with reflection principles (some weaker, again to help with vanilla apply) : membP, memb_In, memb_nIn, nodupbP, nodupb_NoDup, nodupb_nNoDup What I'm not so sure about : - the whole thing is parameterized by a proof named `dec` of strong decidability of equality (in sumbool), instead of eqb together with a reflection principle of eqb (maybe write in an eqType, as in mathcomp) - I know, these are equivalent, via bool_of_sumbool and sumbool_of_bool, but still it encourages to use a, maybe strange and changing, proof of decidability in definitions, instead of a nice boolean function But, if we change things this way : - Maybe take eqType and most of seq from mathcomp in StdLib ? Or part of them ? In different files ? And keep ListDec (at least serveral versions) frozen for compatibility before removal ?
Member
|
I think that this goes the right direction. The boolean decider should probably be made fully boolean, i.e. depend on a boolean function rather than a predicate decider. The full boolean version is a strict subtype of the other, so it's more expressive, and it furthermore ensures a strict stratification between ugly tactic-generated proofs and computational parts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Still a draft, request for comments
What I'm not so sure about :
decof strong decidability of equality (in sumbool), instead of eqb together with a reflection principle of eqb (maybe bundled in an eqType, as in mathcomp)But, if we change things this way :
Fixes / closes #????