〈( r1*(r2*x) ≡ (r1*r2)*x )〉 // associativity in the multiplicative factor
By default, the associativity is to the left, as expressions are evaluated from left to right: 〈( r1*r2*x ≡ (r1*r2)*x )〉
Theorems
〈((x+y)^2 = (x*x + 2*x*y + y*y))〉
By the axioms of distribution and commutativity (Newton's binomial).
This theorem generalizes to any positive integer exponent.
Substraction
Syntax
(x +' y) or (x - y) // x minus y
Definition
〈(((x−y = z) ↔ (x = z+y))〉
Remarks
Since addition is commutative, the left hand inverse operator is equal to the right hand inverse operator.
It follows from the definition that subtracting two expressions, each with a corresponding multiplicative attribute, is:
If the expressions differ only in the multiplier attribute, the result is the same expression with multiplier attribute equal to the traditional subtraction.
If the expressions are different, the result is the same expression.
Examples
(5*x − x*3) // ev. 2*x
x−y // self-evaluates
(2*x − y) // self-evaluates
(2*x − 5*x) // ev. (−3)*x ev. −3*x
Axioms
〈( (x+y)−x = y )〉
〈( (x+y)−y = x )〉
〈( x−0 = x )〉
〈( x−θ = x )〉
〈( (r1*x - r2*x) = (< b>r1−r2)*x )〉 // by the definition of subtraction
〈( (r1−r2)*x =: (r1*x - r2*x) )〉 // by the definition of subtraction