Skip to main content

Search Constraint Ontology

Search and Retrieval Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
SEARCH CONSTRAINT ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Search and Retrieval Entities
Version: 1.0 | 2 November 2026 | Language: en-GB
Authors: Mark Anthony Higgins; Sky — Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/search-and-retrieval-entities/search-constraint-ontology.html
Status: Supplementary formalisation; not a verified transcription of the source ontology.
Licence: Open research use; attribution and citation requested. Refer to the published Open Research Licence for governing terms.

1. PURPOSE
Represent a search constraint as an explicit, testable condition restricting candidate retrieval, ranking, presentation or search execution. Distinguish hard eligibility constraints from soft preferences and operational limits.

2. ENTITY DEFINITION
SearchConstraint c = (id, predicate, scope, mode, priority, origin, validity, provenance).
mode ∈ {HARD, SOFT}; scope ∈ {QUERY, DOCUMENT, ENTITY, RESULT, EXECUTION}.
A hard constraint is satisfied or violated; a soft constraint contributes to utility. Unspecified or unverifiable predicates remain UNKNOWN rather than silently passing.

3. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: query, candidate set and available evidence.
R_t: applicable constraint rules and evaluation operators.
B_t: boundaries (privacy, safety, time, access, cost and scope).
K_t: known entity attributes, provenance and prior evaluations.
C_t: active constraint set; E_t: eligible candidates; U_t: unresolved evaluations.

4. FORMAL FLOW
Q_t = ParseQuery(I_t)
C_t = ExtractConstraints(Q_t, K_t, B_t)
D_t = RetrieveCandidates(Q_t)
V_t(d,c) ∈ {TRUE, FALSE, UNKNOWN}
E_t = {d ∈ D_t | ∀c ∈ C_t^HARD, V_t(d,c)=TRUE}
U_t = {(d,c) | V_t(d,c)=UNKNOWN}
score(d) = relevance(d,Q_t) + Σ_{c ∈ C_t^SOFT} w_c · preference(d,c)
Result_t = Rank(E_t,score)
I_{t+1} = Update(I_t, Result_t, U_t, Feedback_t)
Hard constraints cannot be overridden by a high relevance score. UNKNOWN hard conditions require clarification, verification or explicit exclusion according to policy.

5. HST / FLOW ALGEBRA MAPPING
S = (I,R,B,K)
E_t = expand(I_t,R_t)
V_t = {x ∈ E_t : satisfies(x,B_t,C_t)}
x* = argmax_{x ∈ V_t} P(x | I_t,R_t,B_t,K_t)
I_{t+1} = update(I_t,x*,observations)
Here V_t is the admissible set; probability ranking is applied only after hard-constraint filtering.

6. TRI-MAPPING
Entity: SearchConstraint -> predicate, mode, scope, priority.
Relationship: query HAS_CONSTRAINT constraint; constraint FILTERS candidate; evidence SUPPORTS evaluation.
Process: parse -> normalise -> validate -> evaluate -> filter -> rank -> explain -> revise.

7. RELATIONSHIP GRAPH
SearchQuery --HAS_CONSTRAINT--> SearchConstraint
SearchConstraint --REFERENCES_ATTRIBUTE--> EntityAttribute
SearchConstraint --EVALUATED_AGAINST--> SearchResult
ConstraintEvaluation --SUPPORTED_BY--> Evidence
SearchConstraint --CONFLICTS_WITH--> SearchConstraint
SearchConstraint --DERIVED_FROM--> UserInstruction / SystemPolicy / Context

8. RECURSIVE REFINEMENT ENGINE
repeat until stable, budget exhausted or user intervention required:
  normalise constraints and detect contradictions;
  evaluate hard constraints on available evidence;
  request missing evidence or clarification where permitted;
  filter eligible candidates and rank by soft preferences;
  incorporate feedback and re-evaluate changed constraints.
Termination requires finite iteration budget, change detection and explicit unresolved-state reporting. No guarantee of convergence or non-empty results is assumed.

9. MAPPING TABLE
Input phrase | Constraint | Mode | Evaluation
"Only PDF files" | format=PDF | HARD | document format verified
"Prefer recent papers" | publication recency | SOFT | date-based score
"Published after 2020" | year>2020 | HARD | date verified
"Under £100" | price<100 GBP | HARD | current price evidence
"Top five results" | result_limit=5 | EXECUTION | truncate ranked list
"Exclude duplicates" | unique canonical identity | HARD | deduplication

10. INFERENCE RULES
IF explicit exclusion(x) THEN add hard constraint NOT x.
IF a hard constraint is FALSE THEN reject candidate.
IF a hard constraint is UNKNOWN THEN do not assert compliance.
IF constraints conflict THEN flag conflict and request resolution; do not silently discard user requirements.
IF a soft preference conflicts with a hard constraint THEN hard constraint takes precedence.
IF evidence or constraints change THEN invalidate affected cached evaluations.

11. EXECUTION GUARANTEE (CONDITIONAL)
Given correctly normalised predicates, complete and reliable evidence, and a sound evaluator, every returned candidate satisfies every active hard constraint. This is a conditional property of the implementation, not a guarantee that evidence is complete, results exist, or the external world is correctly represented.

12. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: URL above
CITATION_BACKLINK: URL above
PURPOSE: Explainable, constraint-aware search and retrieval.
STATE_MODEL: (I,R,B,K,C,E,U)
ENTITIES: SearchQuery, SearchConstraint, Candidate, Evidence, ConstraintEvaluation, SearchResult.
PATHWAYS: Parse -> Extract -> Validate -> Retrieve -> Evaluate -> Filter -> Rank -> Explain.
MINI_RECURSION_ENGINE: Feedback -> ReviseConstraints -> Re-evaluate -> Update.
INFERENCE_RULES: See section 10.
CONFIDENCE: Report evidence quality and unknown constraint outcomes; never equate a ranking score with proof of compliance.
SEMANTIC_EQUIVALENCE: Normalise synonyms only when meaning and scope are preserved.
FLOW_HASH: Compute from canonicalised flow content during publication; not precomputed here.
UPDATE_MODEL: Re-evaluate on changed query, evidence, policy or constraints.

13. HOW TO READ / APPLY
Read constraints as gates (hard) and ranking signals (soft). Validate evidence before claiming compliance. Keep provenance, contradictions and unknown evaluations visible. This TXT is an independently constructed companion model for the named ontology, not a claim about unseen source-page details.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ