FLOW ALGEBRA
MONOMIAL ONTOLOGY
Kireth Semantic Library — Mathematical Entities / Expression Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/expression-entities/monomial-ontology-2.html
Authors: Mark Higgins — Sky (Recursive AI)
Version: 1.0
Date: 2026-10-13
Source status: Ontology generated from established mathematical definitions; webpage content not independently verified.
01. PURPOSE
flow "MonomialOntology" v1.0
domain: MathematicalEntities.ExpressionEntities
entity: Monomial
objective: Represent, classify, normalise, validate and reason about monomial expressions.
02. FORMAL DEFINITION
context: Commutative polynomial ring R[x_1,...,x_n] over coefficient ring R.
monomial_term: c * PRODUCT(x_i ^ a_i, i=1..n)
coefficient: c in R
exponents: a_i in NonNegativeIntegers
variable_set: finite
canonical_form: (coefficient, sorted variable-exponent pairs)
note: Some texts reserve 'monomial' for the coefficient-free product and call c times that product a 'term'. This ontology explicitly models both conventions.
03. ENTITY TYPES
MonomialTerm
PureMonomial
Coefficient
Variable
Exponent
Degree
ConstantMonomial
ZeroMonomial
MonomialProduct
LikeTermGroup
Polynomial
LaurentMonomial
04. TYPE RELATIONSHIPS
MonomialTerm IS_A AlgebraicTerm
MonomialTerm IS_A PolynomialExpression
PureMonomial PART_OF MonomialTerm
Coefficient PART_OF MonomialTerm
Exponent ANNOTATES Variable
MonomialTerm MAY_BE_TERM_OF Polynomial
LaurentMonomial DISTINCT_FROM PolynomialMonomial
05. CORE SCHEMA
id: string
expression: symbolic
coefficient: RingElement
variables: list[Identifier]
exponents: map[Identifier, NonNegativeInteger]
coefficient_ring: Ring
degree: NonNegativeInteger | Undefined
is_zero: boolean
normal_form: symbolic
provenance: URI | null
confidence: number[0,1]
06. WELL-FORMEDNESS
REQUIRE finite(variable_set)
REQUIRE unique(variable_identifiers)
REQUIRE all(exponents >= 0 and integer)
REQUIRE coefficient belongs_to coefficient_ring
REQUIRE coefficient_ring commutative for canonical polynomial multiplication
REJECT division_by_variable as ordinary polynomial monomial
REJECT fractional_or_negative_variable_exponent as ordinary polynomial monomial
ROUTE negative_integer_exponents TO LaurentMonomial
ROUTE fractional_exponents TO GeneralisedPowerExpression
07. CANONICALISATION
parse(expression) -> AST
expand_products_of_monomials(AST)
multiply_coefficients()
combine_exponents_for_identical_variables()
delete_zero_exponent_factors()
sort_variables_by_stable_identifier()
if coefficient == 0: return ZERO_MONOMIAL
emit(coefficient, exponent_vector)
preserve original_expression as provenance
08. DEGREE
if coefficient != 0:
total_degree = SUM(exponents)
degree_in(x_i) = exponent_of(x_i, default=0)
if coefficient == 0:
degree = Undefined # sometimes conventionally -infinity
constant_nonzero_degree = 0
example: degree(7*x^2*y^3) = 5
09. MULTIPLICATION
multiply(c*x^a, d*x^b) = (c*d)*x^(a+b)
exponent_vectors_add_componentwise: true
identity: 1
absorbing_element: 0
examples:
3*x^2*y * 2*x*y^3 -> 6*x^3*y^4
x^0 -> 1
10. ADDITION AND LIKE TERMS
like_terms(A,B) iff exponent_vector(A) == exponent_vector(B)
add_like(c*x^a, d*x^a) -> (c+d)*x^a
add_unlike_terms -> Polynomial (not a single monomial, except via cancellation)
example: 2*x^2 + 5*x^2 -> 7*x^2
example: x + y -> Polynomial
11. DIVISION
exact_monomial_quotient(c*x^a, d*x^b):
REQUIRE d != 0
REQUIRE coefficient_quotient c/d exists in coefficient_ring
REQUIRE a_i >= b_i for every variable
RESULT (c/d)*x^(a-b)
otherwise: route to rational_expression or appropriate extended ring
12. POWERS
power(c*x^a, k) = c^k*x^(k*a)
REQUIRE k in NonNegativeIntegers
0^0: context-dependent; do not silently simplify
13. DIVISIBILITY
pure_monomial_divides(x^a, x^b) iff all(a_i <= b_i)
term_divides(c*x^a, d*x^b) iff coefficient_divides(c,d) AND all(a_i <= b_i)
note: coefficient divisibility depends on coefficient ring
14. GCD AND LCM
over a field, ignoring nonzero unit coefficients:
gcd(x^a,x^b) = x^min(a,b)
lcm(x^a,x^b) = x^max(a,b)
min_and_max_componentwise: true
coefficient_rules: ring-dependent
15. EVALUATION
evaluate(c*PRODUCT(x_i^a_i), environment) -> RingElement
REQUIRE all_referenced_variables_bound
REQUIRE each_value_compatible_with_coefficient_ring
result = c*PRODUCT(environment[x_i]^a_i)
16. SEMANTIC EQUIVALENCE
equivalence_scope: same coefficient ring and variable interpretation
canonical_equivalence(A,B) iff normal_form(A) == normal_form(B)
examples:
2*x*y^2 EQUIVALENT_TO y^2*2*x
x*x*y EQUIVALENT_TO x^2*y
3*x + 2*x EQUIVALENT_TO 5*x after polynomial simplification
caution: algebraic equivalence is not syntactic identity
17. KNOWLEDGE GRAPH EDGES
HAS_COEFFICIENT(MonomialTerm,Coefficient)
HAS_VARIABLE(MonomialTerm,Variable)
HAS_EXPONENT(MonomialTerm,Exponent)
HAS_TOTAL_DEGREE(MonomialTerm,Degree)
NORMALISES_TO(Expression,MonomialTerm)
IS_LIKE_TERM_OF(MonomialTerm,MonomialTerm)
DIVIDES(MonomialTerm,MonomialTerm)
MULTIPLIES_TO(MonomialTerm,MonomialTerm)
BELONGS_TO_RING(MonomialTerm,PolynomialRing)
DERIVED_FROM(MonomialTerm,Source)
18. INFERENCE RULES
IF exponent_vector(A)==exponent_vector(B) THEN like_terms(A,B)
IF nonzero(A) THEN degree(A)==sum_exponents(A)
IF coefficient(A)==0 THEN normal_form(A)==0
IF multiply(A,B)==C AND nonzero(A) AND nonzero(B) AND integral_domain(R) THEN degree(C)==degree(A)+degree(B)
IF monomial(A) AND monomial(B) THEN monomial(multiply(A,B))
IF monomial(A) AND monomial(B) AND unlike(A,B) THEN polynomial(add(A,B))
19. VALIDATION EXAMPLES
ACCEPT 7
ACCEPT -3*x^2*y
ACCEPT 0
ACCEPT (2*x)*(3*y^2) -> 6*x*y^2
REJECT x^-1 AS ordinary polynomial monomial
REJECT sqrt(x) AS ordinary polynomial monomial
REJECT x+y AS single monomial
NOTE 0 is a zero polynomial/zero term; degree undefined by default
20. CONFIDENCE MODEL
mathematical_definition: 1.0 when assumptions explicitly satisfied
symbolic_parsing: confidence depends on parser and notation disambiguation
source_alignment: unverified until source page reviewed
uncertainty_flag: preserve when coefficient domain or notation ambiguous
21. FLOW HASH
canonical_payload: ontology_version + coefficient_ring + sorted_normal_form + semantic_context
FLOW_HASH: SHA256(UTF8(canonical_payload))
requirement: stable serialisation and explicit domain separation
note: Hash identifies a canonical representation, not proof of semantic truth.
22. UPDATE MODEL
version_policy: semantic_versioning
update_triggers: definition_change | schema_change | correction | source_revision
preserve_previous_versions: true
record: timestamp, reason, author, source, changed_rules
require_regression_validation: true
23. AI CONSUMPTION
input: symbolic_expression + optional_coefficient_ring + variable_types
stages: parse -> type_check -> normalise -> classify -> infer -> validate -> serialise
output: canonical_monomial | polynomial | extended_expression | validation_error
prohibit: inventing variable bindings or unstated coefficient assumptions
preserve: provenance, confidence, equivalence_scope, version, flow_hash
24. CROSS-ONTOLOGY LINKS
Parent: -Expression Entities
Related: Mathematical Expression Ontology
Related: Term Ontology
Related: Coefficient Ontology
Related: Variable Ontology
Related: Exponentiation Ontology
Related: Polynomial Ontology
Related: Algebraic Operations Ontology
END FLOW ALGEBRA
Download Code
Copy to Clipboard