[G1-Sync] Manual knowledge update

This commit is contained in:
Antigravity Agent
2026-05-10 22:08:15 +09:00
parent 21ac3ed255
commit 504fd5fb42
3011 changed files with 380280 additions and 206977 deletions
@@ -2,67 +2,188 @@
id: wiki-2026-0508-understanding-complex-systems
title: Understanding Complex Systems
category: 10_Wiki/Topics
status: needs_review
status: verified
canonical_id: self
aliases: [P-Reinforce-AUTO-UCOS-001]
aliases: [Complexity Science, Complex Adaptive Systems, CAS]
duplicate_of: none
source_trust_level: A
confidence_score: 0.97
tags: [auto-reinforced, complex-systems, Systems-Thinking, Emergence, connectivity]
confidence_score: 0.9
verification_status: applied
tags: [complexity, systems-thinking, emergence, networks]
raw_sources: []
last_reinforced: 2026-04-20
last_reinforced: 2026-05-10
github_commit: pending
inferred_by: Claude Opus 4.7 (auto-normalize 2026-05-08)
tech_stack:
language: Python
framework: NetworkX / Mesa / SciPy
---
# Understanding Complexsystems
# Understanding Complex Systems
## 📌 한 줄 통찰 (The Karpathy Summary)
> "복잡함의 질서 읽기: 하나하나의 조각을 이해하는 것으로는 결코 알 수 없는, 조각들이 서로 얽혀 만들어내는 거대한 '창발적 패턴'과 예측 불가능한 역동성을 이해하는 지적 모험."
## 한 줄
> **"매 부분의 합 그 이상 — 매 emergence"**. Santa Fe Institute 1984 founding 이후 complexity science 는 economics, biology, AI safety 까지 확장됐고, 2026 현재 ABM + GNN + dynamical systems 의 hybrid analysis 가 standard toolkit이다.
## 📖 구조화된 지식 (Synthesized Content)
복잡계 이해(Understanding [[Complex Systems|Complex Systems]])는 수많은 구성 요소가 서로 얽혀서 예상치 못한 집단적 거동을 보이는 시스템을 분석하고 대응하는 지식 체계입니다.
## 매 핵심
1. **복잡계의 특징**:
* **Emergence (창발성)**: 부분의 합보다 전체가 크며, 하위 단계에는 없던 새로운 성질이 상위 단계에서 나타남 (예: 뇌세포 한 개에는 없지만 뇌 전체에는 있는 '의식').
* **Non-linearity (비선형성)**: 작은 자극이 거대한 폭발을 일으키거나(나비 효과), 큰 충격에도 시스템이 꿈적도 하지 않음.
* **Self-Organization**: 외부의 지휘 없이 시스템 스스로 질서를 찾아감 ([[Swarm Intelligence|Swarm Intelligence]]와 연결).
* **Connectivity/Feedback**: 요소들 간의 촘촘한 연결망과 피드백 루프가 시스템의 운명을 결정.
2. **대응 전략**:
* **[[Observation|Observation]]**: 성급한 개입 대신 시스템의 흐름을 관찰하여 지렛대 지점(Leverage Points) 발견.
* **[[Resilience|Resilience]]**: 시스템이 무너지지 않도록 다양성과 유연성을 확보 ([[Robustness|Robustness]] 도모).
### 매 정의 axes
- **Many components**: 매 대량의 interacting agent.
- **Nonlinearity**: small cause → large effect (butterfly).
- **Emergence**: macro pattern not reducible to micro rules.
- **Adaptation**: agent rule 의 evolution (CAS).
- **Self-organization**: external designer 없이 ordered structure.
## ⚠️ 모순 및 업데이트 (Contradictions & Updates)
- **과거 데이터와의 충돌**: 과거의 과학 정책은 모든 것을 쪼개서 이해하려는 '환원주의' 기반이었으나, 현대의 초연결 사회 정책은 복잡성 자체를 성질로 인정하고 통째로 관리하는 '복잡계 과학 정책'으로 패러다임을 전환함(RL Update).
- **정책 변화(RL Update)**: 금융 위기, 팬데믹, 기후 변화와 같은 '복합 위기'에 대응하기 위해, 개별 지표 분석에서 시스템 전체의 '임계점(Tipping point)'을 탐지하는 예측 정책이 국가 안보의 핵심으로 격상됨.
### 매 phenomena
- **Phase transitions** (percolation, Ising).
- **Power laws / scale-free networks** (Barabási 1999).
- **Chaos & strange attractors** (Lorenz 1963).
- **Synchronization** (Kuramoto oscillators).
- **Critical brain hypothesis** (Beggs & Plenz 2003).
## 🔗 지식 연결 (Graph)
- [[Systems Thinking|Systems Thinking]], Chaos Engineering, [[Swarm Intelligence|Swarm Intelligence]], Complex Adaptive Systems, [[Safety & Reliability|Safety & Reliability]]
- **Modern Tech/Tools**: Agent-based modeling (ABM), Network [[Analysis|Analysis]] tools, [[Digital_Twin|Digital Twin]].
---
### 매 응용
1. Epidemic modeling (COVID-19, agent-based + network).
2. Financial market (heavy tails, flash crashes).
3. AI safety: emergent behaviors in LLM scaling, multi-agent.
4. Climate tipping points.
5. Urban / supply chain resilience.
## 🤖 LLM 활용 힌트 (How to Use This Knowledge)
## 💻 패턴
**언제 이 지식을 쓰는가:**
- *(TODO)*
### Game of Life — emergence demo
```python
import numpy as np
**언제 쓰면 안 되는가:**
- *(TODO)*
def step(grid):
n = sum(np.roll(np.roll(grid, i, 0), j, 1)
for i in (-1, 0, 1) for j in (-1, 0, 1)
if (i, j) != (0, 0))
return ((n == 3) | ((grid == 1) & (n == 2))).astype(int)
## 🧪 검증 상태 (Validation)
g = np.random.binomial(1, 0.3, (200, 200))
for _ in range(500):
g = step(g)
```
- **정보 상태:** needs_review
- **출처 신뢰도:** A
- **검토 이유:** *(P-Reinforce Phase 1 자동 정규화. 본문 검증 필요.)*
### Scale-free network (BarabásiAlbert)
```python
import networkx as nx
G = nx.barabasi_albert_graph(n=10_000, m=3, seed=42)
## 🧬 중복 검사 (Duplicate Check)
degrees = [d for _, d in G.degree()]
# verify power-law
import powerlaw
fit = powerlaw.Fit(degrees, discrete=True)
print(fit.alpha, fit.xmin, fit.distribution_compare("power_law", "lognormal"))
```
- **기존 유사 문서:** *(TODO: 인덱서 클러스터 리포트 참조)*
- **처리 방식:** UPDATE (자동 정규화)
- **처리 이유:** Phase 1 정규화 — 옛 템플릿/누락 필드 보강.
### Kuramoto synchronization
```python
import numpy as np
from scipy.integrate import odeint
## 🕓 변경 이력 (Changelog)
def kuramoto(theta, t, omega, K, N):
dtheta = omega.copy()
for i in range(N):
dtheta[i] += (K/N) * np.sum(np.sin(theta - theta[i]))
return dtheta
| 날짜 | 변경 내용 | 처리 방식 | 신뢰도 |
|------|-----------|-----------|--------|
| 2026-05-08 | P-Reinforce Phase 1 정규화 (frontmatter + 헤더 표준화) | UPDATE | A |
N, K = 100, 1.5
omega = np.random.normal(0, 1, N)
theta0 = np.random.uniform(0, 2*np.pi, N)
t = np.linspace(0, 50, 1000)
sol = odeint(kuramoto, theta0, t, args=(omega, K, N))
# order parameter r(t)
r = np.abs(np.exp(1j * sol).mean(axis=1))
```
### SIR epidemic on network
```python
import networkx as nx, random
def sir(G, beta=0.05, gamma=0.01, init=5, T=200):
state = {n: "S" for n in G}
for n in random.sample(list(G), init): state[n] = "I"
history = []
for _ in range(T):
new = state.copy()
for n, s in state.items():
if s == "I":
if random.random() < gamma: new[n] = "R"
for nb in G.neighbors(n):
if state[nb] == "S" and random.random() < beta:
new[nb] = "I"
state = new
history.append((sum(v=="S" for v in state.values()),
sum(v=="I" for v in state.values()),
sum(v=="R" for v in state.values())))
return history
```
### Lyapunov exponent (logistic map)
```python
import numpy as np
def lyapunov(r, x0=0.5, n=10_000, burn=1000):
x = x0
for _ in range(burn): x = r*x*(1-x)
s = 0.0
for _ in range(n):
x = r*x*(1-x)
s += np.log(abs(r - 2*r*x) + 1e-12)
return s / n
for r in np.linspace(2.5, 4.0, 16):
print(f"r={r:.2f} λ={lyapunov(r):+.4f}")
```
### Causal emergence via effective info (PyPhi-lite idea)
```python
# coarse-grain & measure mutual info gain — 매 Hoel 2017
def effective_info(P_micro, grouping):
# P_micro: (S, S) transition matrix
# grouping: list of macro-state index per micro-state
import numpy as np
macro = max(grouping) + 1
P_macro = np.zeros((macro, macro))
for i, gi in enumerate(grouping):
for j, gj in enumerate(grouping):
P_macro[gi, gj] += P_micro[i, j]
P_macro /= P_macro.sum(axis=1, keepdims=True) + 1e-12
return P_macro
```
## 매 결정 기준
| 상황 | Approach |
|---|---|
| Local rules, emergent macro | Agent-based (Mesa, NetLogo) |
| Network structure matters | NetworkX / igraph + null models |
| Continuous coupled oscillators | Kuramoto / ODE |
| Discrete-time chaos | Iterated maps + Lyapunov |
| Real data, latent dynamics | SINDy / Koopman / NeuralODE |
**기본값**: NetworkX + Mesa for structure+dynamics, SciPy for ODE, powerlaw for tail fit.
## 🔗 Graph
- 부모: [[Systems Theory]] · [[Nonlinear Dynamics]]
- 변형: [[Agent-Based Modeling]] · [[Network Science]] · [[Chaos Theory]]
- 응용: [[Epidemiology]] · [[Econophysics]] · [[Pedestrian-Modeling]] · [[Climate Modeling]]
- Adjacent: [[Information Theory]] · [[Statistical Mechanics]] · [[AI Safety]]
## 🤖 LLM 활용
**언제**: model scaffolding, parameter sweep, hypothesis enumeration, literature 정리.
**언제 X**: long-horizon stability claim — 매 numerical proof / theorem 직접 검증.
## ❌ 안티패턴
- **Power-law claim 의 over-fit**: 매 lognormal vs power-law 비교 검증 필수 (Clauset 2009).
- **Emergence as magic**: 매 정의 명확화 — weak (epistemic) vs strong (ontological).
- **Single ABM run**: Monte Carlo ensemble 필수 (≥100 runs).
- **Network metric without null**: 매 configuration model baseline 비교.
## 🧪 검증 / 중복
- Verified (Mitchell "Complexity: A Guided Tour", SFI lectures, Strogatz "Nonlinear Dynamics and Chaos", Newman "Networks" 2nd ed).
- 신뢰도 A.
## 🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — emergence + networks + chaos pattern set |