doc-src/Intro/gate2.thy
changeset 48941 fbf60999dc31
parent 48940 f0d87c6b7a2e
child 48942 75d8778f94d3
equal deleted inserted replaced
48940:f0d87c6b7a2e 48941:fbf60999dc31
     1 Gate2 = FOL +
       
     2 consts  "~&"     :: "[o,o] => o" (infixl 35)
       
     3         "#"      :: "[o,o] => o" (infixl 30)
       
     4         If       :: "[o,o,o] => o"       ("if _ then _ else _")
       
     5 rules   nand_def "P ~& Q == ~(P & Q)"    
       
     6         xor_def  "P # Q  == P & ~Q | ~P & Q"
       
     7         If_def   "if P then Q else R == P&Q | ~P&R"
       
     8 end