• 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
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Pigeon-hole

    Bird-in-hole

    Signature
    (bird-in-hole bird hole) → lit
    Arguments
    bird — Guard (natp bird).
    hole — Guard (natp hole).
    Returns
    lit — This bird is in this hole.
        Type (litp lit).

    Definitions and Theorems

    Function: bird-in-hole

    (defun bird-in-hole (bird hole)
      (declare (xargs :guard (and (natp bird) (natp hole))))
      (let ((__function__ 'bird-in-hole))
        (declare (ignorable __function__))
        (b* ((var (lnfix (acl2::hl-nat-combine bird hole))))
          (make-lit var 0))))

    Theorem: litp-of-bird-in-hole

    (defthm litp-of-bird-in-hole
      (b* ((lit (bird-in-hole bird hole)))
        (litp lit))
      :rule-classes :rewrite)