Spaces:
Paused
Paused
Commit History
-
Add HuggingFace Spaces support
e0ef700
-
Add statistical distribution analysis with beta fitting and fix vertex configuration bug
This commit adds comprehensive statistical analysis capabilities and fixes a critical bug in vertex configuration across the codebase. New Features: - Add beta distribution fitting with MLE parameter estimation - Add bootstrap confidence intervals for distribution parameters - Add Kolmogorov-Smirnov and Anderson-Darling goodness-of-fit tests - Add multiprocessing support (64 CPU parallelization) - Add sample_size_calculator.py tool for precision planning - Add comprehensive volume_distribution_workflow.md documentation Key Results: - 20-vertex polyhedra: Beta fit with p=0.729 (excellent) - 40-vertex polyhedra: Beta fit with p=0.961 (near-perfect) - Strong empirical evidence for beta distribution convergence as n→∞ Bug Fixes: - Fix critical "i" bug: Changed fixed vertices from [0, 1, i] to [0, 1] - This affected 12 files across bin/ and examples/optimization/7vertex/ - Now correctly uses 2 fixed vertices with infinity implicit in triangulation - Fixes vertex count being off by 1 (e.g…3bf2012
-
Add ranking comparison: Gemini beaten by random configuration!
The embarrassing truth revealed: Gemini's "sophisticated" regular ideal heptagonal bipyramid: - Rank: 3/11 (bottom 27%) - Volume: 7.0326 - BEATEN by Random 5 (7.1166) Despite: • Perfect mathematical reasoning • Symmetric, regular structure • Sophisticated geometric construction • Correct formulas (except the hallucinated Cl₂ value) Result: Gemini's configuration performs like a mediocre random configuration, demonstrating that symmetry ≠ optimality. The comparison tool shows all 11 configurations ranked by volume, making it painfully clear that geometric sophistication doesn't guarantee good results when you hallucinate the numbers! 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>32d7009 -
Add comprehensive analysis of Gemini's volume calculation error
Gemini claimed a regular ideal heptagonal bipyramid achieves volume 11.5352, but we measured 7.0326 (39% error, doesn't exceed 8.15). Root cause: Numerical hallucination of Clausen function value: - Gemini claimed: Cl₂(2π/7) ≈ 1.6479 - Actual value: Cl₂(2π/7) ≈ 1.0047 (64% error!) Verification shows: ✓ Geometry correct (heptagonal bipyramid) ✓ Stereographic projection correct ✓ Triangulation correct (7 tetrahedra) ✓ Cross-ratio formula correct (e^(i 2π/7)) ✓ Volume formula correct (Bloch-Wigner dilogarithm) ✗ Numerical value WRONG (hallucinated) Analysis tools: - check_gemini_config.py: Computes actual volume (7.0326) - analyze_gemini_triangulation.py: Verifies triangulation - check_clausen_function.py: Validates Clausen function - find_gemini_angle.py: Searches for mystery angle - GEMINI_BUG_REPORT.md: Complete documentation Demonstrates: LLMs can have flawless reasoning but hallucinate numerical values, leading to completely wrong conclusions. 🤖 Generated with Claude Code Co…df2461d -
Add LLM benchmark care package for testing volume predictions
Complete benchmark suite to expose LLM confusion about ideal polyhedron volumes (GPT-4.5 claims ~9.13, Gemini 2.5 claims >10, reality is 8.16). Contents: - run_benchmark.py: Driver that loads configs and tests threshold - generate_test_cases.py: Creates test suite (1 optimal + 9 random) - test_data/llm_benchmark_test_suite.json: 10 configurations * 1 optimal (volume 8.162538, exceeds 8.15 threshold) * 9 random (volumes 3.15-7.12, below 8.15 threshold) - README.md: Complete documentation with usage and technical details Features: - Uses Bloch-Wigner dilogarithm for precise volume computation - Self-contained test suite with expected results - Clear pass/fail reporting - All 10 test cases pass validation Usage: cd examples/llm_benchmark python run_benchmark.py 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>a509947 -
Regenerate 9-vertex LLM benchmark with Bloch-Wigner and correct vertex config
Key improvements: - Use Bloch-Wigner dilogarithm for precise volume computation - Fix vertex configuration: 0, 1, ∞ + 6 free (was incorrectly 0, 1, i, ∞ + 5) - Add use_bloch_wigner parameter to ideal_poly_volume_via_delaunay() - Update optimization script with correct vertex counts and improved docs - New optimal volume: 8.162538347504972 (precise to 15 digits) Bloch-Wigner is ~2×10⁻⁵ more accurate than Lobachevsky with 256 terms. 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>32a2e80 -
Fix critical bug: remove i from fixed vertices (should be 0, 1, ∞ only)
CRITICAL BUG FIX: The GUI was using 3 fixed vertices (0, 1, i) instead of the standard 2 (0, 1). This caused incorrect vertex counts and inflated volumes. Impact: - When user requested 4 vertices, got 5 (0, 1, i, 1 free, ∞) - Volume of 'regular tetrahedron' was 1.96 instead of ~1.015 - All prior optimization results may be affected Fixed by: - Changed fixed vertices from [0, 1, i] to [0, 1] - Updated all documentation and comments - Now: 4 vertices = 0, 1, 1 free, ∞ (correct) This aligns with the standard convention for ideal polyhedra. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>8750b11
-
Major reorganization and feature additions
## Reorganization - Moved all examples to organized examples/ directory by category - examples/distributions/ (tetrahedron, 5-vertex, 6-vertex, euclidean) - examples/optimization/ (7-vertex, 12-vertex, 20-vertex, platonic) - examples/visualization/ - examples/analysis/ - Created bin/ directory for command-line tools and GUI - Created results/ directory with data/, plots/, logs/ subdirectories - Moved documentation to docs/ directory - Cleaned up 91+ root-level files into organized structure ## New Features ### Command-Line Tools (bin/) - optimize_polyhedron.py: General optimization wrapper with canonical output - analyze_distribution.py: Distribution analysis wrapper - gui.py: Comprehensive Gradio web interface ### Gradio GUI (bin/gui.py) - 5-tab interface: Optimization, Distribution, Visualization, Arithmeticity, About - Parallel optimization using all CPU cores (64-core support) - Real-time progress tracking - 3D visualization in Klein and Poincaré ball models - Holonomy c…d7d27f0