11developer11/Spectral-Manifold-Methods-for-SAT-Solving

Python

0

3 commits

updated Sep 19, 2026

See the code

See what people are saying (1)

SourceMessageScoreDate

A 137ms Sparse-Matrix 3-SAT Solver for 10k Variables

1

Sep 19, 2026

README

A Spectral Decomposition and Manifold Relaxation Framework for 3-SAT Optimization

Shamil Khalilov / 11developer11 September 2026

  • Computational Complexity / Heuristic Optimization

Traditional Boolean Satisfiability (SAT) solvers utilize deterministic branching and backtracking routines (e.g., Conflict-Driven Clause Learning), which scale exponentially $O(2^N)$ in the worst-case scenario. This repository presents a novel polynomial-time heuristic framework that map discrete logical constraints into a continuous vector space, bypassing combinatorial tree searches entirely through spectral analysis and deterministic manifold relaxation.

The algorithm operates via three distinct core mathematical phases:

  1. Let $M$ be an $m \times n$ incidence matrix representing a 3-SAT problem space, where non-zero entries denote variable polarities within each clause. We compute the symmetric semi-positive definite covariance matrix $W = M^T M$. This transformation encodes the global intersection density and structural overlaps of the constraint network into a unified continuous topology.

  2. Rather than evaluating individual clauses sequentially, the framework utilizes sparse Lanczos iterations to compute the principal eigenvector ($v_{max}$) corresponding to the largest magnitude eigenvalue of $W$. This spectral projection isolates the dominant directional tendencies (the "principal highways") dictates by the interlocking constraint matrices.

  3. The problem space is relaxed to a continuous bounding box $[-1, 1]^n$. A deterministic local minimization evaluates the geometric proximity between the principal spectral highway and boundary configurations. The continuous solution wave is subsequently projected back into discrete space via a sign-mapping operation ($\text{sgn}(v)$), mapping continuous trajectories straight to binary values (+1 for True, -1 for False) without backtracking loops.

Evaluated on a standard consumer desktop processor architecture:

  • 1,000 Variables / 4,000 Constraints: ~2,118 ms (Dense Array Architecture)
  • 10,000 Variables / 40,000 Constraints: 137.83 ms (Compressed Sparse Row Mesh)
  • Algorithmic Complexity: Strictly Polynomial-Time ($O(N^3)$ bounds for spectral approximation)
  • Backtracking / Branching Loops Traversed: Zero

While empirically robust across large-scale random 3-SAT instances, this solver remains a heuristic approximation. The author explicitly invites members of the theoretical computer science and discrete mathematics communities to fork this repository and test the robustness of the continuous-to-discrete relaxation boundary. We are actively seeking highly non-convex, malicious paradox configurations (e.g., specific unsatisfiable industrial cores) to evaluate potential false-negative failure rates under sign-snapping conditions.

Update: I have committed an automated stress-test module (stress_test.py) to the repository targeting the critical phase transition boundary (M/N ≈ 4.26) where 3-SAT problems exhibit peak complexity.

Here are the direct empirical metrics from running the test suite on my machine:

  • N=1,000 vars | M=4,260 clauses: 18.63 ms | 80.21% precision
  • N=5,000 vars | M=21,300 clauses: 187.17 ms | 80.56% precision
  • N=20,000 vars | M=85,200 clauses: 512.92 ms | 80.81% precision

The core spectral sorting time scales beautifully within polynomial limits (O(N^3)). The ~19% variance represents the exact non-convexity gap described in the documentation.

I welcome the community to test the script and inspect how the principal eigenvector maps the global constraint network under extreme density.

Contributors

11developer11

3 commits

11developer11/Spectral-Manifold-Methods-for-SAT-Solving

Python

0

3 commits

updated Sep 19, 2026

See the code

See what people are saying (1)

SourceMessageScoreDate

A 137ms Sparse-Matrix 3-SAT Solver for 10k Variables

1

Sep 19, 2026

README

A Spectral Decomposition and Manifold Relaxation Framework for 3-SAT Optimization

Shamil Khalilov / 11developer11 September 2026

  • Computational Complexity / Heuristic Optimization

Traditional Boolean Satisfiability (SAT) solvers utilize deterministic branching and backtracking routines (e.g., Conflict-Driven Clause Learning), which scale exponentially $O(2^N)$ in the worst-case scenario. This repository presents a novel polynomial-time heuristic framework that map discrete logical constraints into a continuous vector space, bypassing combinatorial tree searches entirely through spectral analysis and deterministic manifold relaxation.

The algorithm operates via three distinct core mathematical phases:

  1. Let $M$ be an $m \times n$ incidence matrix representing a 3-SAT problem space, where non-zero entries denote variable polarities within each clause. We compute the symmetric semi-positive definite covariance matrix $W = M^T M$. This transformation encodes the global intersection density and structural overlaps of the constraint network into a unified continuous topology.

  2. Rather than evaluating individual clauses sequentially, the framework utilizes sparse Lanczos iterations to compute the principal eigenvector ($v_{max}$) corresponding to the largest magnitude eigenvalue of $W$. This spectral projection isolates the dominant directional tendencies (the "principal highways") dictates by the interlocking constraint matrices.

  3. The problem space is relaxed to a continuous bounding box $[-1, 1]^n$. A deterministic local minimization evaluates the geometric proximity between the principal spectral highway and boundary configurations. The continuous solution wave is subsequently projected back into discrete space via a sign-mapping operation ($\text{sgn}(v)$), mapping continuous trajectories straight to binary values (+1 for True, -1 for False) without backtracking loops.

Evaluated on a standard consumer desktop processor architecture:

  • 1,000 Variables / 4,000 Constraints: ~2,118 ms (Dense Array Architecture)
  • 10,000 Variables / 40,000 Constraints: 137.83 ms (Compressed Sparse Row Mesh)
  • Algorithmic Complexity: Strictly Polynomial-Time ($O(N^3)$ bounds for spectral approximation)
  • Backtracking / Branching Loops Traversed: Zero

While empirically robust across large-scale random 3-SAT instances, this solver remains a heuristic approximation. The author explicitly invites members of the theoretical computer science and discrete mathematics communities to fork this repository and test the robustness of the continuous-to-discrete relaxation boundary. We are actively seeking highly non-convex, malicious paradox configurations (e.g., specific unsatisfiable industrial cores) to evaluate potential false-negative failure rates under sign-snapping conditions.

Update: I have committed an automated stress-test module (stress_test.py) to the repository targeting the critical phase transition boundary (M/N ≈ 4.26) where 3-SAT problems exhibit peak complexity.

Here are the direct empirical metrics from running the test suite on my machine:

  • N=1,000 vars | M=4,260 clauses: 18.63 ms | 80.21% precision
  • N=5,000 vars | M=21,300 clauses: 187.17 ms | 80.56% precision
  • N=20,000 vars | M=85,200 clauses: 512.92 ms | 80.81% precision

The core spectral sorting time scales beautifully within polynomial limits (O(N^3)). The ~19% variance represents the exact non-convexity gap described in the documentation.

I welcome the community to test the script and inspect how the principal eigenvector maps the global constraint network under extreme density.

Contributors

11developer11

3 commits

Languages

Python

100.0%