| name | constraints |
| description | Formal constraint theory unifying deontic logic (P/O/F/I operators), Juarrero's trichotomy (enabling/governing/constitutive), Hohfeldian rights (claim-duty, privilege-noright, power-liability, immunity-disability), and category-theoretic composition. Use when modelling permissions, obligations, prohibitions, rights structures, agent authority, governance systems, ontology validation, or any domain requiring formal constraint specification. Integrates with ontolog via ฮป-calculus mapping. |
Constraints
Formal theory of constraints as structure-preserving functors over deontic modalities
Core Definition
A constraint is a functor mapping structural contexts to deontic outcomes:
C : (ฮฃ ร A) โ ฮ
Where:
ฮฃ = Simplicial complex (structural context from ontolog)
A = Action/state space
ฮ = Deontic modality {P, O, F, I, ?}
Constraints shape possibility spaces without adding energyโthey are rate-independent causes that determine what can happen without forcing any particular outcome.
The Constraint Equation
C(ฯ, a) = ฮด โบ Within context ฯ, action a has deontic status ฮด
Composition: Constraints form a category with:
- Objects: Deontic positions
- Morphisms: Constraint transformations
- Identity: Trivial permission (P by default)
- Composition: Sequential constraint application
Deontic Modalities (ฮ)
Four fundamental operators from modal deontic logic:
| Operator | Symbol | Semantics | Dual |
|---|
| Permitted | P(a) | a is allowed | ยฌF(a) |
| Obligated | O(a) | a is required | ยฌP(ยฌa) |
| Forbidden | F(a) | a is prohibited | ยฌP(a) |
| Impossible | I(a) | a cannot occur | ยฌโa |
Axioms (Standard Deontic Logic):
D: O(a) โ P(a) โ Ought implies may
K: O(aโb) โ (O(a)โO(b)) โ Distribution
N: If โขa then โขO(a) โ Necessitation for tautologies
Interdefinitions:
P(a) โก ยฌO(ยฌa) โ Permission as non-obligatory negation
F(a) โก O(ยฌa) โ Prohibition as obligated negation
Constraint Trichotomy (Juarrero)
Constraints differ by how they shape possibility:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ CONSTRAINT TRICHOTOMY โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ ENABLING โ Creates new possibilities, opens pathways โ
โ โ Examples: catalysts, bridges, APIs, permissions โ
โ โ Effect: Expands action space โ
โ โ Hohfeldian: Privilege, Power โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ GOVERNING โ Regulates without participating, modulates rate โ
โ โ Examples: thermostats, regulatory genes, duties โ
โ โ Effect: Channels existing possibilities โ
โ โ Hohfeldian: Claim-Duty โ
โโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ CONSTITUTIVE โ Defines identity, creates closure โ
โ โ Examples: rules of chess, cell membranes, types โ
โ โ Effect: Determines what something IS โ
โ โ Hohfeldian: Immunity-Disability โ
โโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Causal flow: Enabling โ Constitutive โ Governing
- Enabling constraints induce coherence
- Constitutive constraints maintain coherence
- Governing constraints regulate coherent behaviour
Hohfeldian Rights Structure
Eight fundamental jural positions in two squares:
First-Order (Conduct)
Claim โโcorrelativeโโ Duty
โ โ
opposite opposite
โ โ
No-Right โโcorrelativeโโ Privilege
Second-Order (Normative Change)
Power โโcorrelativeโโ Liability
โ โ
opposite opposite
โ โ
Disability โโcorrelativeโโ Immunity
Position semantics:
| Position | Definition | Constraint Type |
|---|
| Claim | X has claim that Y ฯ | Governing |
| Duty | Y must ฯ toward X | Governing |
| Privilege | X may ฯ (no duty not to) | Enabling |
| No-Right | Y cannot demand X not ฯ | Enabling |
| Power | X can change Y's positions | Enabling |
| Liability | Y's positions changeable by X | Governing |
| Immunity | X's positions unchangeable by Y | Constitutive |
| Disability | Y cannot change X's positions | Constitutive |
Correlative inference: If X has Claim against Y, then Y has Duty to X (and vice versa).
The KROG Theorem
Valid actions satisfy all constraint layers within governance:
Valid(a) โบ K(a) โง R(a) โง O(a) โง (a โ G)
Where:
K(a) = Knowledge constraint (a is knowable/queryable)
R(a) = Rights constraint (agent has right to a)
O(a) = Obligation constraint (a satisfies duties)
G = Governance boundary (meta-rules)
Implication: No valid action can violate knowledge transparency, rights structure, obligation compliance, OR governance bounds.
ontolog Integration
Constraints map to ฮป-calculus primitives:
| ontolog | Constraint Role | Mapping |
|---|
| ฮฟ (base) | Constraint domain | Agents, states subject to C |
| ฮป (operation) | Constrained action | Actions C evaluates |
| ฯ (terminal) | Satisfied state | C(ฯ,a) = P โจ O fulfilled |
| ฮฃ (complex) | Context | Structural scope of C |
| H (holon) | Authority scope | Nested jurisdiction |
Constraint as ฮป-abstraction:
C = ฮปฯ.ฮปa.ฮด โ Constraint abstracts context and action to modality
Reduction:
(C ฯโ) aโ โฮฒ ฮดโ โ Applying C to specific context and action yields modality
Constraint Composition
Logical Operations
Cโ โง Cโ : Both constraints must permit
Cโ โจ Cโ : Either constraint permits
Cโ โ Cโ : If Cโ permits, Cโ must permit
ยฌC : Opposite constraint (correlative)
Category-Theoretic Operations
Cโ โ Cโ : Sequential (Cโ then Cโ)
Cโ โ Cโ : Parallel independent
Cโ + Cโ : Coproduct (choice)
Functor Laws
C(id) = id โ Identity preservation
C(f โ g) = C(f) โ C(g) โ Composition preservation
Temporal Extension
Constraints over time using temporal operators:
โกC : C holds always (invariant)
โC : C holds eventually
C U C' : C until C' (deadline)
โC : C holds next (sequence)
Common patterns:
O(a) U t โ Obligated to do a before time t
โกP(a) โ Always permitted to do a
F(a) U C(b) โ Forbidden until condition b claimed
Rigidity Classification
| Rigidity | Can Change? | Ontological Type | Example |
|---|
| Constitutional | Never | Fundamental identity | "Persons have rights" |
| Static | By governance only | Kind, Category | Type definitions |
| Dynamic | By power holders | Role, Phase | Employment status |
| Contextual | By situation | Circumstantial | Weather-dependent rules |
Validation Protocol
def validate_constraint(C, ฯ, a):
"""Validate constraint application."""
if not in_scope(a.agent, C.holon):
return Invalid("Agent outside constraint scope")
if not C.domain.contains(ฯ):
return Invalid("Context outside constraint domain")
ฮด = C(ฯ, a)
for correlative in C.correlatives:
if not consistent(ฮด, correlative(ฯ, a)):
return Invalid("Correlative inconsistency")
if not (K(a) and R(a) and O(a) and in_governance(a)):
return Invalid("KROG violation")
return Valid(ฮด)
Inference Rules
Correlative Inference
Claim(X, Y, ฯ) โข Duty(Y, X, ฯ)
Power(X, Y, ฯ) โข Liability(Y, X, ฯ)
Transitivity (where applicable)
C(a, b) โง C(b, c) โง C.transitive โข C(a, c)
Governing Propagation
Governing(C) โง C(parent, child) โง scope(H) โข C(parent, descendants(H))
Constitutional Immutability
Constitutive(C) โข ยฌโmodify(C) โ Constitutive constraints cannot be modified
Quick Reference
Constraint Declaration
constraint:
id: "hiring_authority"
type: enabling
modality: P
domain: [Manager]
action: hire
scope: department_holon
correlative: liability_to_be_hired
rigidity: dynamic
Hohfeldian Position Check
has_position(agent, position, target, action) โ Boolean
correlative_of(position) โ Position
opposite_of(position) โ Position
KROG Compliance
krog_valid(action) := K(action) โง R(action) โง O(action) โง G(action)
File Structure
constraints/
โโโ SKILL.md # This file
โโโ references/
โ โโโ deontic.md # Full deontic logic reference
โ โโโ hohfeld.md # Complete Hohfeldian analysis
โ โโโ composition.md # Category-theoretic details
โโโ scripts/
โโโ validate.py # Constraint validation
Integration Points
| Skill | Integration |
|---|
| ontolog | ฮฟ/ฮป/ฯ mapping, ฮฃ context, H scope |
| graph | Constraint edges, validation rules |
| reason | Constraint-guided branching bounds |
| agency | Agent authority via Hohfeldian positions |
Core insight: Constraints are not limitations imposed from outside but structure-preserving functors that shape possibility spaces. The trichotomy (enabling/governing/constitutive) combined with deontic modality (P/O/F/I) and Hohfeldian relational structure provides complete formal vocabulary for any rule-based system.