pub struct GraphArena {
pub vars: Vec<ScopedVar>,
pub var_to_idx: HashMap<ScopedVar, usize>,
pub edges: Vec<(usize, usize, i32, bool)>,
}Expand description
The GraphArena represents the CPU Geometry Layer in the hybrid pipeline.
It translates the semantic interactions (from the FormulaArena) into a weighted directed graph
using De Bruijn indexing and lexical depths, enabling purely structural verification.
Fields§
§vars: Vec<ScopedVar>§var_to_idx: HashMap<ScopedVar, usize>§edges: Vec<(usize, usize, i32, bool)>Implementations§
Source§impl GraphArena
impl GraphArena
pub fn new() -> Self
pub fn add_var(&mut self, var: ScopedVar) -> usize
pub fn from_constraints(constraints: &[Constraint]) -> Self
pub fn collapse_scc_0_weight(&mut self)
Sourcepub fn kosaraju_scc(&self) -> Vec<Vec<usize>>
pub fn kosaraju_scc(&self) -> Vec<Vec<usize>>
Returns Strongly Connected Components for 0-weight edges using Kosaraju’s algorithm
pub fn contract_graph( &self, sccs: &[Vec<usize>], ) -> (Vec<usize>, Vec<(usize, usize, i32)>, Vec<usize>)
Sourcepub fn isolate_sc_bedrock(&mut self) -> Vec<String>
pub fn isolate_sc_bedrock(&mut self) -> Vec<String>
Continuous daemon that isolates Strongly Cantorian (ZFC-compliant) bedrock by scanning for subgraphs satisfying the x = T(x) constraint (topological self-loops) and severing their outgoing +1 offset edges to reduce computational load.
pub fn topological_sort(&self) -> Option<Vec<usize>>
pub fn classify_subsystems(&self, d: &[i32]) -> (bool, bool)
Sourcepub fn evaluate_topology(
&mut self,
) -> Result<(Vec<i32>, Vec<String>, bool, bool), String>
pub fn evaluate_topology( &mut self, ) -> Result<(Vec<i32>, Vec<String>, bool, bool), String>
Evaluates the topological structure using a hybrid approach. It attempts a fast O(V+E) DAG Shortest Path evaluation first. If the graph contains cycles, it falls back to the O(V*E) Bellman-Ford algorithm to detect negative-weight cycles (Extensionality Collisions).
Sourcepub fn extract_conflict_clauses(&mut self) -> Vec<Vec<usize>>
pub fn extract_conflict_clauses(&mut self) -> Vec<Vec<usize>>
Extract Minimal Conflict Clauses for Vector Superposition (IDL Masking) When Bellman-Ford flags a negative-weight cycle, this identifies the nodes involved so the upper ingestion layer can translate them into a hyperdimensional destructive interference mask.
Trait Implementations§
Source§impl Clone for GraphArena
impl Clone for GraphArena
Source§fn clone(&self) -> GraphArena
fn clone(&self) -> GraphArena
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more