summaryrefslogtreecommitdiff
path: root/test/regress/regress0/fmf/fc-pigeonhole19.smt2
blob: f145013d8539a7edec338ac2b123460b5e1d380c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
(set-logic UFC)
(set-info :status unsat)

(declare-sort P 0)
(declare-sort H 0)

(declare-fun p () P)
(declare-fun h () H)

; pigeonhole using native cardinality constraints
(assert (fmf.card p 19))
(assert (not (fmf.card p 18)))
(assert (fmf.card h 18))
(assert (not (fmf.card h 17)))

; each pigeon has different holes
(declare-fun f (P) H)
(assert (forall ((p1 P) (p2 P)) (=> (not (= p1 p2)) (not (= (f p1) (f p2))))))

(check-sat)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback