Metadata-Version: 2.4
Name: synapse-lang
Version: 1.0.1
Summary: A revolutionary programming language for scientific computing with parallel execution and uncertainty quantification
Home-page: https://github.com/michaelcrowe/synapse-lang
Author: Michael Benjamin Crowe
Author-email: Michael Benjamin Crowe <michael@synapse-lang.com>
Maintainer-email: Michael Benjamin Crowe <michael@synapse-lang.com>
License: Proprietary
Project-URL: Homepage, https://synapse-lang.com
Project-URL: Documentation, https://synapse-lang.readthedocs.io
Project-URL: Repository, https://github.com/michaelcrowe/synapse-lang
Project-URL: Bug Tracker, https://github.com/michaelcrowe/synapse-lang/issues
Project-URL: Changelog, https://github.com/michaelcrowe/synapse-lang/blob/main/CHANGELOG.md
Keywords: programming-language,scientific-computing,parallel-computing,uncertainty-quantification,quantum-computing,tensor-operations,symbolic-mathematics,interpreter,jit-compilation,gpu-acceleration
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Education
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Topic :: Scientific/Engineering :: Chemistry
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Compilers
Classifier: Topic :: Software Development :: Interpreters
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Classifier: Natural Language :: English
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: LICENSE-COMMUNITY
License-File: LICENSE-DUAL.md
License-File: LICENSE-PROPRIETARY
License-File: license_server.py
License-File: AUTHORS.md
Requires-Dist: numpy>=1.20.0
Requires-Dist: scipy>=1.7.0
Requires-Dist: sympy>=1.9
Requires-Dist: matplotlib>=3.4.0
Requires-Dist: colorama>=0.4.4
Requires-Dist: networkx>=2.6
Requires-Dist: pandas>=1.3.0
Provides-Extra: gpu
Provides-Extra: jit
Requires-Dist: numba>=0.58; extra == "jit"
Provides-Extra: quantum
Requires-Dist: qiskit>=0.34.0; extra == "quantum"
Requires-Dist: pennylane>=0.20.0; extra == "quantum"
Requires-Dist: cirq>=0.13.0; extra == "quantum"
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21; extra == "dev"
Requires-Dist: black>=23.0; extra == "dev"
Requires-Dist: ruff>=0.5; extra == "dev"
Requires-Dist: mypy>=1.10; extra == "dev"
Requires-Dist: pre-commit>=3.0; extra == "dev"
Requires-Dist: tox>=4.0; extra == "dev"
Provides-Extra: docs
Requires-Dist: sphinx>=6.0; extra == "docs"
Requires-Dist: sphinx-rtd-theme>=1.3; extra == "docs"
Requires-Dist: sphinx-autodoc-typehints>=1.23; extra == "docs"
Requires-Dist: myst-parser>=2.0; extra == "docs"
Provides-Extra: all
Requires-Dist: numba>=0.58; extra == "all"
Requires-Dist: qiskit>=0.34.0; extra == "all"
Requires-Dist: pennylane>=0.20.0; extra == "all"
Requires-Dist: cirq>=0.13.0; extra == "all"
Requires-Dist: pytest>=7.0; extra == "all"
Requires-Dist: pytest-cov>=4.0; extra == "all"
Requires-Dist: black>=23.0; extra == "all"
Requires-Dist: sphinx>=6.0; extra == "all"
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# Synapse Programming Language

**Created by Michael Benjamin Crowe**

A proprietary programming language designed for deep scientific reasoning and enhanced parallel thought processing pipelines.

## Overview

Synapse is a domain-specific language that combines:
- **Parallel execution streams** for simultaneous hypothesis testing
- **Uncertainty quantification** built into the type system
- **Scientific reasoning chains** with formal logic constructs
- **Native tensor operations** for high-dimensional data
- **Hypothesis-driven programming** paradigm

## Key Features

### 1. Uncertainty-Aware Computing
```synapse
uncertain measurement = 42.3 ± 0.5
uncertain temperature = 300 ± 10
// Uncertainty propagates automatically through calculations
```

### 2. Parallel Thought Streams
```synapse
parallel {
    branch A: test_hypothesis_1()
    branch B: test_hypothesis_2()
    branch C: control_experiment()
}
```

### 3. Reasoning Chains
```synapse
reason chain ScientificMethod {
    premise P1: "Observable phenomenon exists"
    derive D1 from P1: "Hypothesis can be formed"
    conclude: D1 => "Experiment validates or refutes"
}
```

## Project Structure

```
synapse-lang/
├── LANGUAGE_SPEC.md          # Complete language specification
├── synapse_interpreter.py     # Core interpreter implementation
├── test_synapse.py           # Test suite
├── examples/
│   ├── quantum_simulation.syn    # Quantum mechanics example
│   ├── climate_model.syn        # Climate modeling example
│   └── drug_discovery.syn       # Drug discovery pipeline
└── README.md                 # This file
```

## Running Tests

```bash
cd synapse-lang
python test_synapse.py
```

## Example Programs

### Quantum Simulation
Demonstrates parallel evolution of quantum states with uncertainty:
```synapse
experiment DoubleSlitSimulation {
    parallel {
        branch slit_A: evolve_wavefunction(path="A")
        branch slit_B: evolve_wavefunction(path="B")
    }
    synthesize: compute_interference(slit_A, slit_B)
}
```

### Climate Modeling
Complex system analysis with ensemble runs:
```synapse
parallel {
    branch RCP2.6: model_pathway(emissions="low")
    branch RCP4.5: model_pathway(emissions="moderate")
    branch RCP8.5: model_pathway(emissions="high")
}
```

### Drug Discovery
Molecular simulation pipeline with parallel screening:
```synapse
pipeline DrugDiscovery {
    stage VirtualScreening parallel(64) {
        fork {
            path ligand_docking: autodock_vina
            path ml_prediction: graph_neural_network
        }
    }
}
```

## Implementation Status

✅ **Completed:**
- Basic lexer/tokenizer
- Token types for scientific operators
- Uncertain value arithmetic with error propagation
- Parallel execution framework
- Variable storage and retrieval
- Example scientific programs

🚧 **In Progress:**
- Full parser implementation
- Advanced reasoning chains
- Tensor operations
- Symbolic mathematics
- Pipeline execution

## Design Philosophy

Synapse is designed to express scientific thinking naturally:
1. **Hypothesis-first**: Start with assumptions, derive conclusions
2. **Parallel exploration**: Test multiple theories simultaneously  
3. **Uncertainty-native**: Propagate measurement errors automatically
4. **Reasoning chains**: Build formal logical arguments
5. **Pipeline-oriented**: Structure complex workflows
