• Top
    • Documentation
    • Books
    • Boolean-reasoning
      • Ipasir
      • Aignet
      • Aig
      • Satlink
        • Sat-solver-options
          • Unsat-checking
          • Check-config
            • Pigeon-hole
              • No-two-in-hole-aux
              • No-others-in-hole
              • Not-both-in-hole
                • No-two-in-any-hole
                • Every-bird-in-hole
                • No-two-in-hole
                • Bird-in-some-hole
                • Bird-in-hole
              • Simple-sat
              • Assert-unsat
              • Assert-sat
          • Config-p
          • Logical-story
          • Dimacs
          • Gather-benchmarks
          • Cnf
          • Satlink-extra-hook
          • Sat
        • Truth
        • Ubdds
        • Bdd
        • Faig
        • Bed
        • 4v
      • Projects
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Pigeon-hole

    Not-both-in-hole

    Signature
    (not-both-in-hole bird1 bird2 hole) → clause
    Arguments
    bird1 — Guard (natp bird1).
    bird2 — Guard (natp bird2).
    hole — Guard (natp hole).
    Returns
    clause — These two birds do not share this hole.
        Type (lit-listp clause).

    Definitions and Theorems

    Function: not-both-in-hole

    (defun not-both-in-hole (bird1 bird2 hole)
      (declare (xargs :guard (and (natp bird1)
                                  (natp bird2)
                                  (natp hole))))
      (let ((__function__ 'not-both-in-hole))
        (declare (ignorable __function__))
        (list (lit-negate (bird-in-hole bird1 hole))
              (lit-negate (bird-in-hole bird2 hole)))))

    Theorem: lit-listp-of-not-both-in-hole

    (defthm lit-listp-of-not-both-in-hole
      (b* ((clause (not-both-in-hole bird1 bird2 hole)))
        (lit-listp clause))
      :rule-classes :rewrite)