Epistemic Reasoning Engine for AI Systems Based on Navya-Nyaya Logic
Pramana is a research project that builds an epistemic reasoning engine for AI systems. It teaches LLMs to apply the 2,500-year-old Indian epistemological methodology of Navya-Nyaya logic to solve logical problems systematically, rather than relying on probabilistic pattern-matching.
Unlike standard chain-of-thought reasoning, Pramana enforces a structured 6-phase Nyaya methodology:
- Samshaya (Doubt Analysis) - Classify the type of uncertainty/ambiguity
- Pramana (Evidence Sources) - Identify valid knowledge sources (Pratyaksha/perception, Anumana/inference, Upamana/comparison, Shabda/testimony)
- Pancha Avayava (5-Member Syllogism) - Construct formal argument with Pratijna (thesis), Hetu (reason), Udaharana (universal example), Upanaya (application), Nigamana (conclusion)
- Tarka (Counterfactual Testing) - Use reductio ad absurdum to verify conclusions
- Hetvabhasa (Fallacy Detection) - Check for reasoning errors
- Nirnaya (Ascertainment) - Reach definitive conclusion or explicitly state insufficient evidence
# Clone the repository
git clone https://github.com/your-org/pramana.git
cd pramana
# Install with uv (recommended)
uv sync --dev
# Or install with pip
pip install -e ".[dev]"# Run tests
uv run pytest
# Run linter
uv run ruff check
# Run type checker
uv run mypy src
# Format code
uv run ruff formatpramana/
├── src/pramana/
│ ├── domain/ # Core business logic
│ ├── application/ # Use cases and orchestration
│ ├── infrastructure/ # External integrations
│ ├── config/ # Configuration management
│ └── cli/ # Command-line interface
├── tests/ # Test suite
├── configs/ # YAML configuration files
├── data/ # Training and evaluation data
└── docs/ # Documentation
MIT License - see LICENSE for details.