Documentation

Lean.Cadical.Basic

This module provides a thin wrapper around CaDiCaL's C++ FFI, allowing it to interact with the CNF API from Std.Sat.CNF.

The IPASIR state of the solver.

Instances For
    def Lean.Cadical.instDecidableEqState.decEq (x✝ x✝¹ : State) :
    Decidable (x✝ = x✝¹)
    Instances For
      @[instance_reducible]
      @[inline]
      Instances For
        @[inline]
        Instances For
          @[inline]
          Instances For
            @[inline]
            Instances For
              @[inline]
              Instances For
                @[inline]
                Instances For
                  @[inline]
                  Instances For
                    @[inline]
                    Instances For
                      @[inline]
                      Instances For
                        @[inline]
                        Instances For
                          @[inline]
                          Instances For
                            @[inline]
                            Instances For
                              Instances For
                                @[instance_reducible]

                                An incremental SAT solver.

                                Instances For

                                  Allocate a new SAT solver.

                                  Instances For

                                    Get the current IPASIR state of the solver.

                                    Instances For

                                      Add a clause to the solver.

                                      Instances For

                                        Check whether the formula is currently inconsistent (potentially under assumptions).

                                        Instances For
                                          def Lean.Cadical.Solver.assume (s : Solver) (lit : Nat) (pol : Bool) :

                                          Add a new assumption literal to the solver, reset upon the next call to solve.

                                          Instances For

                                            Run the SAT solver on current formula and assumptions.

                                            Instances For

                                              Obtain the value of a literal in the current model if it exists.

                                              Instances For

                                                Reset assumptions made via assume explicitily.

                                                Instances For

                                                  Query the current status (not to be confused with the IPASIR state) of the oslver.

                                                  Instances For
                                                    Instances For