Skip to main content

State–Action Pair Ontology

Learning Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 29 October 2026
Audio Overview
FLOW ALGEBRA v1.0 — STATE–ACTION PAIR ONTOLOGY
================================================
AUTHORS: Mark Anthony Higgins — Sky Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/learning-entities/state-action-pair-ontology.html
CATEGORY: Semantic Library / AI Core / Entity Graph / AI Entities / Learning Entities
STATUS: Topic-based formalisation; the page's embedded formal specification was not accessible.
PURPOSE: Represent a state–action pair as a typed, contextual learning entity in reinforcement learning and decision processes.

1. ENTITY DEFINITION
StateActionPair := (s,a), where s belongs to state space S and a belongs to the admissible action set A(s).
A pair identifies an action considered or taken in a particular state; it is not itself a transition or a reward.

2. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: observed state information and features.
R_t: relations between state, action, policy, environment and outcome.
B_t: admissibility, safety and operational boundaries.
K_t: learned knowledge, estimates and historical evidence.
P_t = (s_t,a_t) subject to a_t in A(s_t).

3. ENTITIES
STATE: environment configuration or sufficient decision representation.
ACTION: candidate or executed operation.
STATE_ACTION_PAIR: ordered typed tuple (state, action).
ACTION_SPACE: universe of actions.
ADMISSIBLE_ACTION_SET: context-dependent valid actions A(s).
POLICY: distribution pi(a|s) or deterministic selection rule.
TRANSITION_KERNEL: P(s'|s,a).
REWARD: scalar or vector feedback r(s,a,s').
VALUE_FUNCTION: V_pi(s).
ACTION_VALUE_FUNCTION: Q_pi(s,a).
TRAJECTORY: ordered history of state–action–reward–next-state records.
EXPERIENCE_RECORD: (s,a,r,s',done).

4. RELATIONSHIPS
StateActionPair --has_state--> State
StateActionPair --has_action--> Action
Action --admissible_in--> State [if action in A(state)]
Policy --assigns_probability_to--> StateActionPair
TransitionKernel --maps_pair_to_distribution_over--> NextState
ActionValueFunction --evaluates--> StateActionPair
ExperienceRecord --contains--> StateActionPair

5. FORMAL MATHEMATICS
P = {(s,a) | s in S and a in A(s)}.
pi(a|s) >= 0; sum_{a in A(s)} pi(a|s) = 1 for discrete actions.
Q_pi(s,a) = E_pi[sum_{k=0}^infinity gamma^k r_{t+k+1} | s_t=s,a_t=a].
Q_pi(s,a) = E[r_{t+1} + gamma V_pi(s_{t+1}) | s_t=s,a_t=a].
V_pi(s) = sum_a pi(a|s) Q_pi(s,a) for discrete admissible actions.
Q_star(s,a) = E[r + gamma max_{a' in A(s')} Q_star(s',a') | s,a], when Bellman optimality assumptions apply.
For continuous actions, sums are replaced by appropriate integrals or optimisation operators.

6. PATHWAYS
OBSERVE_STATE -> VALIDATE_STATE -> ENUMERATE_ADMISSIBLE_ACTIONS
-> CONSTRUCT_PAIR -> EVALUATE_PAIR -> SELECT_ACTION
-> EXECUTE_ACTION -> OBSERVE_TRANSITION -> UPDATE_KNOWLEDGE.
Invalid action: CONSTRUCT_PAIR -> REJECT_OR_REPAIR -> REVALIDATE.
Terminal state: OBSERVE_TRANSITION -> TERMINATE_EPISODE.

7. MINI-RECURSION ENGINE
INPUT: current state s_t, knowledge K_t, policy pi_t, constraints B_t.
EXPAND: generate admissible candidate pairs {(s_t,a)}.
FILTER: remove pairs violating B_t or A(s_t).
SCORE: compute pi_t(a|s_t), Q_t(s_t,a), or another declared criterion.
SELECT: choose action by the declared policy, including exploration if configured.
EXECUTE: apply action to environment only if permitted.
OBSERVE: receive r_{t+1}, s_{t+1}, terminal flag.
UPDATE: K_{t+1} = Learn(K_t,(s_t,a_t,r_{t+1},s_{t+1},done)).
RECURSE: continue at s_{t+1} unless terminal or stop condition holds.

8. INFERENCE RULES
IF s in S AND a in A(s), THEN (s,a) is a valid state–action pair.
IF a not in A(s), THEN (s,a) is inadmissible for execution.
IF pi(a|s) > 0, THEN policy may select a in state s.
IF an experience record contains (s,a,r,s'), THEN it provides transition evidence for (s,a).
IF Q_pi(s,a) is estimated, THEN it is conditional on policy pi and modelling assumptions.
IF a state representation omits decision-relevant information, THEN Markov assumptions require review.

9. INVARIANTS
Pair ordering is preserved: (s,a) is not interchangeable with (a,s).
State and action must conform to their declared schemas.
Admissibility is evaluated relative to the same state used in the pair.
Reward and next state must not be inferred from a pair without an environment model or observations.
A Q-value estimate is not a guarantee of realised reward.
No universal optimality or convergence is claimed.

10. TRI-MAPPING
ENTITY: (s,a) as a typed state–action entity.
RELATION: admissibility, policy assignment, value estimation, transition conditioning.
PROCESS: construction -> validation -> evaluation -> execution -> learning update.

11. MAPPING TABLE
SOURCE CONCEPT | FLOW ALGEBRA REPRESENTATION | VALIDATION
State | s in S | State schema satisfied
Action | a in A(s) | Constraint check satisfied
Pair | (s,a) in P | Both elements typed and linked
Policy | pi(a|s) | Normalisation or deterministic rule
Action value | Q_pi(s,a) | Estimator and policy recorded
Transition | P(s'|s,a) | Model or observation provenance
Feedback | r | Reward source and timing recorded

12. CONDITIONAL EXECUTION GUARANTEE
Given valid typed inputs, a defined admissibility predicate and a deterministic validation procedure, pair construction and validation terminate for finite candidate sets. Selection, learning convergence, policy quality, and real-world outcomes are not guaranteed without further assumptions.

13. AI SEARCH FLOW
FLOW_ID: state-action-pair-ontology-v1
SEARCH_INTENT: Identify and reason about state–action pairs in machine learning.
SEMANTIC_EQUIVALENCE: state action tuple; RL state-action; decision pair; (s,a) entity.
ENTITY_RESOLUTION: Distinguish state–action pair from action, state transition and experience tuple.
RETRIEVAL_PATH: Learning Entities -> State–Action Pair Ontology -> typed pair -> policy/value/transition relationships.
CONFIDENCE: High for standard mathematical definitions; context-dependent for learned estimates.
UPDATE_MODEL: Revise schema, policy and estimates when environment or evidence changes.
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/learning-entities/state-action-pair-ontology.html

END FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ