Module logicng

Class UNSATCore<T extends Proposition>

  • Type Parameters:
    T - the type of the core's propositions

    public final class UNSATCore<T extends Proposition>
    extends Object
    An unsatisfiable core (can be a minimal unsatisfiable sub-formula).
    Since:
    1.1
    Version:
    1.3
    • Constructor Detail

      • UNSATCore

        public UNSATCore​(List<T> propositions,
                         boolean isMUS)
        Constructs a new unsatisfiable core.
        Parameters:
        propositions - the propositions of the core
        isMUS - true if it is a MUS and false if it is unknown whether it is a MUS.
    • Method Detail

      • propositions

        public List<T> propositions()
        Returns the propositions of this MUS.
        Returns:
        the propositions of this MUS
      • isMUS

        public boolean isMUS()
        Returns true if this core is a MUS and false if it is unknown whether it is a MUS. Note, if set to false this core might be a MUS, but it is not yet verified.
        Returns:
        true if this core is a MUS and false if it is unknown whether it is a MUS.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object