OpenMath Content Dictionary: relation1
Canonical URL:
http://www.openmath.org/cd/relation1.ocd
CD Base:
http://www.openmath.org/cd
CD File:
relation1.ocd
CD as XML Encoded OpenMath:
relation1.omcd
Defines:
approx , eq , geq , gt , leq , lt , neq
Date:
2004-03-30
Version:
3
(Revision 1)
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 common arithmetic relations. It is intended
to be `compatible' with the appropriate MathML elements.
Role:
application
Description:
This symbol represents the binary equality function.
Commented Mathematical property (CMP):
a=b and b=c implies a=c
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="logic1" name="implies"/>
<OMA>
<OMS cd="logic1" name="and"/>
<OMA>
<OMS cd="relation1" name="eq"/>
<OMV name="a"/>
<OMV name="b"/>
</OMA>
<OMA>
<OMS cd="relation1" name="eq"/>
<OMV name="b"/>
<OMV name="c"/>
</OMA>
</OMA>
<OMA>
<OMS cd="relation1" name="eq"/>
<OMV name="a"/>
<OMV name="c"/>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="logic1">implies</csymbol>
<apply><csymbol cd="logic1">and</csymbol>
<apply><csymbol cd="relation1">eq</csymbol><ci>a</ci><ci>b</ci></apply>
<apply><csymbol cd="relation1">eq</csymbol><ci>b</ci><ci>c</ci></apply>
</apply>
<apply><csymbol cd="relation1">eq</csymbol><ci>a</ci><ci>c</ci></apply>
</apply>
</math>
Prefix
Popcorn
$a = $b and $b = $c ==> $a = $c
Rendered Presentation MathML
Example:
An example which represents the statement 1 + 2 = 3.
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="relation1" name="eq"/>
<OMA>
<OMS cd="arith1" name="plus"/>
<OMI> 1 </OMI>
<OMI> 2 </OMI>
</OMA>
<OMI> 3 </OMI>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="relation1">eq</csymbol>
<apply><csymbol cd="arith1">plus</csymbol>
<cn type="integer">1</cn>
<cn type="integer">2</cn>
</apply>
<cn type="integer">3</cn>
</apply>
</math>
Prefix
Rendered Presentation MathML
Signatures:
sts
Role:
application
Description:
This symbol represents the binary less than function which returns
true if the first argument is less than the second, it returns false
otherwise.
Commented Mathematical property (CMP):
a<b and b<c implies a<c
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="logic1" name="implies"/>
<OMA>
<OMS cd="logic1" name="and"/>
<OMA>
<OMS cd="relation1" name="lt"/>
<OMV name="a"/>
<OMV name="b"/>
</OMA>
<OMA>
<OMS cd="relation1" name="lt"/>
<OMV name="b"/>
<OMV name="c"/>
</OMA>
</OMA>
<OMA>
<OMS cd="relation1" name="lt"/>
<OMV name="a"/>
<OMV name="c"/>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="logic1">implies</csymbol>
<apply><csymbol cd="logic1">and</csymbol>
<apply><csymbol cd="relation1">lt</csymbol><ci>a</ci><ci>b</ci></apply>
<apply><csymbol cd="relation1">lt</csymbol><ci>b</ci><ci>c</ci></apply>
</apply>
<apply><csymbol cd="relation1">lt</csymbol><ci>a</ci><ci>c</ci></apply>
</apply>
</math>
Prefix
Popcorn
$a < $b and $b < $c ==> $a < $c
Rendered Presentation MathML
Example:
An example which represents the statement 1 + 2 < 4
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="relation1" name="lt"/>
<OMA>
<OMS cd="arith1" name="plus"/>
<OMI> 1 </OMI>
<OMI> 2 </OMI>
</OMA>
<OMI> 4 </OMI>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="relation1">lt</csymbol>
<apply><csymbol cd="arith1">plus</csymbol>
<cn type="integer">1</cn>
<cn type="integer">2</cn>
</apply>
<cn type="integer">4</cn>
</apply>
</math>
Prefix
Rendered Presentation MathML
Signatures:
sts
Role:
application
Description:
This symbol represents the binary greater than function which returns
true if the first argument is greater than the second, it returns false
otherwise.
Commented Mathematical property (CMP):
a>b and b>c implies a>c
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="logic1" name="implies"/>
<OMA>
<OMS cd="logic1" name="and"/>
<OMA>
<OMS cd="relation1" name="gt"/>
<OMV name="a"/>
<OMV name="b"/>
</OMA>
<OMA>
<OMS cd="relation1" name="gt"/>
<OMV name="b"/>
<OMV name="c"/>
</OMA>
</OMA>
<OMA>
<OMS cd="relation1" name="gt"/>
<OMV name="a"/>
<OMV name="c"/>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="logic1">implies</csymbol>
<apply><csymbol cd="logic1">and</csymbol>
<apply><csymbol cd="relation1">gt</csymbol><ci>a</ci><ci>b</ci></apply>
<apply><csymbol cd="relation1">gt</csymbol><ci>b</ci><ci>c</ci></apply>
</apply>
<apply><csymbol cd="relation1">gt</csymbol><ci>a</ci><ci>c</ci></apply>
</apply>
</math>
Prefix
Popcorn
$a > $b and $b > $c ==> $a > $c
Rendered Presentation MathML
Example:
An example which represents the statement 1 + 2 > 2
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="relation1" name="gt"/>
<OMA>
<OMS cd="arith1" name="plus"/>
<OMI> 1 </OMI>
<OMI> 2 </OMI>
</OMA>
<OMI> 2 </OMI>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="relation1">gt</csymbol>
<apply><csymbol cd="arith1">plus</csymbol>
<cn type="integer">1</cn>
<cn type="integer">2</cn>
</apply>
<cn type="integer">2</cn>
</apply>
</math>
Prefix
Rendered Presentation MathML
Signatures:
sts
Role:
application
Description:
This symbol represents the binary inequality function.
Commented Mathematical property (CMP):
it is not true that a=/b and b=/c implies a=/c
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="logic1" name="not"/>
<OMA>
<OMS cd="logic1" name="implies"/>
<OMA>
<OMS cd="logic1" name="and"/>
<OMA>
<OMS cd="relation1" name="neq"/>
<OMV name="a"/>
<OMV name="b"/>
</OMA>
<OMA>
<OMS cd="relation1" name="neq"/>
<OMV name="b"/>
<OMV name="c"/>
</OMA>
</OMA>
<OMA>
<OMS cd="relation1" name="neq"/>
<OMV name="a"/>
<OMV name="c"/>
</OMA>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="logic1">not</csymbol>
<apply><csymbol cd="logic1">implies</csymbol>
<apply><csymbol cd="logic1">and</csymbol>
<apply><csymbol cd="relation1">neq</csymbol><ci>a</ci><ci>b</ci></apply>
<apply><csymbol cd="relation1">neq</csymbol><ci>b</ci><ci>c</ci></apply>
</apply>
<apply><csymbol cd="relation1">neq</csymbol><ci>a</ci><ci>c</ci></apply>
</apply>
</apply>
</math>
Prefix
Popcorn
not($a != $b and $b != $c ==> $a != $c)
Rendered Presentation MathML
¬
(
a
≠
b
∧
b
≠
c
⇒
a
≠
c
)
Example:
An example which represents the statement 1 + 2 not = 2
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="relation1" name="neq"/>
<OMA>
<OMS cd="arith1" name="plus"/>
<OMI> 1 </OMI>
<OMI> 2 </OMI>
</OMA>
<OMI> 2 </OMI>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="relation1">neq</csymbol>
<apply><csymbol cd="arith1">plus</csymbol>
<cn type="integer">1</cn>
<cn type="integer">2</cn>
</apply>
<cn type="integer">2</cn>
</apply>
</math>
Prefix
Rendered Presentation MathML
Signatures:
sts
Role:
application
Description:
This symbol represents the binary less than or equal to function which returns
true if the first argument is less than or equal to the second, it
returns false otherwise.
Commented Mathematical property (CMP):
a<=b and b<=c implies a<=c
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="logic1" name="implies"/>
<OMA>
<OMS cd="logic1" name="and"/>
<OMA>
<OMS cd="relation1" name="leq"/>
<OMV name="a"/>
<OMV name="b"/>
</OMA>
<OMA>
<OMS cd="relation1" name="leq"/>
<OMV name="b"/>
<OMV name="c"/>
</OMA>
</OMA>
<OMA>
<OMS cd="relation1" name="leq"/>
<OMV name="a"/>
<OMV name="c"/>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="logic1">implies</csymbol>
<apply><csymbol cd="logic1">and</csymbol>
<apply><csymbol cd="relation1">leq</csymbol><ci>a</ci><ci>b</ci></apply>
<apply><csymbol cd="relation1">leq</csymbol><ci>b</ci><ci>c</ci></apply>
</apply>
<apply><csymbol cd="relation1">leq</csymbol><ci>a</ci><ci>c</ci></apply>
</apply>
</math>
Prefix
Popcorn
$a <= $b and $b <= $c ==> $a <= $c
Rendered Presentation MathML
Example:
An example which represents the statement 1 + 2 <= 4
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="relation1" name="leq"/>
<OMA>
<OMS cd="arith1" name="plus"/>
<OMI> 1 </OMI>
<OMI> 2 </OMI>
</OMA>
<OMI> 4 </OMI>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="relation1">leq</csymbol>
<apply><csymbol cd="arith1">plus</csymbol>
<cn type="integer">1</cn>
<cn type="integer">2</cn>
</apply>
<cn type="integer">4</cn>
</apply>
</math>
Prefix
Rendered Presentation MathML
Signatures:
sts
Role:
application
Description:
This symbol represents the binary greater than or equal to function
which returns true if the first argument is greater than or equal to
the second, it returns false otherwise.
Commented Mathematical property (CMP):
a>=b and b>=c implies a>=c
Formal Mathematical property (FMP):
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="logic1" name="implies"/>
<OMA>
<OMS cd="logic1" name="and"/>
<OMA>
<OMS cd="relation1" name="geq"/>
<OMV name="a"/>
<OMV name="b"/>
</OMA>
<OMA>
<OMS cd="relation1" name="geq"/>
<OMV name="b"/>
<OMV name="c"/>
</OMA>
</OMA>
<OMA>
<OMS cd="relation1" name="geq"/>
<OMV name="a"/>
<OMV name="c"/>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="logic1">implies</csymbol>
<apply><csymbol cd="logic1">and</csymbol>
<apply><csymbol cd="relation1">geq</csymbol><ci>a</ci><ci>b</ci></apply>
<apply><csymbol cd="relation1">geq</csymbol><ci>b</ci><ci>c</ci></apply>
</apply>
<apply><csymbol cd="relation1">geq</csymbol><ci>a</ci><ci>c</ci></apply>
</apply>
</math>
Prefix
Popcorn
$a >= $b and $b >= $c ==> $a >= $c
Rendered Presentation MathML
Example:
An example which represents the statement 1 + 2 >= 3
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="relation1" name="geq"/>
<OMA>
<OMS cd="arith1" name="plus"/>
<OMI> 1 </OMI>
<OMI> 2 </OMI>
</OMA>
<OMI> 3 </OMI>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="relation1">geq</csymbol>
<apply><csymbol cd="arith1">plus</csymbol>
<cn type="integer">1</cn>
<cn type="integer">2</cn>
</apply>
<cn type="integer">3</cn>
</apply>
</math>
Prefix
Rendered Presentation MathML
Signatures:
sts
Role:
application
Description:
This symbol is used to denote the approximate equality of its two arguments.
Example:
\pi is approximately 355/113
OpenMath XML (source)
<OMOBJ xmlns="http://www.openmath.org/OpenMath" version="2.0" cdbase="http://www.openmath.org/cd">
<OMA>
<OMS cd="relation1" name="approx"/>
<OMS cd="nums1" name="pi"/>
<OMA>
<OMS cd="nums1" name="rational"/>
<OMI> 355 </OMI>
<OMI> 113 </OMI>
</OMA>
</OMA>
</OMOBJ>
Strict Content MathML
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply><csymbol cd="relation1">approx</csymbol>
<csymbol cd="nums1">pi</csymbol>
<apply><csymbol cd="nums1">rational</csymbol>
<cn type="integer">355</cn>
<cn type="integer">113</cn>
</apply>
</apply>
</math>
Prefix
Popcorn
relation1.approx(nums1.pi, 355 // 113)
Rendered Presentation MathML
Signatures:
sts