Agent skill

ramanujan-expander

Ramanujan graphs and Alon-Boppana spectral optimality for edge growth rules. Optimal expanders with λ₂ ≤ 2√(d-1) bound.

majiayu000534★ · 1 repos on radarProfile →
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill ramanujan-expander-plurigrid-asi-2 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 8 KB
Bundled scripts: none
Path: skills/ai-ml/ramanujan-expander-plurigrid-asi-2/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Ramanujan Expander Skill > *"The Alon-Boppana bound is unbreakable. You cannot create a d-regular graph with λ₂ < 2√(d-1), even theoretically."* ## Overview Ramanujan graphs are **optimal spectral expanders** - they achieve the theoretical limit on eigenvalue separation. This skill provides: 1. **Alon-Boppana bound verification** - Prove your graph is optimal 2. **Edge growth rules** - Add edges while preserving Ramanujan property 3. **Centrality validity predicates** - Spectral methods for node importance 4. **Mixing time bounds** - O(log n) mixing from spectral gap ## The Alon-Boppana Bound ### Theorem (Alon-Boppana) For any d-regular graph G on n vertices: ``` λ₂(G) ≥ 2√(d-1) - o(1) as n → ∞ ``` where λ₂ is the second-largest eigenvalue of the adjacency matrix. ### Ramanujan Property A d-regular graph G is **Ramanujan** if: ``` |λ| ≤ 2√(d-1) for all eigenvalues λ ≠ ±d ``` This is the **tightest possible** spectral gap. ### Example: 4-Regular Graphs ``` d = 4 2√(d-1) = 2√3 ≈ 3.464 Maximum spectral gap = d - 2√(d-1) = 4 - 3.464 = 0.536 Your observed gap: ~0.54 ✓ (theoretically optimal) ``` ## Edge Growth Rules ### Rule 1: Preserve Regularity ```julia function add_edge_preserving

What's inside
Steps it walks through
  1. Overview
  2. The Alon-Boppana Bound
  3. Theorem (Alon-Boppana)
  4. Ramanujan Property
  5. Example: 4-Regular Graphs
  6. Edge Growth Rules
  7. Rule 1: Preserve Regularity
  8. Rule 2: Spectral Monotonicity
  9. Rule 3: LPS Construction (Lubotzky-Phillips-Sarnak)
  10. Centrality Validity Predicates
  11. Spectral Centrality
  12. Validity Predicate: Centrality Consistency
  13. Non-Backtracking Centrality
  14. Mixing Time from Spectral Gap
Ships with 1 file
  • metadata.json
Commands it runs
just ramanujan-verify graph.json     # Check Ramanujan property
just ramanujan-grow graph.json       # Add edges preserving property
just ramanujan-centrality graph.json # Compute spectral centrality
just ramanujan-mixing graph.json     # Estimate mixing time
just ramanujan-lps 5 13              # Generate LPS(5,13) graph
More from claude-skill-registry
All skills →
About this skill
What does the ramanujan-expander skill do?

Ramanujan graphs and Alon-Boppana spectral optimality for edge growth rules. Optimal expanders with λ₂ ≤ 2√(d-1) bound.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill ramanujan-expander-plurigrid-asi-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going