Skip to content

feat(hybrid-v2): L2 cosine similarity + golden tests N=5..152#559

Merged
gHashTag merged 1 commit intomasterfrom
feat/hybrid-v2-golden-tests
Apr 29, 2026
Merged

feat(hybrid-v2): L2 cosine similarity + golden tests N=5..152#559
gHashTag merged 1 commit intomasterfrom
feat/hybrid-v2-golden-tests

Conversation

@gHashTag
Copy link
Copy Markdown
Owner

Summary

  • Add --hybrid-v2, --n <N>, --theta flags to tri math compare
  • L2 cosine similarity between phi^k and Pell P_{k+1} vectors in R^N
  • f64 Pell numbers to avoid u64 overflow at N>60
  • Golden tests for N={5,10,15,20,50,152} — all pass
  • 10 Rust unit tests for golden values + convergence + plateau detection
  • Update hybrid-conjecture.md with frozen definitions and golden values

Key results

N cos(theta) theta (deg)
5 0.964916 15.22
10 0.961774 15.89
15 0.961744 15.90
20 0.961744 15.90
50 0.961744 15.90
152 0.961744 15.90

Plateau reached at N=15, stable to 10+ digits by N=20.

Closes #339 Closes #287

Constitutional compliance

Closes #339  Closes #287

- Add --hybrid-v2 --n <N> --theta flags to tri math compare
- L2 cosine between phi^k and Pell P_{k+1} vectors
- f64 Pell numbers to avoid u64 overflow at N>60
- Golden test table: N={5,10,15,20,50,152}
- Plateau: cos ~0.9617, theta ~15.90 deg by N=15
- 10 Rust unit tests for golden values + convergence
- Update hybrid-conjecture.md with frozen golden values
@github-actions
Copy link
Copy Markdown

📓 NotebookLM Notebook linked to this PR

This notebook contains session context, decisions, and artifacts for this work.

@gHashTag gHashTag merged commit 258fc0b into master Apr 29, 2026
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(cli): hybrid v2 golden tests N=5..152 feat(math): hybrid v2 — L2 cosine, dimension N, reproducible convergence (Trinity × Pellis)

1 participant