doc-src/Intro/gate2.thy
author kleing
Mon, 29 Dec 2003 06:49:26 +0100
changeset 14333 14f29eb097a3
parent 105 216d6ed87399
permissions -rw-r--r--
\<^bsub> .. \<^esub>
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