Skip to content

Commit c2ec296

Browse files
author
twwar
committed
grind annotation for not
1 parent 059a85c commit c2ec296

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Cslib/Logics/Propositional/Defs.lean

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ instance : HasOr (Proposition Atom) := {or := Proposition.or}
7878
instance : HasImpl (Proposition Atom) := {impl := Proposition.impl}
7979
instance [Bot Atom] : HasNot (Proposition Atom) := {not := Proposition.neg}
8080

81+
omit [DecidableEq Atom] in
82+
@[grind =]
83+
lemma not_eq [Bot Atom] (A : Proposition Atom) : (A → ⊥) = ¬ A := rfl
84+
8185
/-- Substitute each atom in a proposition for a proposition, possibly changing the atomic
8286
language. -/
8387
def Proposition.subst {Atom Atom' : Type u} (f : Atom → Proposition Atom') :

0 commit comments

Comments
 (0)