; Automatically generated by map2smt (set-logic HORN) (declare-datatypes ((listOfInt 0) ) (((cons-listOfInt (head-listOfInt Int) (tail-listOfInt listOfInt)) (nil-listOfInt)))) (declare-fun adt_new1 (listOfInt listOfInt Bool) Bool) (declare-fun leq (Int Int Bool) Bool) (declare-fun map_not (Bool Bool) Bool) (declare-fun butlast (listOfInt listOfInt) Bool) (declare-fun append (listOfInt listOfInt listOfInt) Bool) (declare-fun last (listOfInt Int) Bool) (declare-fun ff () Bool) (assert (forall ( (A Int) (B listOfInt) (C Bool) ) (=> (= C false) (adt_new1 nil-listOfInt (cons-listOfInt A B) C) ) ) ) (assert (forall ( (A Int) (B listOfInt) (C Bool) ) (=> (= C false) (adt_new1 (cons-listOfInt A B) nil-listOfInt C) ) ) ) (assert (forall ( (A Bool) ) (=> (= A true) (adt_new1 nil-listOfInt nil-listOfInt A) ) ) ) (assert (forall ( (A Int) (B listOfInt) (C Int) (D listOfInt) (E Bool) ) (=> (and (= E false) (>= (- C A) 1) ) (adt_new1 (cons-listOfInt A B) (cons-listOfInt C D) E) ) ) ) (assert (forall ( (A Int) (B listOfInt) (C Int) (D listOfInt) (E Bool) ) (=> (and (= E false) (<= (- C A) (- 1)) ) (adt_new1 (cons-listOfInt A B) (cons-listOfInt C D) E) ) ) ) (assert (forall ( (A Int) (B listOfInt) (C listOfInt) (D Bool) ) (=> (adt_new1 B C D) (adt_new1 (cons-listOfInt A B) (cons-listOfInt A C) D) ) ) ) (assert (forall ( (A Bool) (B Bool) ) (=> (and (= B false) (= A true) ) (map_not A B) ) ) ) (assert (forall ( (A Bool) (B Bool) ) (=> (and (= B true) (= A false) ) (map_not A B) ) ) ) (assert (butlast nil-listOfInt nil-listOfInt) ) (assert (forall ( (A Int) ) (butlast (cons-listOfInt A nil-listOfInt) nil-listOfInt) ) ) (assert (forall ( (A Int) (B Int) (C listOfInt) (D listOfInt) ) (=> (butlast (cons-listOfInt B C) D) (butlast (cons-listOfInt A (cons-listOfInt B C)) (cons-listOfInt A D)) ) ) ) (assert (forall ( (A listOfInt) ) (append nil-listOfInt A A) ) ) (assert (forall ( (A Int) (B listOfInt) (C listOfInt) (D listOfInt) ) (=> (append B C D) (append (cons-listOfInt A B) C (cons-listOfInt A D)) ) ) ) (assert (forall ( (A Int) ) (last (cons-listOfInt A nil-listOfInt) A) ) ) (assert (forall ( (A Int) (B Int) (C listOfInt) (D Int) ) (=> (last (cons-listOfInt B C) D) (last (cons-listOfInt A (cons-listOfInt B C)) D) ) ) ) (assert (forall ( (A Bool) (B Int) (C listOfInt) (D Int) (E listOfInt) (F listOfInt) ) (=> (and (= A false) (last (cons-listOfInt B C) D) (append (cons-listOfInt B C) (cons-listOfInt D nil-listOfInt) E) (butlast E F) (adt_new1 (cons-listOfInt B C) F A) ) ff ) ) ) (assert (not ff)) (check-sat)