Skip to content

Simple Bool-contradiction lemma? #2847

Description

@andreasabel

Would there be a place for this simple lemma in the standard library?

Bool-contradiction :  {ℓ} {A : Set ℓ} {b : Bool}  b ≡ true  b ≡ false  A
Bool-contradiction refl ()

I found it convenient when refuting impossible cases concerning functions into Bool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    additiondiscoverabilityHow easy/hard will it be for users to find, within the context of their application?naming

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions