doc-src/Intro/gate2.thy
author blanchet
Tue, 26 Oct 2010 12:17:19 +0200
changeset 40178 00152d17855b
parent 105 216d6ed87399
permissions -rw-r--r--
reverted e7a80c6752c9 -- there's not much point in putting a diagnosis tool (as opposed to a proof method) in Plain, but more importantly Sledgehammer must be in Main to use SMT solvers
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