Advanced AI system for analyzing the Collatz Conjecture using Deep Learning and parallel brute-force search
🎯 Overview
This project combines AI-guided pattern recognition with parallel brute-force search to investigate the Collatz Conjecture, one of mathematics' most famous unsolved problems.
Key Features
🧠 Transformer-based Neural Network for sequence prediction
🔍 Multi-threaded C++ Loop Searcher (Floyd's Cycle Detection)
⚡ Native C++ Data Engine for maximum performance
📊 Real-time Discord Integration for monitoring
🎓 Curriculum Learning with "Hard Mode" candidates (n > 2^68)
GPU: NVIDIA GPU with 6GB+ VRAM (tested on RTX 3070 Ti)
CPU: Multi-core processor (tested on Ryzen 5900X)
RAM: 16GB+ recommended
OS: Linux (tested on Arch Linux)
Python: 3.13+
CUDA: 12.8+
Installation
bash
1# Clone the repository2git clone https://github.com/yourusername/collatz-ai.git
3cd collatz-ai
45# Run setup (creates venv, installs dependencies, compiles C++ modules)6chmod +x run.sh
7./run.sh
Usage
bash
1# Start training2./run.sh
34# Interactive commands during training:5# - Type 'stop' to save and exit6# - Type 'status' for current progress7# - Ctrl+C for graceful shutdown
Explore transformer behavior on mathematical sequences
For Collatz Enthusiasts
Automated large-scale verification
Pattern discovery in high ranges (> 2^68)
Real-time progress monitoring via Discord
🚧 Future Work
Distributed training across multiple GPUs
Larger model (256d, 6 layers) from scratch
GPU-accelerated loop detection
Extended search range (2^100 - 2^120)
Hybrid LSTM+Transformer architecture
📝 Configuration
Edit src/train.py to customize:
python
1BATCH_SIZE =512# Adjust for your VRAM2NUM_WORKERS =20# CPU threads for data loading3STEPS =1000000# Training duration4D_MODEL =128# Model dimension5NUM_LAYERS =4# Transformer layers6NHEAD =4# Attention heads
🤝 Contributing
Contributions welcome! Areas of interest:
Model architecture improvements
Faster loop detection algorithms
Better anomaly detection
Visualization enhancements
📄 License
GNU General Public License v3.0
This project is licensed under GPL v3, which means:
✅ You CAN:
Use for any purpose (personal, commercial, research)
Modify and improve the code
Distribute original or modified versions
Sell modified versions
⚠️ You MUST:
Share source code of any modifications
Use the same GPL v3 license
State significant changes
Include copyright and license notices
🎯 Mission: Help humanity solve the Collatz Conjecture through open collaboration!
⚠️ Disclaimer: This is a research project. Finding a non-trivial cycle would disprove the Collatz Conjecture, which is highly unlikely but mathematically possible.
🎯 Goal: Advance our understanding of the Collatz Conjecture through AI-guided analysis and exhaustive verification.