cargo
Rust package manager (36 subcommands).
last-passage-percolation
Last Passage Percolation models: geometric LPP, exponential weights, Tracy-Widom limits, matrix product ansatz, and connections to TASEP and random matrices.
Full skill instructions
Status: ✅ Production Ready Trit: 0 (ERGODIC - coordinator) Color: #20B2AA (Light Sea Green) Principle: Maximum weight paths as discrete KPZ Frame: Tracy-Widom fluctuations, geodesics, RSK correspondence
Last Passage Percolation (LPP) is the discrete progenitor of KPZ universality:
Grid: ℤ₊² with i.i.d. weights w(i,j)
Path: π from (1,1) to (m,n), up-right steps only
Weight: W(π) = Σ w(i,j) along π
Passage time: G(m,n) = max_π W(π)
struct LPP
weights::Matrix{Float64}
distribution::Distribution # Exponential, Geometric, etc.
end
function passage_time(lpp::LPP, start, finish)
m, n = finish
# Dynamic programming
G = zeros(m, n)
G[1, 1] = lpp.weights[1, 1]
for i in 2:m
G[i, 1] = G[i-1, 1] + lpp.weights[i, 1]
end
for j in 2:n
G[1, j] = G[1, j-1] + lpp.weights[1, j]
end
for i in 2:m, j in 2:n
G[i, j] = max(G[i-1, j], G[i, j-1]) + lpp.weights[i, j]
end
return G[m, n]
end
# Limiting distribution for diagonal direction
function tracy_widom_limit(lpp, n)
# For exponential weights:
# G(n,n) ≈ 4n + 2^(4/3) n^(1/3) χ_GUE
G = passage_time(lpp, (1,1), (n,n))
mean = 4 * n
std = 2^(4/3) * n^(1/3)
χ = (G - mean) / std
return χ # Converges to Tracy-Widom GUE
end
| Distribution | Mean | Parameters | Limit |
|---|---|---|---|
| Exponential(1) | 1 | rate = 1 | GUE |
| Geometric(p) | (1-p)/p | p ∈ (0,1) | GUE |
| Bernoulli(p) | p | p ∈ (0,1) | GOE (boundary) |
| Inverse-Gamma | α/(β-1) | α, β | Whittaker |
# Different weight types
lpp_exp = LPP(rand(Exponential(1), n, n), Exponential(1))
lpp_geo = LPP(rand(Geometric(0.5), n, n), Geometric(0.5))
function geodesic(lpp::LPP, start, finish)
# Backtrack from finish to start
path = [finish]
i, j = finish
while (i, j) != start
if i == 1
j -= 1
elseif j == 1
i -= 1
else
# Choose direction that maintains optimality
if G[i-1, j] > G[i, j-1]
i -= 1
else
j -= 1
end
end
pushfirst!(path, (i, j))
end
return path
end
When two geodesics compete:
function competition_interface(lpp, source1, source2)
# Interface where optimal paths from two sources meet
interface = []
for point in lattice_points
geo1 = passage_time(lpp, source1, point)
geo2 = passage_time(lpp, source2, point)
if abs(geo1 - geo2) < ε
push!(interface, point)
end
end
return interface # Converges to Airy₂ process
end
For stationary LPP (boundary conditions matching bulk):
struct MatrixProductLPP
D::Matrix # Creation operator
E::Matrix # Annihilation operator
W::Vector # Left boundary
V::Vector # Right boundary
end
function stationary_weight(mpa::MatrixProductLPP, config)
# Weight = ⟨W| ∏ᵢ Mᵢ |V⟩
# where Mᵢ = D if occupied, E if empty
result = mpa.W'
for c in config
result = result * (c == 1 ? mpa.D : mpa.E)
end
result = result * mpa.V
return result[1]
end
# DEHP algebra relations
# DE - qED = D + E
# ⟨W|E = ⟨W|
# D|V⟩ = |V⟩
Robinson-Schensted-Knuth connects LPP to Young tableaux:
# RSK: Matrix → (P, Q) pair of tableaux
function rsk(weight_matrix)
P, Q = empty_tableau(), empty_tableau()
for (i, j, w) in entries(weight_matrix)
for _ in 1:w
row_insert!(P, j)
record_insert!(Q, i)
end
end
return P, Q
end
# Passage time = shape of P-tableau
@test passage_time(lpp, (1,1), (n,n)) ==
shape(rsk(lpp.weights)[1])[1]
LPP is equivalent to Totally Asymmetric Simple Exclusion Process:
# TASEP: particles hop right, cannot pass
struct TASEP
positions::Vector{Int} # Particle positions
L::Int # System size
end
# LPP passage time = TASEP current
@test passage_time(lpp) == integrated_current(tasep)
# Geodesic = second class particle trajectory
Like KPZ stationary measures, LPP has two-layer structure:
# Layer 1: Uncolored non-crossing paths
uncolored = sample_non_crossing_paths(n)
# Layer 2: Color assignment via Pitman
colored = pitman_transform(uncolored)
# Joint measure
μ(colored) = μ_uncolored(paths) × P(coloring | paths)
function pitman_transform(paths)
# Sort paths by endpoint
# Apply successive Pitman operators
result = paths
for i in 1:length(paths)-1
result[i], result[i+1] = pitman_2(result[i], result[i+1])
end
return result
end
function pitman_2(path1, path2)
# Pitman's 2M-X theorem for Brownian motion
# Discrete version for random walks
return (path1 ∨ path2, path1 ∧ path2) # max/min operations
end
LPP is the discrete model; KPZ is the scaling limit:
using KPZUniversality, LPP
# LPP → Directed Landscape
function lpp_to_landscape(lpp, ε)
# Rescale by 1:2:3 exponents
L(x, s, y, t) = ε^(1/2) * passage_time(lpp,
round(Int, ε^(-1) * x), round(Int, ε^(-3/2) * s),
round(Int, ε^(-1) * y), round(Int, ε^(-3/2) * t)
)
return L
end
# In limit ε → 0, converges to directed landscape
| Trit | Skill | Role |
|---|---|---|
| -1 | yang-baxter-integrability | Structure |
| 0 | last-passage-percolation | Discrete model |
| +1 | louisville-quantum-gravity | Measures |
Conservation: (-1) + (0) + (+1) = 0 ✓
# Simulate LPP
just lpp-simulate n=100 weights=exponential
# Compute passage time
just lpp-passage start=1,1 end=100,100
# Find geodesic
just lpp-geodesic
# Check Tracy-Widom
just lpp-verify-tw
# Matrix product ansatz
just lpp-mpa q=0.5
# last-passage-percolation.yaml
model:
grid_size: 100
weight_distribution: exponential # or geometric, bernoulli
analysis:
compute_geodesics: true
tracy_widom_test: true
competition_interface: false
matrix_product:
q: 0.5
boundary: stationary
Skill Name: last-passage-percolation Type: Discrete KPZ Model Trit: 0 (ERGODIC) Key Property: Tracy-Widom fluctuations, geodesic competition Status: ✅ Production Ready
Trit: 0 (ERGODIC)
Home: DiscreteProb
Poly Op: ⊗
Kan Role: Adj
Color: #20B2AA
G: ℤ₊² ↛ ℝ
G(start, end) = max path weight
Satisfies semi-group property:
G(a, c) = max_b [G(a, b) + G(b, c)]
(-1) + (0) + (+1) ≡ 0 (mod 3)
Paths compete. Weights accumulate. The maximum emerges.
Every use of this skill is an opportunity for worlding:
Add Interaction Exemplars here as the skill is used.
Rust package manager (36 subcommands).
Translate Figma nodes into production-ready code with 1:1 visual fidelity using the Figma MCP workflow (design context, screenshots, assets, and project-convention translation). Trigger when the user provides Figma URLs or node IDs, or asks to implement designs or components that must match Figma...
**Status**: 🌳 Production Ready (upstream in StringZilla v3+) **Type**: High-Performance String Operations / SIMD-Accelerated Text Processing **Principle**: Zero-copy views, SIMD/SWAR acceleration, deterministic hashing **Frame**: Cross-language interoperability (C, C++, Python, Rust, Go, Swift, ...
Conformal Geometric Algebra (CGA) for circles, spheres, and Möbius transformations
Verifies code implements exactly what documentation specifies for blockchain audits. Use when comparing code against whitepapers, finding gaps between specs and implementation, or performing compliance checks for protocol implementations.
Systems programming and performance optimization using Zig. Provides low-level abstractions, memory-safe compiled code, and performance benchmarking. Use for system-level operations, optimization, and interoperability with C/POSIX APIs.
PayPal MCP server integration for invoices, payments, subscriptions, disputes, and transaction reporting via @paypal/mcp.
Unison language - content-addressed functional programming with abilities for effects, distributed computing, and structural types. Use for pure functional code, effect management, distributed systems, and refactoring-safe codebases.
Google Tasks management via TasksACSet. Transforms task operations into GF(3)-typed Interactions, routes to triadic queues, detects saturation for task-zero-as-condensed-state.
World C Skill
Syrup binary serialization for OCapN/CapTP wire format. Canonical encoding for capability messages.
Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience