關連函數 (AssociativeFunction)
A 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.
Ontology
SUMO / BASE-ONTOLOGYSuperclass(es)
Instance(s)
乘法函數
加法函數
減法函數
除法函數
最大值函數
最小值函數
Coordinate term(s)
可換函數
Axioms (1)
- if function 是 關連函數 的 實例,
- then for all inst1,inst2,inst3 holds: if function 的 論元 是 class 的 實例 and inst1 是 class 的 實例 and inst2 是 class 的 實例 and inst3 是 class 的 實例, then "function(inst1,"function(inst2,inst3)")" 等於 "function("function(inst1,inst2)",inst3)"
.
(=>
(instance ?FUNCTION AssociativeFunction)
(forall
(?INST1 ?INST2 ?INST3)
(=>
(and
(domain ?FUNCTION 1 ?CLASS)
(instance ?INST1 ?CLASS)
(instance ?INST2 ?CLASS)
(instance ?INST3 ?CLASS))
(equal
(AssignmentFn
?FUNCTION
?INST1
(AssignmentFn ?FUNCTION ?INST2 ?INST3))
(AssignmentFn
?FUNCTION
(AssignmentFn ?FUNCTION ?INST1 ?INST2)
?INST3)))))