counter_awareness/lib.rs
1#![forbid(unsafe_code)]
2#![warn(missing_docs)]
3#![cfg_attr(
4 not(test),
5 deny(clippy::unwrap_used, clippy::expect_used, clippy::panic)
6)]
7
8//! # Counter-Awareness: Detection/Counter-Detection Formalization
9//!
10//! A primitive-grounded framework for modeling multi-spectral detection
11//! and counter-detection systems.
12//!
13//! ## Architecture
14//!
15//! ```text
16//! primitives → matrix → detection → fusion → device
17//! (T1 atoms) (8×8 map) (single) (multi) (stateful)
18//! ```
19//!
20//! ## Core Equation
21//!
22//! ```text
23//! P_detect(sensor, target, range) =
24//! (1 - exp(-SNR)) × exp(-α × r/r_max)
25//!
26//! where SNR = max(S_residual_i) / noise_floor
27//! S_residual = S_raw × ∏(1 - M[p][c])
28//!
29//! P_fused = 1 - ∏(1 - P_detect_i)
30//! ```
31//!
32//! ## Lex Primitiva Grounding
33//! Crate-level: {κ, μ, N, Σ, ς, π, ∂}
34//! - κ (Comparison): threshold-based detection
35//! - μ (Mapping): effectiveness matrix
36//! - N (Quantity): probabilities, measurements
37//! - Σ (Sum): sensor fusion, state enumeration
38//! - ς (State): device state machine
39//! - π (Persistence): measurement log
40//! - ∂ (Boundary): counter-awareness = boundary enforcement
41
42pub mod detection;
43pub mod device;
44pub mod fusion;
45pub mod matrix;
46pub mod primitives;