| 1 |
(set-logic ALL) |
| 2 |
(set-info :status unsat) |
| 3 |
|
| 4 |
(declare-datatypes ((Lst 0)) (((cons (head Int) (tail Lst)) (nil)))) |
| 5 |
|
| 6 |
(define-fun-rec len ((x Lst)) Int (ite ((_ is cons) x) (+ 1 (len (tail x))) 0)) |
| 7 |
|
| 8 |
(assert (= (len (cons 0 nil)) 0)) |
| 9 |
(check-sat) |