@@ -1530,24 +1530,101 @@ class Resonance(Operator):
15301530 ---------
15311531 **Biomedical**:
15321532
1533- - **Coherence Propagation**: HRV coherence spreading through nervous system
1534- - **Neural Cascade**: Synchronized firing spreading across brain networks
1535- - **Immune Response**: Coordinated cellular activation across tissue
1536- - **Healing Waves**: Therapeutic effects propagating through body systems
1533+ - **Cardiac Coherence Propagation**
1534+
1535+ - **Mechanism**: HRV coherence from heart rhythm spreads through vagal nerve network
1536+ - **RA Role**: Propagates coherent cardiac pattern to brain, organs, peripheral systems
1537+ - **Observable**: Reduced heart rate variability entropy, increased baroreflex sensitivity
1538+ - **Sequence**: AL (heart initiates) → IL (stabilizes rhythm) → RA (spreads to body)
1539+ - **Metrics**: ΔHRV coherence across organ systems, autonomic tone synchronization
1540+
1541+ - **Neural Synchronization Cascades**
1542+
1543+ - **Mechanism**: Synchronized neuronal firing in one region propagates to connected areas
1544+ - **RA Role**: Transmits oscillatory patterns (e.g., gamma, theta) across brain networks
1545+ - **Observable**: EEG phase synchronization indices, functional connectivity increases
1546+ - **Sequence**: THOL (local synchrony emerges) → UM (regions couple) → RA (network sync)
1547+ - **Clinical**: Meditation-induced alpha coherence, seizure propagation dynamics
1548+
1549+ - **Immune Cascade Activation**
1550+
1551+ - **Mechanism**: Cytokine signaling propagates immune response across tissue
1552+ - **RA Role**: Coordinates cellular activation without losing response specificity
1553+ - **Observable**: Immune cell recruitment patterns, synchronized cytokine expression
1554+ - **Pathological**: Cytokine storms as uncontrolled RA (missing IL stabilization)
1555+
1556+ - **Morphogenetic Field Propagation**
1557+
1558+ - **Mechanism**: Developmental signals organize tissue pattern formation
1559+ - **RA Role**: Spreads positional information maintaining structural identity
1560+ - **Observable**: Hox gene expression gradients, limb bud patterning
1561+ - **TNFR Model**: RA preserves EPI identity (cell type) while propagating position
15371562
15381563 **Cognitive**:
15391564
1540- - **Insight Spread**: Understanding cascading through conceptual network
1541- - **Aha Moment**: Sudden coherence propagating across mental model
1542- - **Cultural Memes**: Ideas resonating and spreading through population
1543- - **Knowledge Transfer**: Expertise propagating through learning networks
1565+ - **Insight Propagation ("Aha!" Moments)**
1566+
1567+ - **Mechanism**: Single conceptual breakthrough reorganizes entire knowledge network
1568+ - **RA Role**: Key understanding cascades through related concepts, illuminating connections
1569+ - **Observable**: Sudden problem-solving, gestalt shifts, conceptual restructuring
1570+ - **Sequence**: OZ (conceptual tension) → THOL (insight emerges) → RA (understanding spreads)
1571+ - **Example**: Understanding recursion suddenly clarifies programming, fractals, self-reference
1572+
1573+ - **Meme Propagation**
1574+
1575+ - **Mechanism**: Ideas spread through population maintaining core structure
1576+ - **RA Role**: Transmits conceptual pattern ("viral" spread) with identity preservation
1577+ - **Observable**: Social media virality curves, idea adoption S-curves
1578+ - **Pathological**: Misinformation spread (RA without IL verification)
1579+ - **Counter**: IL (fact-checking) dampens incoherent RA
1580+
1581+ - **Knowledge Transfer in Learning**
1582+
1583+ - **Mechanism**: Expertise propagates from teacher to student network
1584+ - **RA Role**: Transmits structured understanding, not just information
1585+ - **Observable**: Student mental models converging toward expert patterns
1586+ - **Sequence**: EN (student receives) → IL (integrates) → RA (applies to new contexts)
1587+ - **Metrics**: Transfer learning success, analogical reasoning improvements
1588+
1589+ - **Attention Cascades**
1590+
1591+ - **Mechanism**: Focus on one element draws attention to connected elements
1592+ - **RA Role**: Spreads attentional coherence across semantic network
1593+ - **Observable**: Priming effects, associative memory activation
1594+ - **Example**: Seeing "doctor" activates "nurse", "hospital", "stethoscope"
15441595
15451596 **Social**:
15461597
1547- - **Collective Enthusiasm**: Energy spreading through group
1548- - **Social Movements**: Coherent values propagating through networks
1549- - **Innovation Diffusion**: Ideas spreading through organizations
1550- - **Market Resonance**: Trends amplifying through economic networks
1598+ - **Collective Emotional Contagion**
1599+
1600+ - **Mechanism**: Emotion spreads through group (laughter, panic, enthusiasm)
1601+ - **RA Role**: Propagates affective state while maintaining emotional coherence
1602+ - **Observable**: Synchronized facial expressions, heart rate convergence, mirroring
1603+ - **Sequence**: AL (individual expresses) → UM (others attune) → RA (group synchrony)
1604+ - **Examples**: Concert crowds, protest movements, team celebrations
1605+
1606+ - **Social Movement Diffusion**
1607+
1608+ - **Mechanism**: Values/practices spread through social networks
1609+ - **RA Role**: Propagates coherent ideology maintaining identity
1610+ - **Observable**: Network diffusion curves, hashtag propagation, adoption cascades
1611+ - **Critical Mass**: RA accelerates post-UM (coupling) threshold
1612+ - **Examples**: Arab Spring, #MeToo, climate activism
1613+
1614+ - **Innovation Diffusion in Organizations**
1615+
1616+ - **Mechanism**: New practices spread through company departments
1617+ - **RA Role**: Transfers best practices while adapting to local context
1618+ - **Observable**: Practice adoption rates, cross-functional knowledge sharing
1619+ - **Sequence**: THOL (innovation emerges) → UM (early adopters couple) → RA (spreads)
1620+ - **Barriers**: OZ (departmental resistance) can block RA
1621+
1622+ - **Cultural Pattern Transmission**
1623+
1624+ - **Mechanism**: Rituals, norms, symbols propagate across generations
1625+ - **RA Role**: Maintains cultural identity while allowing adaptation
1626+ - **Observable**: Cultural continuity metrics, tradition persistence
1627+ - **Balance**: RA (preservation) vs ZHIR (cultural evolution)
15511628
15521629 Typical Sequences
15531630 ---------------------------
@@ -1573,21 +1650,170 @@ class Resonance(Operator):
15731650 - **Phase alignment**: Strengthens across propagation path
15741651
15751652 Metrics
1576- -----------------
1577- - Propagation distance: Number of nodes reached
1578- - Amplification factor: Coherence gain through network
1579- - Network C(t): Global coherence increase
1580- - Propagation speed: Rate of coherence spread
1653+ -------
1654+ **Propagation Metrics**:
1655+
1656+ - **Propagation Distance**: Number of nodes reached from source
1657+
1658+ - Measurement: Graph traversal depth from origin
1659+ - Healthy: Distance scales with network density
1660+ - Pathological: Isolated propagation (missing UM coupling)
1661+
1662+ - **Amplification Factor**: Coherence gain through network
1663+
1664+ - Formula: ``C(t_after) / C(t_before)`` at network level
1665+ - Healthy: Factor > 1.0 (resonance amplifies)
1666+ - Degraded: Factor ≈ 1.0 (diffusion without resonance)
1667+
1668+ - **Propagation Speed**: Rate of coherence spread
1669+
1670+ - Measurement: Nodes activated per time step
1671+ - Fast: High νf alignment, strong UM coupling
1672+ - Slow: Phase misalignment, weak network connectivity
1673+
1674+ **Identity Preservation Metrics**:
1675+
1676+ - **EPI Structure Similarity**: How well propagated EPI matches source
1677+
1678+ - Measurement: Cosine similarity of EPI vectors (if structured)
1679+ - Healthy: Similarity > 0.8 (identity preserved)
1680+ - Distorted: Similarity < 0.5 (pattern corruption)
1681+
1682+ - **epi_kind Consistency**: Semantic label propagation
1683+
1684+ - Measurement: Fraction of influenced nodes adopting source ``epi_kind``
1685+ - Healthy: > 70% adoption in coupled neighborhood
1686+ - Fragmented: < 30% (RA failed, revert to AL)
1687+
1688+ **Network-Level Metrics**:
1689+
1690+ - **Global Coherence Increase (ΔC(t))**:
1691+
1692+ - Formula: ``C_global(t+1) - C_global(t)`` after RA application
1693+ - Healthy: ΔC(t) > 0 (network more coherent)
1694+ - Harmful: ΔC(t) < 0 (RA applied incorrectly, spreading chaos)
1695+
1696+ - **Phase Synchronization Index**:
1697+
1698+ - Measurement: Kuramoto order parameter before/after RA
1699+ - Healthy: Index increases toward 1.0
1700+ - Misaligned: Index decreases (needs UM first)
1701+
1702+ **Frequency Metrics**:
1703+
1704+ - **Collective νf Shift**: Average νf change across influenced nodes
1705+
1706+ - Measurement: ``mean(νf_influenced) - mean(νf_before)``
1707+ - Healthy: Positive shift (amplification)
1708+ - Note: Current implementation may not fully track this (see related issues)
15811709
15821710 Compatibility
1583- ---------------------
1584- **Compatible with**: UM (Coupling), IL (Coherence), EN (Reception),
1585- AL (Emission), THOL (Self-organization)
1586-
1587- **Requires**: Network connectivity and phase alignment (UM)
1588-
1589- **Natural progressions**: RA often followed by IL (stabilize propagated
1590- coherence) or EN (nodes receive propagation)
1711+ -------------
1712+ **Synergistic Sequences** (amplify each other's effects):
1713+
1714+ - **UM → RA**: Canonical resonance pattern
1715+
1716+ - UM establishes phase coupling
1717+ - RA propagates through coupled network
1718+ - Result: Coherent network-wide reorganization
1719+ - Analogy: Tuning instruments (UM) then playing symphony (RA)
1720+
1721+ - **IL → RA**: Stable propagation
1722+
1723+ - IL stabilizes source pattern
1724+ - RA propagates verified coherence
1725+ - Result: Reliable, non-distorted transmission
1726+ - Use: Knowledge transfer, cultural preservation
1727+
1728+ - **AL → RA**: Broadcast pattern
1729+
1730+ - AL initiates new coherence
1731+ - RA immediately spreads to receptive nodes
1732+ - Result: Rapid network activation
1733+ - Use: Idea dissemination, emotional contagion
1734+ - Risk: Unstable if AL not stabilized (add IL between)
1735+
1736+ **Required Prerequisites** (apply before RA):
1737+
1738+ - **UM before RA** (when network uncoupled):
1739+
1740+ - Without UM: RA has no propagation pathways
1741+ - Symptom: RA applied to isolated node
1742+ - Fix: ``run_sequence(G, node, [Coupling(), Resonance()])``
1743+
1744+ - **IL before RA** (when source unstable):
1745+
1746+ - Without IL: RA propagates noise/chaos
1747+ - Symptom: High ΔNFR, low EPI at source
1748+ - Fix: ``run_sequence(G, node, [Coherence(), Resonance()])``
1749+
1750+ **Natural Progressions** (what to apply after RA):
1751+
1752+ - **RA → IL**: Lock in propagated coherence
1753+
1754+ - RA spreads pattern
1755+ - IL stabilizes across network
1756+ - Result: Persistent network-wide coherence
1757+ - Example: Post-meditation integration, learning consolidation
1758+
1759+ - **RA → EN**: Distributed reception
1760+
1761+ - RA broadcasts from source
1762+ - EN nodes receive and integrate
1763+ - Result: Coordinated network update
1764+ - Example: Software update propagation, news dissemination
1765+
1766+ - **RA → SHA**: Resonance completion
1767+
1768+ - RA propagates pattern
1769+ - SHA pauses further spreading
1770+ - Result: Bounded coherence domain
1771+ - Example: Localized neural assembly, cultural enclave
1772+
1773+ **Incompatible Patterns** (avoid or use carefully):
1774+
1775+ - **SHA → RA**: Contradiction
1776+
1777+ - SHA silences node (νf → 0)
1778+ - RA requires active propagation
1779+ - Result: Ineffective RA (nothing to propagate)
1780+ - Exception: SHA → NAV → RA (reactivation sequence)
1781+
1782+ - **OZ → RA** (unconstrained dissonance):
1783+
1784+ - OZ introduces chaos
1785+ - RA propagates chaos (pathological)
1786+ - Result: Network destabilization
1787+ - Safe: OZ → IL → RA (constrain dissonance first)
1788+ - Intentional: OZ → RA for creative disruption (rare)
1789+
1790+ - **Multiple RA without IL**:
1791+
1792+ - Repeated RA can blur pattern identity
1793+ - Result: "Telephone game" distortion
1794+ - Fix: Interleave IL to preserve structure
1795+ - Pattern: RA → IL → RA → IL (controlled cascade)
1796+
1797+ **Edge Cases**:
1798+
1799+ - **RA on fully connected graph**:
1800+
1801+ - All nodes receive simultaneously
1802+ - Result: Instantaneous network coherence (no cascade)
1803+ - Efficiency: RA becomes equivalent to broadcast AL
1804+
1805+ - **RA on tree topology**:
1806+
1807+ - Clean propagation paths, no loops
1808+ - Result: Predictable cascade from root
1809+ - Application: Hierarchical organizations, decision trees
1810+
1811+ - **RA on scale-free network**:
1812+
1813+ - Hub nodes amplify propagation
1814+ - Result: Exponential spread through hubs
1815+ - Application: Social networks, viral marketing
1816+ - Risk: Hub failure blocks cascade (fragile)
15911817
15921818 Examples
15931819 --------
@@ -1643,6 +1869,77 @@ class Resonance(Operator):
16431869 >>> # More nodes adopt and propagate the pattern
16441870 >>> # Creates collective coherence and momentum
16451871
1872+ **Example (Meditation Group Coherence):**
1873+
1874+ >>> # Meditation teacher establishes coherent state, propagates to students
1875+ >>> import networkx as nx
1876+ >>> import random
1877+ >>> from tnfr.structural import create_nfr, run_sequence
1878+ >>> from tnfr.operators.definitions import Coupling, Resonance
1879+ >>> from tnfr.metrics.coherence import compute_global_coherence
1880+ >>> from tnfr.constants import EPI_PRIMARY
1881+ >>>
1882+ >>> G_meditation = nx.Graph()
1883+ >>> # Teacher with high coherence
1884+ >>> G_meditation.add_node("teacher")
1885+ >>> G_meditation.nodes["teacher"][EPI_PRIMARY] = 0.85
1886+ >>> G_meditation.nodes["teacher"]["vf"] = 1.2
1887+ >>> G_meditation.nodes["teacher"]["theta"] = 0.0
1888+ >>>
1889+ >>> # Students with lower coherence, varied phases
1890+ >>> for i in range(10):
1891+ ... student_id = f"student_{i}"
1892+ ... G_meditation.add_node(student_id)
1893+ ... G_meditation.nodes[student_id][EPI_PRIMARY] = 0.3
1894+ ... G_meditation.nodes[student_id]["vf"] = 0.9
1895+ ... G_meditation.nodes[student_id]["theta"] = random.uniform(-0.5, 0.5)
1896+ ... # Teacher couples with students through presence (UM)
1897+ ... G_meditation.add_edge("teacher", student_id)
1898+ >>>
1899+ >>> # Teacher's coherence resonates to group (RA)
1900+ >>> c_before = compute_global_coherence(G_meditation)
1901+ >>> run_sequence(G_meditation, "teacher", [Coupling(), Resonance()])
1902+ >>> c_after = compute_global_coherence(G_meditation)
1903+ >>>
1904+ >>> # Result: Students' EPI increases, phases align, network coherence rises
1905+ >>> # Group enters synchronized meditative state through RA propagation
1906+
1907+ **Example (Viral Meme Cascade):**
1908+
1909+ >>> # Idea originates, couples with early adopters, resonates through network
1910+ >>> import networkx as nx
1911+ >>> from tnfr.structural import run_sequence
1912+ >>> from tnfr.operators.definitions import Coupling, Resonance
1913+ >>> from tnfr.constants import EPI_PRIMARY
1914+ >>>
1915+ >>> G_social = nx.barabasi_albert_graph(100, 3) # Scale-free social network
1916+ >>> origin = 0 # Hub node with high connectivity
1917+ >>>
1918+ >>> # Set initial state: one coherent idea, rest neutral
1919+ >>> for node in G_social.nodes():
1920+ ... G_social.nodes[node][EPI_PRIMARY] = 0.9 if node == origin else 0.1
1921+ ... G_social.nodes[node]["vf"] = 1.0
1922+ ... G_social.nodes[node]["epi_kind"] = "viral_meme" if node == origin else "neutral"
1923+ ... G_social.nodes[node]["theta"] = 0.0
1924+ >>>
1925+ >>> # Phase 1: Early adopters couple with origin (UM)
1926+ >>> run_sequence(G_social, origin, [Coupling()])
1927+ >>>
1928+ >>> # Phase 2: Idea resonates through coupled network (RA)
1929+ >>> adoption_wave = [origin]
1930+ >>> for wave_step in range(5): # 5 propagation hops
1931+ ... for node in list(adoption_wave):
1932+ ... run_sequence(G_social, node, [Resonance()])
1933+ ... # Add newly influenced nodes to wave
1934+ ... for neighbor in G_social.neighbors(node):
1935+ ... if G_social.nodes[neighbor][EPI_PRIMARY] > 0.5 and neighbor not in adoption_wave:
1936+ ... adoption_wave.append(neighbor)
1937+ >>>
1938+ >>> # Result: Meme spreads through network maintaining identity
1939+ >>> adopters = [n for n in G_social.nodes() if G_social.nodes[n].get("epi_kind") == "viral_meme"]
1940+ >>> adoption_rate = len(adopters) / 100
1941+ >>> # Demonstrates RA creating resonant cascade through scale-free topology
1942+
16461943 See Also
16471944 --------
16481945 Coupling : Creates conditions for RA propagation
0 commit comments