Skip to content
Snippets Groups Projects

add inverses of bool_decide_{true,false}

Merged Ralf Jung requested to merge ralf/bool_decide into master

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • I don't really like the names of these lemmas, the _2 suggests there's also a _1 lemma, and the one without suffix is a biimplication.

    So, ideally, the names I would you are:

    Lemma bool_decide_true (P : Prop) `{Decision P} : bool_decide P = true  P.
    Lemma bool_decide_true_1 (P : Prop) `{Decision P} : bool_decide P = true  P.
    Lemma bool_decide_true_2 (P : Prop) `{Decision P} : P  bool_decide P = true.
    
    Lemma bool_decide_false (P : Prop) `{Decision P} : bool_decide P = false  ¬P.
    Lemma bool_decide_false_1 (P : Prop) `{Decision P} : bool_decide P = false  ¬P.
    Lemma bool_decide_false_2 (P : Prop) `{Decision P} : ¬P  bool_decide P = false.

    The problem is this change is not backwards compatible. So, if we wish to keep backwards compatibility, maybe we should add the above set of lemmas with some other prefix than bool_decide_{true,false} and keep bool_decide_{true,false} for backwards compatibility reasons?

    Edited by Robbert Krebbers
  • Ralf Jung resolved all discussions

    resolved all discussions

  • Ralf Jung added 1 commit

    added 1 commit

    Compare with previous version

  • Author Owner

    I don't really like the names of these lemmas, the _2 suggests there's also a _1 lemma, and the one without suffix is a biimplication.

    Agreed. I used bool_decide_true' first, but that didn't feel right either.

    maybe we should add the above set of lemmas with some other prefix than bool_decide_{true,false} and keep bool_decide_{true,false} for backwards compatibility reasons?

    bool_decide_eq_{true,false}?

  • bool_decide_eq_{true,false}?

    Sure.

  • Ralf Jung added 1 commit

    added 1 commit

    Compare with previous version

  • Ralf Jung resolved all discussions

    resolved all discussions

  • Ralf Jung added 1 commit

    added 1 commit

    Compare with previous version

  • Author Owner

    Okay I applied that scheme, and made the old lemmas compatibility Notation.

  • Ralf Jung added 1 commit

    added 1 commit

    Compare with previous version

  • Ralf Jung added 1 commit

    added 1 commit

    • 1b14d7a1 - be even more obsessed with short proofs

    Compare with previous version

  • Ralf Jung resolved all discussions

    resolved all discussions

  • Ralf Jung added 1 commit

    added 1 commit

    Compare with previous version

  • Ralf Jung resolved all discussions

    resolved all discussions

  • mentioned in commit 02687b13

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading