-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAI.a2ml
More file actions
68 lines (55 loc) · 2.81 KB
/
Copy pathAI.a2ml
File metadata and controls
68 lines (55 loc) · 2.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# AI Assistant Instructions for ZeroProb.jl
## Repository Overview
**ZeroProb.jl** is a Julia library for handling zero-probability events in continuous probability spaces, providing alternative relevance measures when classical probability (P=0) is insufficient.
## Core Concepts
### Zero-Probability Paradox
In continuous distributions, individual points have measure zero (P(X = x) = 0), yet one such point must occur when sampling. ZeroProb.jl provides three alternative relevance measures:
1. **Density Ratio**: Compare probability densities instead of probabilities
2. **Hausdorff Measure**: Dimensional analysis for sets of measure zero
3. **ε-Neighborhood Probability**: Probability mass in small neighborhoods
### Key Features
- `ContinuousZeroProbEvent` type system
- Alternative relevance measures
- Pedagogical paradox examples (continuum paradox, Borel-Kolmogorov)
- Black swan event modeling
- Comprehensive test suite
## Canonical File Locations
- **SCM Files**: `.machine_readable/` ONLY (STATE.scm, META.scm, ECOSYSTEM.scm, AGENTIC.scm, NEUROSYM.scm, PLAYBOOK.scm)
- **Source Code**: `src/ZeroProb.jl` (main module)
- **Tests**: `test/runtests.jl`
- **Examples**: `examples/` directory
## Critical Invariants (NEVER VIOLATE)
1. **No duplicate SCM files**: SCM files ONLY in `.machine_readable/`, never in root
2. **Zero-probability focus**: Library focuses on P=0 events, not general probability theory
3. **Alternative measures**: Always provide density ratio, Hausdorff, or ε-neighborhood—never just P=0
4. **Pedagogical purpose**: Include teaching examples, not just code
5. **License**: MPL-2.0 throughout
## Workflow
1. Check `.machine_readable/STATE.scm` for current status (v0.1.0, 100% complete)
2. When modifying code: update relevant SCM files
3. After changes: update STATE.scm with progress
4. Commit with concise, imperative message following CCCP
## Tech Stack
- **Julia 1.9+**: Primary language
- **Distributions.jl**: Probability distributions
- **StatsBase.jl**: Statistical utilities
- **Plots.jl / Makie.jl**: Visualization
## Ecosystem Integration
- **Axiom.jl**: Broader probability reasoning framework
- **Axiology.jl**: Value theory (complementary focus)
- **ECHIDNA**: May integrate zero-prob reasoning in proof strategies
## Current Status (v0.1.0)
- ✅ Core type system complete
- ✅ Three relevance measures implemented
- ✅ Pedagogical examples included
- ✅ Comprehensive test suite
- ✅ RSR compliance complete
- 🔄 **Next**: Expand documentation, performance benchmarks
## Testing
- Unit tests: `julia --project=. test/runtests.jl`
- Coverage: Test all three relevance measures
## Delivery Promises
- Update STATE.scm after completing tasks
- Maintain focus on zero-probability events (not general probability)
- Include pedagogical examples with code changes
- Preserve mathematical rigor in implementations