SUMO   View all facts   Glossary   Help
Entity > Abstract > Class > Relation > Function > BinaryFunction > AssociativeFunction > AdditionFn
Next AssociativeFunctionDivisionFn    UpAssociativeFunction, CommutativeFunction, RelationExtendedToQuantities    Previous AssociativeFunctionSubtractionFn   

AdditionFn comparison table
Subject have domain2 have domain1 be first domain of have range be second domain of documentation have axiom have identityElement is a kind of is an instance of
AssociativeFunction  identityElement distributesA BinaryFunction is associative if bracketing has no effect on the value returned by the Function. More precisely, a Function ?FUNCTION is associative just in case (?FUNCTION ?INST1 (?FUNCTION ?INST2 ?INST3)) is equal to (?FUNCTION (?FUNCTION ?INST1 ?INST2) ?INST3), for all ?INST1, ?INST2, and ?INST3
(=>
(instance ?FUNCTION AssociativeFunction)
(forall (?INST1 ?INST2 ?INST3)
(=>
(and
(instance ?INST1 (DomainFn ?FUNCTION))
(instance ?INST2 (DomainFn ?FUNCTION))
(instance ?INST3 (DomainFn ?FUNCTION)))
(equal (AssignmentFn ?FUNCTION ?INST1 (AssignmentFn ?FUNCTION ?INST1 ?INST2))
(AssignmentFn ?FUNCTION (AssignmentFn ?FUNCTION ?INST1 ?INST2) ?INST3)))))
 BinaryFunction 
CommutativeFunction  identityElement distributesA BinaryFunction is commutative if the ordering of the arguments of the function has no effect on the value returned by the function. More precisely, a function ?FUNCTION is commutative just in case (?FUNCTION ?INST1 ?INST2) is equal to (?FUNCTION ?INST2 ?INST1), for all ?INST1 and ?INST2
(=>
(instance ?FUNCTION CommutativeFunction)
(forall (?INST1 ?INST2)
(=>
(and
(instance ?INST1 (DomainFn ?FUNCTION))
(instance ?INST2 (DomainFn ?FUNCTION)))
(equal (AssignmentFn ?FUNCTION ?INST1 ?INST2)
(AssignmentFn ?FUNCTION ?INST2 ?INST1)))))
 BinaryFunction 
RelationExtendedToQuantities  valence subrelationA RelationExtendedToQuantities is a Relation that, when it is true on a sequence of arguments that are RealNumbers, it is also true on a sequence of ConstantQuantites with those magnitudes in some unit of measure. For example, the lessThan relation is extended to quantities. This means that for all pairs of quantities ?QUANTITY1 and ?QUANTITY2, (lessThan ?QUANTITY1 ?QUANTITY2) if and only if, for some ?NUMBER1, ?NUMBER2, and ?UNIT, ?QUANTITY1 = (MeasureFn ?NUMBER1 ?UNIT), ?QUANTITY2 = (MeasureFn ?NUMBER2 ?UNIT), and (lessThan ?NUMBER1 ?NUMBER2), for all units ?UNIT on which ?QUANTITY1 and ?QUANTITY2 can be measured. Note that, when a RelationExtendedToQuantities is extended from RealNumbers to ConstantQuantities, the ConstantQuantities must be measured along the same physical dimension
(=>
(and
(instance ?REL RelationExtendedToQuantities)
(instance ?REL BinaryRelation)
(instance ?NUMBER1 RealNumber)
(instance ?NUMBER2 RealNumber)
(holds ?REL ?NUMBER1 ?NUMBER2))
(forall (?UNIT)
(=>
(instance ?UNIT UnitOfMeasure)
(holds ?REL (MeasureFn ?NUMBER1 ?UNIT) (MeasureFn ?NUMBER2 ?UNIT)))))
 Relation 
AdditionFnQuantityQuantityvalenceQuantitysubrelationIf ?NUMBER1 and ?NUMBER2 are Numbers, then (AdditionFn ?NUMBER1 ?NUMBER2) is the arithmetical sum of these numbers
(<=>
(equal (RemainderFn ?NUMBER1 ?NUMBER2) ?NUMBER)
(equal (AdditionFn (MultiplicationFn (FloorFn (DivisionFn ?NUMBER1 ?NUMBER2)) ?NUMBER2) ?NUMBER) ?NUMBER1))
0 RelationExtendedToQuantities

Next AssociativeFunctionDivisionFn    UpAssociativeFunction, CommutativeFunction, RelationExtendedToQuantities    Previous AssociativeFunctionSubtractionFn