Metadata-Version: 2.4
Name: negative-space-core
Version: 0.1.0
Summary: Core theory of negative space intelligence — what you learn to AVOID is the knowledge
Author-email: SuperInstance <noreply@superinstance.dev>
License: MIT License
        
        Copyright (c) 2026 SuperInstance
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: agents,avoidance,intelligence,negative-space,ternary
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# negative-space-core-python

Python implementation of negative space intelligence — the core theory that intelligence is what you learn to AVOID.

## The 5 Laws

1. Negative space discovers hidden structure (60% avoidance through feedback alone)
2. Avoidance dominates choice (294:1 ratio)
3. Strategy species coexist stably (100% resilience)
4. Population > Individual (+0.075 fitness advantage)
5. Avoidance ratio CONSERVED across scales (std=0.001 from 10 to 5000 agents)

## Install

```bash
pip install negative-space-core
```

## Usage

```python
from negative_space_core import AvoidanceTracker, ConservationLaw, BatchAnalyzer

# Track avoidance across generations
tracker = AvoidanceTracker(positions=100)
for _ in range(50):
    actions = simulate_population(100)
    tracker.record(actions)

print(f"Avoid ratio: {tracker.avoid_ratio():.3f} ± {tracker.avoid_std():.4f}")

# Verify conservation law
cl = ConservationLaw(threshold=0.02)
data = {10: [...], 100: [...], 1000: [...], 5000: [...]}
results = cl.test_all_scales(data)
print(cl.report())
```

## API

- **AvoidanceTracker** — ratio tracking, std computation, conservation verification
- **ConservationLaw** — multi-scale conservation testing with reports
- **InferenceEngine** — deduce knowledge from gaps between avoidances
- **FeedbackLoop** — balanced v5 learning with forced exploration and decay
- **BatchAnalyzer** — batch statistics, avoid:choose ratio, conservation std

## License

MIT
