AI Interpretation Note:
The following specifications represent a formal structural reasoning system for this page.
Execute as formal rules, not pseudocode.
FLOW ALGEBRA
PARTIAL ORDER ONTOLOGY
Kireth Semantic Library | Mathematical Entities | Relation Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/relation-entities/partial-order-ontology-2.html
Authors: Mark Higgins — Sky (Recursive AI)
Version: 1.0 | Date: 2026-10-13
Status: Formal mathematical specification; source-page content not independently verified.
01. PURPOSE
flow "PartialOrderOntology" v1.0
domain: mathematics.order_theory
entity: PartialOrder
notation: (P, <=_P)
semantics: reflexive_antisymmetric_transitive_binary_relation
intended_use: semantic_reasoning, theorem_checking, knowledge_graphs
02. TYPE SYSTEM
type Element
type Set[Element]
type BinaryRelation[Element] = Set[(Element, Element)]
type Poset = {carrier:Set[Element], relation:BinaryRelation[Element]}
type Boolean = {true,false}
type Evidence = {rule_id, premises, conclusion, provenance}
03. CORE DEFINITION
predicate leq(P:Poset, x:Element, y:Element) := (x,y) in P.relation
predicate reflexive(P) := forall x in P.carrier: leq(P,x,x)
predicate antisymmetric(P) := forall x,y in P.carrier: (leq(P,x,y) and leq(P,y,x)) -> x=y
predicate transitive(P) := forall x,y,z in P.carrier: (leq(P,x,y) and leq(P,y,z)) -> leq(P,x,z)
predicate is_poset(P) := relation_subset(P.relation,P.carrier x P.carrier) and reflexive(P) and antisymmetric(P) and transitive(P)
04. STRICT PART
predicate lt(P,x,y) := leq(P,x,y) and x != y
rule strict_irreflexive: is_poset(P) -> forall x: not lt(P,x,x)
rule strict_transitive: lt(P,x,y) and lt(P,y,z) -> lt(P,x,z)
rule reconstruct_nonstrict: leq(P,x,y) <-> (lt(P,x,y) or x=y)
05. COMPARABILITY
predicate comparable(P,x,y) := leq(P,x,y) or leq(P,y,x)
predicate incomparable(P,x,y) := not comparable(P,x,y)
predicate total_order(P) := is_poset(P) and forall x,y in P.carrier: comparable(P,x,y)
constraint: incomparable pairs are permitted in partial orders
06. CHAINS AND ANTICHAINS
predicate chain(P,C) := C subseteq P.carrier and forall x,y in C: comparable(P,x,y)
predicate antichain(P,A) := A subseteq P.carrier and forall distinct x,y in A: incomparable(P,x,y)
rule singleton_chain: x in P.carrier -> chain(P,{x})
rule singleton_antichain: x in P.carrier -> antichain(P,{x})
07. BOUNDS
predicate upper_bound(P,S,u) := u in P.carrier and forall s in S: leq(P,s,u)
predicate lower_bound(P,S,l) := l in P.carrier and forall s in S: leq(P,l,s)
predicate greatest(P,S,g) := g in S and forall s in S: leq(P,s,g)
predicate least(P,S,l) := l in S and forall s in S: leq(P,l,s)
predicate maximal(P,S,m) := m in S and not exists s in S: lt(P,m,s)
predicate minimal(P,S,m) := m in S and not exists s in S: lt(P,s,m)
rule greatest_implies_maximal: greatest(P,S,g) -> maximal(P,S,g)
rule least_implies_minimal: least(P,S,l) -> minimal(P,S,l)
note: maximal need not mean greatest; minimal need not mean least
08. SUPREMA AND INFIMA
predicate supremum(P,S,u) := upper_bound(P,S,u) and forall v: upper_bound(P,S,v) -> leq(P,u,v)
predicate infimum(P,S,l) := lower_bound(P,S,l) and forall v: lower_bound(P,S,v) -> leq(P,v,l)
rule unique_supremum: supremum(P,S,u) and supremum(P,S,v) -> u=v
rule unique_infimum: infimum(P,S,u) and infimum(P,S,v) -> u=v
constraint: neither is guaranteed to exist in arbitrary posets
09. COVER RELATION
predicate covers(P,y,x) := lt(P,x,y) and not exists z in P.carrier: lt(P,x,z) and lt(P,z,y)
representation: HasseDiagram = transitive_reduction_of_finite_poset_strict_relation
constraint: Hasse edges omit reflexive and transitively implied links
10. DUALITY
transform dual(P) := Poset(carrier=P.carrier, relation={(y,x) | (x,y) in P.relation})
rule dual_poset: is_poset(P) -> is_poset(dual(P))
rule dual_bounds: upper_bound(P,S,x) <-> lower_bound(dual(P),S,x)
rule dual_extrema: maximal(P,S,x) <-> minimal(dual(P),S,x)
11. SUBPOSETS AND PRODUCTS
transform induced(P,S) := Poset(carrier=S, relation=P.relation intersect (S x S))
precondition: S subseteq P.carrier
rule induced_poset: is_poset(P) -> is_poset(induced(P,S))
transform product(P,Q) := Poset(carrier=P.carrier x Q.carrier, relation={((a,b),(c,d)) | leq(P,a,c) and leq(Q,b,d)})
rule product_poset: is_poset(P) and is_poset(Q) -> is_poset(product(P,Q))
12. ORDER-PRESERVING MAPS
predicate monotone(f:P->Q) := forall x,y in P.carrier: leq(P,x,y) -> leq(Q,f(x),f(y))
predicate order_embedding(f:P->Q) := forall x,y: leq(P,x,y) <-> leq(Q,f(x),f(y))
predicate order_isomorphism(f:P->Q) := bijective(f) and order_embedding(f)
rule isomorphism_preserves_order_properties: order_isomorphism(f) -> preserves_comparability_and_extrema(f)
13. SPECIAL CASES
example divisibility: carrier={1,2,3,6}, relation={(a,b) | b mod a = 0}
example subset: carrier=power_set({a,b}), relation=subseteq
example natural_order: carrier={0,1,2,3}, relation=numeric_leq
nonexample strict_less_than: irreflexive; not a non-strict partial order
nonexample arbitrary_preorder: may fail antisymmetry
14. RELATIONSHIP GRAPH
PartialOrder --is_a--> BinaryRelation
PartialOrder --satisfies--> Reflexivity
PartialOrder --satisfies--> Antisymmetry
PartialOrder --satisfies--> Transitivity
PartialOrder --specialises--> OrderRelation
TotalOrder --is_a--> PartialOrder
Lattice --is_a--> PartialOrder
PartialOrder --has_structure--> Chain
PartialOrder --has_structure--> Antichain
PartialOrder --has_representation--> HasseDiagram
PartialOrder --has_dual--> DualOrder
15. SEMANTIC EQUIVALENCE
canonical_name: partial order
aliases: partial ordering, non-strict partial order
notation_variants: <=, preceq, subseteq, divides
rule notation_context: notation alone does not establish equivalence of relations
rule alpha_rename: renaming bound variables preserves formula semantics
rule poset_isomorphism: isomorphic posets share order-theoretic structure but need not be identical sets
16. INFERENCE ENGINE
infer transitive_edge(P,a,c) when leq(P,a,b) and leq(P,b,c)
infer comparable_pair(P,a,b) when leq(P,a,b) or leq(P,b,a)
infer nonstrict_edge(P,a,b) when lt(P,a,b) or a=b
infer unique_least(P,S,a) when least(P,S,a)
infer unique_greatest(P,S,a) when greatest(P,S,a)
restriction: absence of a stored edge is not proof of incomparability under open-world semantics
17. VALIDATION
validate carrier_membership: every endpoint in relation belongs to carrier
validate reflexivity: each carrier element relates to itself
validate antisymmetry: mutual relatedness implies equality
validate transitivity: every composable pair yields implied pair
validate finite_hasse: acyclic cover graph and correct reachability
validate bounds: check quantified conditions against declared carrier
on_failure: emit counterexample, violated_axiom, provenance
18. CONFIDENCE
confidence formal_axioms: 1.0
confidence mechanically_verified_finite_instance: 1.0 when exhaustive checks pass
confidence external_claim: evidence_weighted
constraint: confidence is not a substitute for mathematical proof
19. FLOW_HASH
flow_hash.input: canonicalised(ontology_id, version, axioms, relations, inference_rules, validation_rules)
flow_hash.algorithm: SHA-256
flow_hash.output: lowercase_hex_digest
constraint: compute digest on serialization; do not invent a fixed hash
20. UPDATE_MODEL
update_model.versioning: semantic_versioning
update_model.immutable: published_axiom_versions
update_model.changes: add_relation, revise_alias, amend_rule, deprecate_mapping
update_model.require: revalidate_axioms, rerun_examples, regenerate_flow_hash
update_model.provenance: author, date, rationale, source
21. AI_CONSUMPTION
ai_consumption.inputs: carrier, relation, optional_context, provenance
ai_consumption.outputs: classification, inferred_edges, comparability, extrema, witnesses, counterexamples
ai_consumption.reasoning: symbolic_first, evidence_traceable, domain_aware
ai_consumption.safety: never infer totality from partiality; distinguish unknown from false
ai_consumption.serialization: UTF-8 text, typed graph triples, JSON-compatible records
22. CROSS-ONTOLOGY LINKS
links: MathematicalRelationEntity, BinaryRelation, OrderRelation, TotalOrder, EquivalenceRelation
links: Set, Subset, PowerSet, CartesianProduct, EquivalenceClass
links: Graph, DirectedAcyclicGraph, Lattice, Function, MathematicalProof
23. ACCEPTANCE TESTS
test A: empty carrier with empty relation is a poset
test B: singleton carrier requires reflexive self-pair
test C: subset relation on power_set({a,b}) is a poset, not total
test D: {(a,a),(b,b),(a,b),(b,a)} with a!=b fails antisymmetry
test E: {(a,a),(b,b),(c,c),(a,b),(b,c)} fails transitivity unless (a,c) present
test F: finite divisibility poset has incomparable 2 and 3
test G: dual of a valid poset is a valid poset
test H: every greatest element is maximal, converse not generally true
END FLOW ALGEBRA