OpenMath Content Dictionary: logic1

Canonical URL:
http://www.openmath.org/cd/logic1.ocd
CD Base:
http://www.openmath.org/cd
CD File:
logic1.ocd
CD as XML Encoded OpenMath:
logic1.omcd
Defines:
and, equivalent, false, implies, nand, nor, not, or, true, xnor, xor
Date:
2004-03-30
Version:
4
Review Date:
2006-03-30
Status:
official


     This document is distributed in the hope that it will be useful, 
     but WITHOUT ANY WARRANTY; without even the implied warranty of 
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

     The copyright holder grants you permission to redistribute this 
     document freely as a verbatim copy. Furthermore, the copyright
     holder permits you to develop any derived work from this document
     provided that the following conditions are met.
       a) The derived work acknowledges the fact that it is derived from
          this document, and maintains a prominent reference in the 
          work to the original source.
       b) The fact that the derived work is not the original OpenMath 
          document is stated prominently in the derived work.  Moreover if
          both this document and the derived work are Content Dictionaries
          then the derived work must include a different CDName element,
          chosen so that it cannot be confused with any works adopted by
          the OpenMath Society.  In particular, if there is a Content 
          Dictionary Group whose name is, for example, `math' containing
          Content Dictionaries named `math1', `math2' etc., then you should 
          not name a derived Content Dictionary `mathN' where N is an integer.
          However you are free to name it `private_mathN' or some such.  This
          is because the names `mathN' may be used by the OpenMath Society
          for future extensions.
       c) The derived work is distributed under terms that allow the
          compilation of derived works, but keep paragraphs a) and b)
          intact.  The simplest way to do this is to distribute the derived
          work under the OpenMath license, but this is not a requirement.
     If you have questions about this license please contact the OpenMath
     society at http://www.openmath.org.
  Author: OpenMath Consortium
  SourceURL: https://github.com/OpenMath/CDs
            

This CD holds the basic logic functions.


equivalent

Role:
application
Description:

This symbol is used to show that two boolean expressions are logically equivalent, that is have the same boolean value for any inputs.

Commented Mathematical property (CMP):
The condition (A is equivalent to B) is equivalent to the condition that (A implies B and B implies A)
Formal Mathematical property (FMP):
A B ( ( A B ) ( B A ) )
Signatures:
sts


[Next: not] [Last: false] [Top]

not

Role:
application
Description:

This symbol represents the logical not function which takes one boolean argument, and returns the opposite boolean value.

Commented Mathematical property (CMP):
for all x | not(not(x))=x
Formal Mathematical property (FMP):
x . ¬ ¬ x = x
Signatures:
sts


[Next: and] [Previous: equivalent] [Top]

and

Role:
application
Description:

This symbol represents the logical and function which is an n-ary function taking boolean arguments and returning a boolean value. It is true if all arguments are true or false otherwise.

Commented Mathematical property (CMP):
for all x | x and not(x) = false
Formal Mathematical property (FMP):
x . x ¬ x = F
Signatures:
sts


[Next: nand] [Previous: not] [Top]

nand

Role:
application
Description:

This symbol represents the logical nand function which is an n-ary function taking boolean arguments and returning a boolean value. It is false if all arguments are true or true otherwise.

Commented Mathematical property (CMP):
for all x | x nand not(x) = true
Formal Mathematical property (FMP):
x . nand ( x , ¬ x ) = T
Formal Mathematical property (FMP):
x , y . nand ( x , y ) = ¬ ( x y )
Signatures:
sts


[Next: xor] [Previous: and] [Top]

xor

Role:
application
Description:

This symbol represents the logical xor function which is an n-ary function taking boolean arguments and returning a boolean value. It is true if there are an odd number of true arguments or false otherwise.

Commented Mathematical property (CMP):
for all x | x xor x = false
Formal Mathematical property (FMP):
x . x xor x = F
Commented Mathematical property (CMP):
for all x | x xor not(x) = true
Formal Mathematical property (FMP):
x . x xor ¬ x = T
Signatures:
sts


[Next: xnor] [Previous: nand] [Top]

xnor

Role:
application
Description:

This symbol represents the logical xnor function which is an n-ary function taking boolean arguments and returning a boolean value. It is false if there are an odd number of true arguments or true otherwise.

Commented Mathematical property (CMP):
for all x | x xnor x = true
Formal Mathematical property (FMP):
x . xnor ( x , x ) = T
Commented Mathematical property (CMP):
for all x | x xnor not(x) = false
Formal Mathematical property (FMP):
x . xnor ( x , ¬ x ) = F
Formal Mathematical property (FMP):
x , y . xnor ( x , y ) = ¬ ( x xor y )
Signatures:
sts


[Next: or] [Previous: xor] [Top]

or

Role:
application
Description:

This symbol represents the logical or function which is an n-ary function taking boolean arguments and returning a boolean value. It is true if any of the arguments are true or false otherwise.

Commented Mathematical property (CMP):
for all x | x or not(x) = true
Formal Mathematical property (FMP):
x . x ¬ x = T
Commented Mathematical property (CMP):
for all a,b | not(a and b)= (not(a) or not(b))
Formal Mathematical property (FMP):
a , b . ¬ ( a b ) = ¬ a ¬ b
Signatures:
sts


[Next: nor] [Previous: xnor] [Top]

nor

Role:
application
Description:

This symbol represents the logical nor function which is an n-ary function taking boolean arguments and returning a boolean value. It is false if any of the arguments are true or true otherwise.

Commented Mathematical property (CMP):
for all x | x nor not(x) = false
Formal Mathematical property (FMP):
x . nor ( x , ¬ x ) = F
Commented Mathematical property (CMP):
for all a,b | a and b = (not(a) nor not(b))
Formal Mathematical property (FMP):
a , b . a b = nor ( ¬ a , ¬ b )
Formal Mathematical property (FMP):
x , y . nor ( x , y ) = ¬ ( x y )
Signatures:
sts


[Next: implies] [Previous: or] [Top]

implies

Role:
application
Description:

This symbol represents the logical implies function which takes two boolean expressions as arguments. It evaluates to false if the first argument is true and the second argument is false, otherwise it evaluates to true.

Commented Mathematical property (CMP):
for all x | false implies x
Formal Mathematical property (FMP):
x . F x
Signatures:
sts


[Next: true] [Previous: nor] [Top]

true

Role:
constant
Description:

This symbol represents the boolean value true.

Commented Mathematical property (CMP):
not true = false
Formal Mathematical property (FMP):
¬ T = F
Signatures:
sts


[Next: false] [Previous: implies] [Top]

false

Role:
constant
Description:

This symbol represents the boolean value false.

Commented Mathematical property (CMP):
not false = true
Formal Mathematical property (FMP):
¬ F = T
Signatures:
sts


[First: equivalent] [Previous: true] [Top]