This module provides a thin wrapper around CaDiCaL's C++ FFI, allowing it to interact with the CNF
API from Std.Sat.CNF.
@[instance_reducible]
Equations
@[instance_reducible]
@[instance_reducible]
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[instance_reducible]
Equations
- Lean.Cadical.State.instToString = { toString := Lean.Cadical.State.toString }
@[instance_reducible]
Equations
@[instance_reducible]
@[instance_reducible]
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[instance_reducible]
Equations
- Lean.Cadical.instReprStatus = { reprPrec := Lean.Cadical.instReprStatus.repr }
Equations
Instances For
Equations
- Lean.Cadical.Status.satisfiable.toString = "SAT"
- Lean.Cadical.Status.unsatisfiable.toString = "UNSAT"
- Lean.Cadical.Status.unknown.toString = "UNKNOWN"
Instances For
@[instance_reducible]
Equations
- Lean.Cadical.Status.instToString = { toString := Lean.Cadical.Status.toString }
Allocate a new SAT solver.
Equations
- Lean.Cadical.Solver.new = do let __do_lift ← Lean.Cadical.Internal.Solver.new pure { solver := __do_lift }
Instances For
Add a clause to the solver.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Check whether the formula is currently inconsistent (potentially under assumptions).
Equations
Instances For
Run the SAT solver on current formula and assumptions.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Query the current status (not to be confused with the IPASIR state) of the oslver.
Equations
- s.status = do let status ← (Lean.Cadical.Solver.solver✝ s).status pure (Lean.Cadical.Status.ofInternal✝ status)
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Equations
- s.getOption opt = (Lean.Cadical.Solver.solver✝ s).get opt
Instances For
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.