doc-src/Intro/gate2.thy
author wenzelm
Thu, 17 Jul 1997 15:03:38 +0200
changeset 3524 c02cb15830de
parent 105 216d6ed87399
permissions -rw-r--r--
fixed EqI meta rule;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
105
216d6ed87399 Initial revision
lcp
parents:
diff changeset
     1
Gate2 = FOL +
216d6ed87399 Initial revision
lcp
parents:
diff changeset
     2
consts  "~&"     :: "[o,o] => o" (infixl 35)
216d6ed87399 Initial revision
lcp
parents:
diff changeset
     3
        "#"      :: "[o,o] => o" (infixl 30)
216d6ed87399 Initial revision
lcp
parents:
diff changeset
     4
        If       :: "[o,o,o] => o"       ("if _ then _ else _")
216d6ed87399 Initial revision
lcp
parents:
diff changeset
     5
rules   nand_def "P ~& Q == ~(P & Q)"    
216d6ed87399 Initial revision
lcp
parents:
diff changeset
     6
        xor_def  "P # Q  == P & ~Q | ~P & Q"
216d6ed87399 Initial revision
lcp
parents:
diff changeset
     7
        If_def   "if P then Q else R == P&Q | ~P&R"
216d6ed87399 Initial revision
lcp
parents:
diff changeset
     8
end