Skip to main content

Input Ontology

Function and Mapping Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 13 October 2026
Audio Overview
FLOW ALGEBRA
INPUT ONTOLOGY — FUNCTION AND MAPPING ENTITIES
Kireth Semantic Library | Version 1.0 | 2026-10-13
Authors: Mark Higgins — Sky (Recursive AI)
Source: https://kirethresearch.org/booksai-core/entity-graph/mathematical-entities/function-and-mapping-entities/input-ontology.html
Status: Mathematical formalisation; source page not independently verified.

01. PURPOSE
flow InputOntology v1.0:
  domain: mathematics/function-and-mapping-entities
  intent: represent, type, validate and reason about function inputs
  notation: f:A -> B; x in A; f(x) in B
  semantics: typed, context-dependent, provenance-aware

02. ENTITY TYPES
entity Input:
  fields: [id, value, type, domain_ref, function_ref, binding, provenance]
entity Function:
  fields: [id, domain, codomain, rule, totality]
entity InputTuple:
  fields: [components, arity, product_domain]
entity InputConstraint:
  fields: [predicate, context, validation_status]
entity Evaluation:
  fields: [function_ref, input_ref, output, status]

03. FOUNDATIONAL DEFINITIONS
  Domain(f) = A
  Codomain(f) = B
  ValidInput(f,x) iff x in Domain(f)
  Eval(f,x) = f(x) if f defined at x
  Graph(f) = {(x,f(x)) : x in Domain(f)} for total f
  Inputs are arguments to a mapping, not necessarily numeric quantities.

04. TYPING AND WELL-FORMEDNESS
rule type_check:
  given f:A -> B and x:A
  infer f(x):B
rule reject_outside_domain:
  if x notin A then reject evaluation under declared f:A -> B
rule domain_membership_unknown:
  if membership cannot be established then status=undetermined
  do not infer invalidity from lack of evidence

05. INPUT CLASSIFICATION
  scalar_input: a single scalar argument
  vector_input: a vector in a specified vector space
  tuple_input: an ordered tuple in a product domain
  symbolic_input: a variable or expression with constraints
  discrete_input: an element of a discrete domain
  continuous_input: an element of a continuous domain
  structured_input: a matrix, sequence, graph or other structured object

06. MULTIVARIATE INPUTS
  f:A1 x A2 x ... x An -> B
  x=(x1,...,xn)
  valid iff each xi in Ai, subject to additional constraints
  arity(f)=n for the selected representation
  distinguish tuple argument from curried representation

07. PARTIAL FUNCTIONS
  partial f:A ⇀ B
  DefinedDomain(f) subseteq A
  Eval(f,x) permitted iff x in DefinedDomain(f)
  x in A does not alone guarantee defined evaluation

08. DOMAIN RESTRICTIONS
  sqrt(x) over reals requires x>=0
  1/x over reals requires x!=0
  ln(x) over reals requires x>0
  input constraints depend on the selected number system

09. INPUT BINDING AND SUBSTITUTION
  bind x:=a only when a satisfies declared constraints
  substitution must respect scope and avoid variable capture
  bound inputs are distinguished from free symbolic parameters
  substitution preserves types or triggers revalidation

10. EVALUATION PIPELINE
  parse -> resolve_function -> resolve_domain -> type_check
  -> check_constraints -> bind_input -> evaluate -> validate_output
  -> attach_provenance -> emit_result

11. COMPOSITION
  f:A -> B; g:B -> C
  (g o f)(x)=g(f(x)) for x in A
  if g is partial, require f(x) in DefinedDomain(g)
  never infer composability from matching names alone

12. IMAGE AND PREIMAGE
  Image(f,S)={f(x):x in S} for S subseteq Domain(f)
  Preimage(f,T)={x in Domain(f):f(x) in T}
  an input x belongs to the domain; its image f(x) belongs to codomain

13. EQUALITY AND IDENTITY
  input_value_equality requires compatible types and interpretation
  two differently named inputs may denote the same value
  distinguish input identity, value equality and semantic equivalence

14. CONSTRAINT PROPAGATION
  given x in S and S subseteq A infer x in A
  given x in A and P(x) infer admissible(f,x) when P defines f's domain
  do not infer x in S from x in A when S subseteq A

15. KNOWLEDGE GRAPH RELATIONS
  Input --argumentOf--> Function
  Input --memberOf--> Domain
  Input --hasType--> Type
  Input --satisfies--> Constraint
  Function --mapsInputTo--> Output
  Evaluation --usesInput--> Input
  Evaluation --usesFunction--> Function
  Evaluation --produces--> Output

16. SEMANTIC EQUIVALENCE
  EquivalentInput(x,y,context) iff they denote the same typed value
  alpha-renaming of bound symbols does not change evaluation meaning
  equality of representation strings does not imply equality of meaning
  normalise units and types before numerical equivalence checks

17. VALIDATION RULES
  V01: function reference must resolve
  V02: domain must be specified or explicitly inferred
  V03: input type must match domain type
  V04: all domain predicates must hold before evaluation
  V05: partial functions require definedness verification
  V06: tuples must meet arity and component-domain constraints
  V07: missing values must not be silently replaced with zero
  V08: evaluation output must belong to codomain if defined
  V09: uncertainty must be propagated where applicable
  V10: preserve input and transformation provenance

18. INFERENCE RULES
  R01: f:A->B AND x in A => f(x) in B
  R02: x in S AND S subseteq A => x in A
  R03: x notin Domain(f) => evaluation invalid
  R04: x in DefinedDomain(f) => partial evaluation permitted
  R05: f:A->B AND g:B->C => (g o f):A->C when both total
  R06: x in Preimage(f,T) => f(x) in T
  R07: f(x)=y => y in Image(f,Domain(f))

19. EXAMPLES
  E1: f:R->R, f(x)=x^2, input -3, output 9
  E2: f:(R\{0})->R, f(x)=1/x, input 0 => invalid
  E3: f:R^2->R, f(x,y)=x+y, input (2,5), output 7
  E4: f:N->N, f(n)=n+1, input symbolic n:N => n+1:N
  E5: ln:R_positive->R, input -1 => invalid over real domain

20. EDGE CASES
  distinguish zero from missing input
  distinguish empty tuple from absent argument
  allow singleton domains and empty domains where mathematically valid
  do not assume input is scalar or numerical
  do not assume every function is total
  avoid floating-point equality for exact symbolic identity

21. CONFIDENCE
  mathematical_axioms: 1.00 when definitions and assumptions verified
  inferred_domain: attach evidence and confidence separately
  unresolved_input_type: confidence=undetermined
  confidence never substitutes for proof of domain membership

22. FLOW_HASH
  canonicalise: [ontology_id, version, function_signature, input_type,
                 constraints, inference_rules, validation_rules]
  algorithm: SHA-256 over canonical UTF-8 serialisation
  FLOW_HASH: COMPUTE_ON_DEPLOYMENT
  never publish an invented hash

23. UPDATE_MODEL
  versioning: semantic
  triggers: [domain_revision, type_system_revision, rule_revision,
             new_counterexample, corrected_definition]
  preserve_previous_version: true
  record: [timestamp, editor, change_reason, affected_rules]

24. AI_CONSUMPTION
  expose: [entity_schema, typing, domain_checks, inference_rules,
           counterexamples, provenance, confidence]
  require: type-safe input handling and explicit partiality
  prohibit: fabricated inputs, silent coercion, unsupported inference
  output: [validity_status, typed_input, evaluation_or_reason, provenance]

25. TEST CASES
  T01: f:R->R, x=2 => valid
  T02: f:R_positive->R, x=-2 => invalid
  T03: f:R^2->R, x=(1,2) => valid
  T04: f:R^2->R, x=(1,2,3) => invalid arity
  T05: partial f:R ⇀ R with domain R\{0}, x=0 => undefined
  T06: symbolic x with unknown constraints => undetermined
  T07: missing input => missing, not zero

26. TERMINATION
  assert: all sections complete
  assert: type and domain restrictions preserved
  assert: inference and validation rules explicit
  assert: no unsupported evaluation
  status: COMPLETE
END FLOW ALGEBRA
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ