Skip to main content

Part 8· Appendix D

Appendix D — Hybrid Dynamical Systems Background

Purpose: Provide mathematical background on hybrid dynamical systems and their application to RelationWorld's state space.


D.1 What Is a Hybrid Dynamical System?

A hybrid dynamical system (HDS) combines:

  1. Continuous dynamics: smooth evolution governed by differential equations.
  2. Discrete dynamics: mode switches or jumps (resets) at specified conditions.

Formal definition (simplified for this context):

A hybrid dynamical system is a 6-tuple (Q,X,f,G,R,Init)(Q, X, f, G, R, \mathrm{Init}) where:

ComponentMeaning
QQFinite set of discrete modes (qualitative states).
X(q)X(q)Continuous state space associated with mode qQq \in Q.
fq:X(q)TX(q)f_q : X(q) \to T X(q)Vector field (continuous dynamics) in mode qq.
Gq,qG_{q,q'}Guard sets: conditions triggering transition qqq \to q'.
Rq,q:X(q)X(q)R_{q,q'} : X(q) \to X(q')Reset maps: how continuous state transforms during transition.
Init\mathrm{Init}Initial condition (q0,x0)(q_0, x_0).

Execution:

  • Within mode qq, the state x(t)X(q)x(t) \in X(q) evolves via x˙=fq(x)\dot{x} = f_q(x).
  • When x(t)x(t) hits guard Gq,qG_{q,q'}, a discrete transition fires: qq changes to qq', and xx is reset via Rq,qR_{q,q'}.
  • In the new mode qq', continuous evolution resumes.

Key property: The state space is stratified — not a single manifold, but a union of different-dimensional spaces.


D.2 Application to RelationWorld

Mapping RelationWorld to the HDS Framework

HDS ComponentRelationWorld Instantiation
QQTopologies: Q:={(n,E):nN,EVn2diag}Q := \{(n, E) : n \in \mathbb{N}, E \subseteq V_n^2 \setminus \mathrm{diag}\}
X(q)X(q)For q=(n,E)q = (n, E): raw parameter space P(n,E):=R0E×GEP(n,E) := \mathbb{R}_{\ge 0}^{\|E\|} \times G^{\|E\|}
fqf_qYang--Mills gradient flow: h˙=hEF(h)\dot{h} = -\nabla_h \mathcal{E}_{F^\circ}(h) (Chapter 13) plus exogenous DEFORM
Gq,qG_{q,q'}Topology-change guards (e.g., CONTACT, BIRTH, DEATH triggers)
Rq,qR_{q,q'}Event resets (e.g., initialization of new edge weights/transits after CONTACT)
Init\mathrm{Init}Initial world configuration (V0,w0,g0)(V_0, w_0, g_0)

The Six Events as Discrete Transitions

EventMode TransitionGuardReset
DEFORM(n,E)(n,E)(n,E) \to (n,E)Continuous (always active)Identity (in-place update)
CONTACT(n,E)(n,E{(i,j),(j,i)})(n,E) \to (n,E \cup \{(i,j),(j,i)\})Command triggeredwij:=εw_{ij}:=\varepsilon, gij:=eg_{ij}:=e
BIRTH(n,E)(n+1,E)(n,E) \to (n+1, E')Command triggeredNew node initialization
DEATH(n,E)(n1,EEv)(n,E) \to (n-1, E \setminus E_v)Command triggeredRemove incident edges
SPLIT(n,E)(n,E)(n,E) \to (n,E)ϕ(F)=θ\phi(F) = \theta crossingRecompute Ft\mathfrak{F}_t
MERGE(n,E)(n,E)(n,E) \to (n,E)ϕ(F)=θ\phi(F) = \theta crossingRecompute Ft\mathfrak{F}_t

D.3 Continuous Dynamics: Yang--Mills Gradient Flow

The Flow Equation

Within a fixed topology (n,E)(n, E), the continuous dynamics are driven by Yang--Mills gradient flow:

dhidt=j:(i,j)EhiEF(h)\boxed{\frac{dh_i}{dt} = -\sum_{j: (i,j)\in E} \nabla_{h_i} \mathcal{E}_{F^\circ}(h)}

where:

  • h=(h1,,hn)Gnh = (h_1, \ldots, h_n) \in G^n is the gauge transformation vector.
  • EF\mathcal{E}_{F^\circ} is the Yang--Mills (flattening) energy on the fruit interior (Chapter 7).
  • hi\nabla_{h_i} is the gradient w.r.t. the ii-th factor.

Convergence (Theorem H, Chapter 7): For fixed topology, this gradient flow converges to a critical point (local minimum) of EF\mathcal{E}_{F^\circ}.

Geometric interpretation: The flow minimizes the "curvature" of the connection, driving it toward flatness. In the flat limit (all holonomies Ω=e\Omega = e), the system reaches a stable equilibrium.

Phase Portrait

The phase portrait of the continuous dynamics within a topology (n,E)(n, E) has:

  • Stable fixed points (local minima of EF\mathcal{E}_{F^\circ}).
  • Saddle points (saddle critical points).
  • Unstable manifolds (rare; the energy is Morse-like).

Trajectories may approach different fixed points depending on initial conditions (basin of attraction).


D.4 Discrete Dynamics: Guard Crossings and Resets

Topology-Change Events

When the system trajectory (n(t),E(t),w(t),g(t))(n(t), E(t), w(t), g(t)) hits a guard condition, a discrete transition fires.

Guard: CONTACT(i,j)

Condition: External command or intrinsic rule triggers edge activation.

Effect:

  • Edge support expands: EE{(i,j),(j,i)}E \to E \cup \{(i,j), (j,i)\}.
  • Dimension of continuous state increases: P(n,E)P(n,E{(i,j),(j,i)})|P(n, E)| \to |P(n, E \cup \{(i,j),(j,i)\})|.
  • The reset map initializes the new edge: wij:=ε>0w_{ij} := \varepsilon > 0 (small perturbation), gij:=eg_{ij} := e (identity).

Consequence for fruits: Adding an edge may create new fruits (if the new edge has low conductance) or merge existing fruits (if the new edge has high conductance).

Guard: BIRTH(v)

Condition: External command introduces a new node.

Effect:

  • Node set expands: VV{v}V \to V \cup \{v\}; nn+1n \to n+1.
  • Gauge group grows: GnGn+1G^n \to G^{n+1}.
  • Initial edge specification: typically a pre-computed set EvE_v of edges from vv to existing nodes.

Consequence for fruits: The new node may form its own fruit or join existing fruits, depending on weights.

Guard: DEATH(v)

Condition: External command removes a node.

Effect:

  • Node set shrinks: VV{v}V \to V \setminus \{v\}; nn1n \to n-1.
  • All edges incident to vv are deleted: EEEvE \to E \setminus E_v.
  • The fruit containing vv is recomputed (may split or vanish entirely).

Threshold-Based Guards: SPLIT/MERGE

SPLIT guard condition:

GSPLIT:={(x,t):FFt with ϕt(F) crosses θ from below}G_{\mathrm{SPLIT}} := \{(x,t) : \exists F \in \mathfrak{F}_t \text{ with } \phi_t(F) \text{ crosses } \theta \text{ from below}\}

When the Cheeger conductance ϕ(F)\phi(F) decreases below the threshold θ\theta, a new fruit "splits off." Formally, the fruit detection algorithm in Chapter 4 recomputes Ft\mathfrak{F}_t and finds a new component.

MERGE guard condition:

GMERGE:={(x,t):F1,F2Ft with ϕ(F1F2) crosses θ from above}G_{\mathrm{MERGE}} := \{(x,t) : \exists F_1, F_2 \in \mathfrak{F}_t \text{ with } \phi(F_1 \cup F_2) \text{ crosses } \theta \text{ from above}\}

When the conductance of a union drops below θ\theta, two fruits merge.

Reset for SPLIT/MERGE: The discrete topology (n,E)(n, E) does not change. Only the derived structures (Ft,Σt)(\mathfrak{F}_t, \Sigma_t) are recomputed. This is a "mode switch" within the same continuous state space P(n,E)P(n,E).


D.5 Switching and Transversality

Transversal Crossings

A guard crossing is transversal if the trajectory crosses the guard set transversely (not tangentially). Formally:

Definition D.1 (Transversal crossing): The trajectory x(t)x(t) is transversal to guard Gq,qG_{q,q'} at time tt^* if:

x(t)Gq,qandx˙(t)⊥̸Tx(t)Gq,qx(t^*) \in G_{q,q'} \quad \text{and} \quad \dot{x}(t^*) \not\perp T_{x(t^*)} G_{q,q'}

(the velocity is not parallel to the guard surface).

Consequence: Near a transversal crossing, the solution is locally unique, and the reset map applies cleanly.

Zeno Behavior and Chattering

Zeno behavior occurs when a system undergoes infinitely many discrete transitions in finite time.

Example: If SPLIT/MERGE guards are very close, the system might oscillate rapidly between modes.

Mitigation: Hysteresis (guard conditions with threshold width) prevents Zeno. In RelationWorld, we can impose:

  • Splitting threshold: ϕ<θδ\phi < \theta - \delta (strictly below).
  • Merging threshold: ϕ>θ+δ\phi > \theta + \delta (strictly above).

This creates a dead band and prevents oscillation.


D.6 Lyapunov Stability and Convergence

Energy Function

Define the total Lyapunov function for the hybrid system:

V(q,x):=E(x)+λ(topological cost)V(q, x) := \mathcal{E}(x) + \lambda \cdot (\text{topological cost})

where E(x)\mathcal{E}(x) is the Yang--Mills energy of the configuration xx in mode qq, and the topological cost penalizes topology changes (or encourages them, depending on design goals).

Stability Theorem

Theorem D.1 (Hybrid stability): The hybrid evolution satisfies:

dVdtcontinuousαx˙2(α>0)\frac{dV}{dt}\bigg|_{\text{continuous}} \le -\alpha \|\dot{x}\|^2 \quad (\alpha > 0) ΔVresetβ(β>0, event-dependent)\Delta V\bigg|_{\text{reset}} \le -\beta \quad (\beta > 0, \text{ event-dependent})

provided:

  • Yang--Mills gradient flow is applied continuously (Theorem H, Chapter 7).
  • Discrete events are sufficiently sparse (no Zeno behavior).

Consequence: The system converges to an attractor (equilibrium or limit cycle in the state space).


D.7 Examples from RelationWorld

Example 1: Stable Equilibrium

Scenario: A 5-node complete graph with two fruits F1,F2F_1, F_2 well-separated (high inter-fruit conductance threshold).

  1. Continuous phase: Yang--Mills flow flattens the connection within each fruit.
  2. Equilibrium: Both fruits stabilize with Ω()e\Omega(\triangle) \approx e (flat). The system converges to an energy minimum.
  3. No guards triggered: Topology remains fixed; fruits remain fixed.
  4. Limit behavior: The system sits at a fixed point xP(n,E)x^* \in P(n,E) with x˙=0\dot{x} = 0.

Example 2: SPLIT Event

Scenario: A single fruit FF with weights slowly decreasing due to exogenous DEFORM.

  1. Continuous phase: ϕt(F)\phi_t(F) increases gradually as weights decrease.
  2. Guard trigger: At time t=100t^* = 100, ϕt(F)\phi_t(F) crosses θ\theta from below.
  3. Discrete transition: Fruit detection recomputes Ft\mathfrak{F}_{t^*}. Now, FFtF \notin \mathfrak{F}_{t^*}, and two new fruits F1,F2F_1, F_2 appear.
  4. Reset: The discrete topology (n,E)(n, E) is unchanged; the recomputation of F\mathfrak{F} is the reset.
  5. Continued evolution: Yang--Mills flow continues in the same topology, now with two fruits instead of one.

Example 3: BIRTH Event (Node Addition)

Scenario: At time t=50t^* = 50, an external event triggers node v=6v = 6 to appear in a 5-node graph.

  1. Pre-BIRTH: Mode q=(5,E)q = (5, E), continuous state xR0E×GEx \in \mathbb{R}_{\ge 0}^{|E|} \times G^{|E|}.
  2. Guard trigger: Command BIRTH(6).
  3. Reset:
    • New mode: q=(6,EE6)q' = (6, E \cup E_6) where E6={(6,j),(j,6):jJ}E_6 = \{(6,j), (j,6) : j \in J\} (pre-specified neighborhoods).
    • New continuous state: xR0EE6×GEE6x' \in \mathbb{R}_{\ge 0}^{|E \cup E_6|} \times G^{|E \cup E_6|}.
    • Old edges retain their parameters; new edges from node 6 are initialized (small weights, identity transits).
  4. Continued evolution: Yang--Mills flow in the new 6-node topology.

D.8 Formal Relationships to Chapter 0

Chapter 0 (Formal State Space) defines:

  • State space S=(n,E)C(n,E)\mathcal{S} = \bigsqcup_{(n,E)} C(n,E) (configuration spaces per topology).
  • Gauge quotient: C(n,E)=P(n,E)/GnC(n,E) = P(n,E) / G^n.
  • Event maps: transitions between strata.

This appendix provides the dynamical systems framework:

  • The hybrid automaton formalization of the evolution.
  • Guard conditions specifying when transitions occur.
  • Reset maps governing how continuous state changes during transitions.
  • Convergence analysis via Lyapunov functions.

Connection:

  • The configuration space C(n,E)C(n,E) (Definition 0.4) is the semantic state space (gauge-equivalence classes).
  • The raw parameter space P(n,E)P(n,E) (Definition 0.2) is the computational representation.
  • The hybrid system evolves in P(n,E)P(n,E) but should be understood modulo gauge equivalence (i.e., in C(n,E)C(n,E)).

D.9 Literature and Further Reading

Hybrid dynamical systems are a well-developed area. Key references:

  1. Liberzon (2003)Switching in Systems and Control. Covers switched linear systems and stability conditions.
  2. Goebel et al. (2012)Hybrid Dynamical Systems: Modeling, Stability, and Robustness. General theory with applications.
  3. van der Schaft & Schumacher (2000)An Introduction to Hybrid Dynamical Systems. Detailed mathematical treatment.

Gauge theory on graphs:

  • Baez & Lauda (2010) — discrete analogues of continuous gauge theory.
  • Landi & Lanteri — applications to combinatorial geometry.

Yang--Mills flow:

  • Rade (1994), Donaldson (2002) — continuous setting; the discrete analogue in Chapter 13 extends these ideas.

D.10 Open Problem: Hybrid Attractors for RelationWorld

Problem D.1: Characterize the attractors of the hybrid system (Q,X,f,G,R)(Q, X, f, G, R) governing world evolution. Specifically:

  1. For what initial configurations do stable multi-fruit equilibria exist?
  2. Can the system exhibit limit cycles or strange attractors (chaotic behavior)?
  3. What is the basin of attraction for a given attractor?

Understanding these questions would provide a complete picture of "typical" world behavior over long timescales.