SmokyCoders Research · PML v0.3 · Mathematical model
E–T–I–G equations
Proposed experimental packaging of established math for SAT-3 search. Not a claim that P = NP or P ≠ NP.
1. Unified mathematical structure
PML packages search as one object (call it \(\mathcal{P}\) so it is not confused with “probability” \(p\)):
| Symbol | Meaning | E–T–I–G role |
|---|---|---|
| \(X\) | Boolean configuration space \(\{0,1\}^n\) | G (discrete) |
| \(p\) | Probability on \(X\) (exact or factorized) | I |
| \(G\) | Geometry: Hamming on \(X\); Fisher on parameters | G |
| \(H\) | Unsatisfied-clause energy | E |
| \(F\) | Free-energy functional | E + I |
| \(\Phi\) | Evolution / update operator | T |
Proposed packaging The pieces below that are classical are labeled. What is new is the declarative PML wiring for SAT experiments—not a complexity proof.
2. Geometry (G)
Boolean hypercube
Each corner is one full true/false assignment for \(n\) variables.
Hamming distance
Neighbors: \(d_H(x,y)=1\) (one bit flip). Local search walks these edges.
3. Energy (E)
A 3-SAT instance is \(\Phi_{\mathrm{CNF}} = C_1 \land C_2 \land \cdots \land C_m\). Each clause \(C_j\) has three literals.
Clause indicator
Total energy
Meaning: \(H(x)=0\) if and only if \(x\) satisfies every clause (SAT for this assignment).
Expected energy under a distribution
Individual energy \(H(x)\) is about one assignment. Expected energy is about a whole soft population / belief \(p\).
4. Information (I)
Probability axioms
Shannon entropy
High \(S\) ≈ “still unsure / spread out.” Low \(S\) ≈ “concentrated.” High entropy alone does not mean useful search diversity (Failure F).
5. Free energy and Gibbs measure
Free-energy functional
Equivalently (using \(S(p)=-\sum p\ln p\)):
Here \(\tau > 0\) is an algorithmic temperature (knob), not necessarily physical temperature.
Gibbs distribution (minimizer of \(F\) at fixed \(\tau\))
\(Z(\tau)\) is the partition function. Low \(\tau\) concentrates on low-energy states; high \(\tau\) flattens.
Lagrange-multiplier sketch
Minimize \(F[p]\) subject to \(\sum_x p(x)=1\). Stationarity gives
Analytically derived (classical statistical mechanics). Using it as a SAT search engine is experimental.
6. Factorized Bernoulli model (what the lab runs)
Exact \(p\) over \(2^n\) states is impossible for large \(n\). v0.3 uses independent Bernoullis:
Factorized entropy
Expected clause failure under independence
For a 3-clause, \(\mathbb{E}[E_j]\) is the product of “each literal is false” probabilities. Example: clause \((x_a \lor \neg x_b \lor x_c)\)
Then
Limitation Factorization ignores variable correlations. This is exact for the factorized model, not for the true posterior.
7. Fisher metric and natural gradient
Fisher information metric
Diagonal Fisher for independent Bernoullis
In \(q\)-coordinates:
In logit coordinates \(\theta_i=\mathrm{logit}(q_i)\):
Natural-gradient flow
Under continuous NG flow with \(G \succ 0\) and smooth \(F\), dissipation holds:
Near \(q_i \to 0\) or \(1\), regularize with a floor \(\varepsilon\) (singular / degenerate Fisher). Regularization required
8. Lagrangian / Hamiltonian extension
Proposed dynamics
Mechanically inspired total energy:
Under positive-definite \(G\), time-independent potential, and appropriate damping:
Do not copy constant-metric identities blindly onto time-varying \(G(\theta)\). Global convergence to a satisfying assignment is not established.
9. Time dynamics (T) — discrete updates used in the lab
A. Natural gradient (discrete)
(Implementation may finite-difference \(\nabla F\) and use the diagonal Fisher.)
B. Momentum
C. Energy-only
Same as NG with \(\tau \to 0\) so \(F \approx \langle H\rangle\).
Decode to Boolean assignment
Then run the independent verifier on \(\hat x\) (and optionally on samples from \(q\)).
10. Independent verification (non-negotiable)
The optimizer’s internal \(\langle H\rangle\) is never trusted as a certificate. Optimizer failure is never an UNSAT proof.
pml-core.js). Narrative:
full paper.