Skip to content

dancinlab/hexa-cern

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

82 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

hexa-cern

πŸ”¬ hexa-cern

HEXA-CERN family β€” particle physics Β· benchtop accelerator Β· Οƒ-cascade Β· n=6 substrate

License DOI Spec Pillars Verify Checks Family

particle-physics Β· accelerator Β· laser-plasma Β· LWFA Β· Οƒ-cascade Β· LHC Β· DESY Β· n=6 lattice Β· benchtop


πŸ’« hexa-cern

DOI

hexa-cern β€” n=6 sigma-cascade 6-order benchtop accelerator (100 MeV / 1 GeV/m, mini + parent + classical 3-pillar).

A petite, peer-of-Lumière standalone repo from the dancinlab org. Where Lumière takes the camera/character axes, hexa-cern takes the accelerator axis: three pillars distilled from the canon physics domain into a single MIT-licensed bundle.


Why β€” benchtop CERN

LHC fills a 27 km tunnel for 7 TeV. DESY runs a 1 GeV/m laser-plasma prototype on a research-lab footprint. hexa-cern's design target is a benchtop Οƒ-Ο†=10 GeV/m continuous-mode accelerator at 100 MeV total, threaded by the n=6 perfect-number lattice (Οƒ(6)=12, Ο„(6)=4, Ο†(6)=2).

The design ceiling β€” what the spec claims if Stage-1+ empirical builds confirm the Οƒ-cascade β€” is 6 orders of practical change vs current tech:

effect LHC/DESY current hexa-cern design ceiling
precision 1.0 unit Οƒ-Ο† = 10Γ— gain
throughput 1.0Γ— σ² = 144Γ—
energy cost 100% 1/Οƒ β‰ˆ 8.3%
equipment size 1.0 L (or 27 km) 1/(Οƒ-Ο†) = 0.1 L benchtop
error rate 1% 1/σ² β‰ˆ 0.7%
lifetime 1 year σ·τ = 48 months

This is the why: a CERN you can put on a bench, drawn from the same n=6 invariant that threads the rest of the HEXA family.


Status

  • v1.1.0 RSC code-layer FINAL on main (2026-05-13)
  • 29/29 verify scripts PASS Β· 353/353 row-level checks PASS Β· 4/4 tests PASS
  • 100% bookkeeping closure across F-PCERN-1/2/3 (T1+T2+T3 locked)
  • __HEXA_CERN_RSC_SATURATED__ STOP signal active (17/17 saturation conditions met)
  • 3 pillars: HEXA-MINI-ACCEL (λ²€μΉ˜ν†± 100 MeV / 1 GeV/m laser-plasma) + HEXA-PACCEL (integrated parent) + HEXA-CLASSIC-ACCEL
  • n=6 invariant: Οƒ(6)=12 Β· Ο„(6)=4 Β· Ο†(6)=2 Β· Jβ‚‚=24 Β· σ·φ = nΒ·Ο„ = 24
  • Zero .py in the runnable surface β€” 100% .hexa end-to-end (verify + tests + firmware sim)
  • LHC 7 TeV/27km & DESY 1 GeV/m baselines compared paper-only; empirical raw-data fit (Stage-1+ benchtop) UNVERIFIED until hardware lands
  • Closure is bookkeeping β€” closed-form algebra + closed-form numerics + archival paper-existence; not bench measurement
  • Real-limits authority: LIMIT_BREAKTHROUGH.md (CERN public TDR/CDR values L1..L12; no n=6 lattice fit on CERN vendor numbers)
  • Parent: dancinlab/echoes; GitHub canonical at https://github.com/dancinlab/hexa-cern

What it does not ship: actual particle acceleration, Geant4/MAD-X bridge, real-time beam diagnostics, LHC/DESY data ingestion. The Οƒ-cascade 6-order claim is a design-target ceiling, not a measurement.


Verification

v1.1.0 RSC code-layer FINAL on main (2026-05-13): 29/29 verify scripts PASS Β· 353/353 row-level checks PASS Β· 4/4 tests PASS Β· 100% bookkeeping closure across F-PCERN-1/2/3 (T1+T2+T3 locked) Β· __HEXA_CERN_RSC_SATURATED__ STOP signal active.

v1.0.0 ships (frozen 2026-05-06):

  • 3 pillar specs (.md, extracted from canon@c0f1f570)
  • a cli/hexa-cern.hexa dispatcher with 3 pillar verbs + status / selftest

v1.1.0-pre adds (on main, 2026-05-07):

  • verify/ β€” 12 .hexa scripts auditing n=6 lattice + per-pillar derivations + numerical solvers
  • build/ β€” pandoc + xelatex Makefile that regenerates 3 pillar PDFs (clean)
  • tests/ β€” 4 .hexa test cases (+ test_all.hexa aggregator); 4/4 PASS
  • cli/hexa-cern.hexa verify [<sub>] β€” 6-runner aggregator subcommand
  • hexa.toml v1.1.0-pre [closure] block: verify_pass: 6/6, tests: 4/4

Zero .py was added β€” the runnable surface is 100% .hexa. This is deliberate: hexa-cern is a hexa-family member, and the migration target across dancinlab repos is .hexa-native tooling.

The verify/ surface (all .hexa) audits n=6 closure + per-pillar derivations. Current state (2026-05-13): 29/29 scripts PASS, 353/353 row-level checks PASS β€” 100% bookkeeping closure. F-PCERN-1/2/3 all at T1+T2+T3 locked. __HEXA_CERN_RSC_SATURATED__ STOP signal active (17/17 saturation conditions met).

script check result
verify/lattice_check.hexa Οƒ(6)Β·Ο†(6) = nΒ·Ο„(6) = Jβ‚‚ = 24 across roadmap + 3 pillars 23/23 PASS
verify/cross_doc_audit.hexa LHC / DESY / OEIS / BT cross-link + firmware HDL/MCU skeleton 15/15 PASS
verify/calc_wakefield.hexa mini β€” E_peak = σ·(Οƒ-Ο†) = 120 GV/m, aβ‚€ = n = 6, R = 10 cm 6/6 PASS
verify/numerics_wakefield.hexa mini β€” closed-form plasma numerics (n_e, L_d via math_pure) 4/4 PASS
verify/numerics_lwfa_solver.hexa mini β€” Verlet LWFA ODE solver 7/7 PASS
verify/numerics_lwfa_relativistic.hexa mini β€” KDK leapfrog relativistic LWFA (Ξ³ β†’ 200) 9/9 PASS
verify/numerics_beam_dynamics.hexa mini β€” LWFA betatron + emittance preservation 8/8 PASS
verify/numerics_lwfa_scaling.hexa mini β€” Lu/Esarey/TD scaling-law parity 10/10 PASS
verify/calc_sigma_cascade.hexa parent β€” E_0..E_6 chain (10 MeV β†’ 100 TeV) 8/8 PASS
verify/numerics_sigma_cascade.hexa parent β€” relativistic Ξ³ progression numerics 10/10 PASS
verify/numerics_bending.hexa parent β€” collider bending-radius R = E/(ecB), LHC/Tev/FCC 8/8 PASS
verify/calc_classical.hexa classical β€” DOF = n = 6, phase-space dim = Οƒ = 12 11/11 PASS
verify/numerics_classical.hexa classical β€” symplectic leapfrog (Ο„=4 quadrants) 9/9 PASS
verify/numerics_liouville.hexa classical β€” Liouville volume preservation (det(J)=1) 8/8 PASS
verify/numerics_se3_partial.hexa classical β€” 2-DOF symplectic (1β†’2β†’6-DOF) 8/8 PASS
verify/numerics_cross_pillar.hexa cross-pillar consistency (mini ↔ parent ↔ classical) 8/8 PASS
verify/numerics_lhc_parity.hexa F-PCERN-1 collider parity (LEP/Tevatron/LHC/FCC) 10/10 PASS
verify/numerics_lwfa_parity.hexa F-PCERN-3 LWFA parity (BELLA/FACET/ATHENA/FLASHFwd) 7/7 PASS
verify/numerics_lattice_arithmetic.hexa n=6 lattice float arithmetic (math_pure stability) 12/12 PASS
verify/lint_numerics.hexa meta-lint: every numerics_*.hexa follows conventions 71/71 PASS
verify/saturation_check.hexa RSC saturation (sat-1 + sat-2 + sat-3 β†’ STOP) 17/17 PASS
verify/empirical_lhc_api.hexa F-PCERN-1 T3 β€” CERN Open Data API archival feed 7/7 PASS
verify/empirical_lwfa_hepdata.hexa F-PCERN-3 T3 β€” Inspire-HEP LWFA paper milestones 10/10 PASS
verify/empirical_classical_arxiv.hexa F-PCERN-2 T3 β€” arXiv classical-mechanics milestones 6/6 PASS
verify/falsifier_check.hexa F-PCERN-1/2/3 preregister + closure progress (100% bookkeeping) 21/21 PASS
firmware/sim/timing_chain.hexa Β§A.6.1 step C β€” master clock + trigger sim 10/10 PASS
firmware/sim/dac_chain.hexa Β§A.6.1 step C β€” 16-bit DAC chain 10/10 PASS
firmware/sim/adc_chain.hexa Β§A.6.1 step C β€” ADC chain (BPM/diamond) 9/9 PASS
firmware/sim/control_loop.hexa Β§A.6.1 step C β€” closed PID loop 9/9 PASS

Run them all with the unified CLI subcommand or the standalone orchestrator:

HEXA_LANG=$HOME/core/hexa-lang hexa-cern verify all       # 29/29 expected
HEXA_LANG=$HOME/core/hexa-lang hexa run verify/run_all.hexa  # same; orchestrator (.hexa)

HEXA_LANG points the interpreter at the hexa-lang stdlib root that ships self/runtime/math_pure. Required when numerics scripts run outside the hx package shim.

Or build the 3 pillar PDFs:

make -C build check       # verify pandoc + xelatex + hexa available
make -C build all         # rebuild all 3 pillar PDFs into build/out/

Empirical wiring (laser-plasma sandbox, parent integration, classical baseline solver) is deferred to Stage-1+ benchtop builds. See docs/cern_baseline.md for the LHC 7 TeV/27 km vs DESY 1 GeV/m vs HEXA Οƒ-Ο†=10 GeV/m comparison table, and docs/numerics_methodology.md for how the verify surface is structured (3-tier evidence ladder, F-PCERN closure pct, math_pure conventions, recipe for adding new numerics).


Install

# 1. Install hexa-lang (gives you `hexa` + `hx` package manager)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/dancinlab/hexa-lang/main/install.sh)"

# 2. Install hexa-cern
hx install hexa-cern

Run

hexa-cern status          # 0/3-wired pillar table + verdict + caveats
hexa-cern selftest        # full 3-pillar sentinel sweep
hexa-cern verify          # n=6 invariant + per-pillar calculators (29/29)
hexa-cern --version       # show version
hexa-cern --help          # full usage

# orchestrator (.hexa, no CLI wrapper):
HEXA_LANG=$HOME/core/hexa-lang hexa run verify/run_all.hexa

Repo layout

hexa-cern/
β”œβ”€β”€ README.md                     ← this file
β”œβ”€β”€ LICENSE                       ← MIT
β”œβ”€β”€ hexa.toml                     ← package manifest (hx install hexa-cern)
β”œβ”€β”€ install.hexa                  ← hx install hook (post-install selftest)
β”œβ”€β”€ .roadmap.hexa_cern            ← cross-cutting state (lattice / cycles / falsifiers)
β”œβ”€β”€ CHANGELOG.md                  ← release history
β”œβ”€β”€ RELEASE_NOTES_v1.0.0.md       ← v1.0.0 cut notes
β”‚
β”œβ”€β”€ mini/doc/mini-accelerator.md                            ← pillar 1 (47 KB)
β”œβ”€β”€ parent/doc/particle-accelerator.md                      ← pillar 2 (14 KB)
β”œβ”€β”€ classical/doc/classical-mechanics-accelerator.md        ← pillar 3 (47 KB)
β”‚
β”œβ”€β”€ cli/
β”‚   └── hexa-cern.hexa            ← CLI router (status/selftest/verify/mini/parent/classical)
β”œβ”€β”€ verify/                       ← v1.1.0-pre β€” n=6 audit surface (.hexa)
β”‚   β”œβ”€β”€ lattice_check.hexa            ← σ·φ = nΒ·Ο„ = Jβ‚‚ = 24 closure   (23/23)
β”‚   β”œβ”€β”€ cross_doc_audit.hexa          ← LHC/DESY/OEIS/BT cross-pillar (11/11)
β”‚   β”œβ”€β”€ calc_wakefield.hexa           ← mini β€” laser-wakefield n=6   ( 6/ 6)
β”‚   β”œβ”€β”€ numerics_wakefield.hexa       ← mini β€” closed-form n_e/L_d   ( 4/ 4)
β”‚   β”œβ”€β”€ numerics_lwfa_parity.hexa     ← mini β€” vs DESY/SLAC LWFA refs ( 7/ 7)
β”‚   β”œβ”€β”€ calc_sigma_cascade.hexa       ← parent β€” E_0..E_6 chain      ( 8/ 8)
β”‚   β”œβ”€β”€ numerics_sigma_cascade.hexa   ← parent β€” relativistic Ξ³      (10/10)
β”‚   β”œβ”€β”€ numerics_lhc_parity.hexa      ← parent β€” vs LEP/Tev/LHC/FCC  (10/10)
β”‚   β”œβ”€β”€ calc_classical.hexa           ← classical β€” Lagrange/Hamilton(11/11)
β”‚   β”œβ”€β”€ numerics_classical.hexa       ← classical β€” symplectic leap. ( 9/ 9)
β”‚   β”œβ”€β”€ numerics_cross_pillar.hexa    ← mini ↔ parent ↔ classical    ( 8/ 8)
β”‚   └── falsifier_check.hexa          ← F-PCERN-1/2/3 + closure %    (11/11)
β”œβ”€β”€ build/
β”‚   β”œβ”€β”€ Makefile                  ← pandoc + xelatex 3-PDF rebuild
β”‚   β”œβ”€β”€ header.tex                ← LaTeX include (CJK + monospace; soft-guarded)
β”‚   └── out/*.pdf                 ← generated, .gitignore'd
β”œβ”€β”€ tests/                        ← v1.1.0-pre β€” regression suite (.hexa)
β”‚   β”œβ”€β”€ test_selftest.hexa
β”‚   β”œβ”€β”€ test_lattice.hexa
β”‚   β”œβ”€β”€ test_calculators.hexa
β”‚   β”œβ”€β”€ test_cli_verify.hexa
β”‚   └── test_all.hexa             ← runs everything above (4/4 PASS)
└── docs/cern_baseline.md         ← LHC vs DESY vs hexa-cern comparison

The verify/ + build/ + tests/ triad is the canonical runnable surface for hexa-cern: every audit + every PDF + every test is .hexa end-to-end (no Python, no shell-only logic).


Cross-link

dependency / cousin repo role
SC magnet substrate dancinlab/hexa-rtsc superconducting magnet primitive
cousin (PET cyclotron, antimatter) dancinlab/hexa-antimatter parallel acceleration use case
Stage-3 propulsion dependent dancinlab/hexa-ufo downstream propulsion consumer

Provenance: extracted from canon at SHA c0f1f570 on 2026-05-06.

Sister repo (peer extraction): dancinlab/lumiere β€” camera-filter + hexa-main-character apps-axis.


License

MIT β€” see LICENSE.

Copyright (c) 2026 dancinlab (λ°•λ―Όμš° nerve011235@gmail.com)

About

πŸ’« hexa-cern β€” n=6 sigma-cascade 6-order benchtop accelerator (100 MeV / 1 GeV/m, mini + parent + classical 3-pillar).

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors