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✝¹)
    Equations
    Instances For
      @[inline]
      Equations
      Instances For
        @[inline]
        Equations
        Instances For
          @[inline]
          Equations
          Instances For
            @[inline]
            Equations
            Instances For
              @[inline]
              Equations
              Instances For
                @[inline]
                Equations
                Instances For
                  @[inline]
                  Equations
                  Instances For
                    @[inline]
                    Equations
                    Instances For
                      @[inline]
                      Equations
                      Instances For
                        @[inline]
                        Equations
                        Instances For
                          @[inline]
                          Equations
                          Instances For
                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For
                              Instances For
                                @[instance_reducible]
                                Equations
                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For

                                  An incremental SAT solver.

                                  Instances For

                                    Allocate a new SAT solver.

                                    Equations
                                    Instances For

                                      Get the current IPASIR state of the solver.

                                      Equations
                                      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
                                            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.

                                            Equations
                                            • One or more equations did not get rendered due to their size.
                                            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

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

                                                Equations
                                                • One or more equations did not get rendered due to their size.
                                                Instances For

                                                  Reset assumptions made via assume explicitily.

                                                  Equations
                                                  Instances For

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

                                                    Equations
                                                    Instances For
                                                      Equations
                                                      • One or more equations did not get rendered due to their size.
                                                      Instances For
                                                        Equations
                                                        • One or more equations did not get rendered due to their size.
                                                        Instances For
                                                          Equations
                                                          • One or more equations did not get rendered due to their size.
                                                          Instances For
                                                            Equations
                                                            • One or more equations did not get rendered due to their size.
                                                            Instances For