summaryrefslogtreecommitdiff
path: root/proofs/signatures/example-quant.plf
blob: 086633be960b98a53a398e522a1e96a6b70d8d3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
; to check, run : lfsc sat.plf smt.plf th_base.plf example.plf

; --------------------------------------------------------------------------------
; literals :
; L1 : forall x. x != x
; L2 : t = t

; input :
; L1

; (instantiation) lemma : 
; L1 => L2

; theory conflicts :
; ~L2


;  With the theory lemma, the input is unsatisfiable.
; --------------------------------------------------------------------------------


; (0) -------------------- term declarations -----------------------------------

(check
(% s sort
(% t (term s)


; (1) -------------------- input formula -----------------------------------

(% x (term s)
(% A1 (th_holds (forall _ x (not (= _ x x))))



; (2) ------------------- specify that the following is a proof of the empty clause -----------------

(: (holds cln)



; (3) -------------------- theory lemmas prior to rewriting/preprocess/CNF -----------------
;     ---  these should introduce (th_holds ...)


; instantiation lemma
(inst _ _ _ t (not (= _ t t)) A1 (\ A2




; (4) -------------------- map theory literals to boolean variables
;     --- maps all theory literals involved in proof to boolean literals

(decl_atom (forall _ x (not (= _ x x))) (\ v1 (\ a1
(decl_atom (= _ t t) (\ v2 (\ a2




; (5) -------------------- theory conflicts ---------------------------------------------
;     ---  these should introduce (holds ...)

(satlem _ _
(asf _ _ _ a2 (\ l2
(clausify_false

   (contra _ (refl _ t) l2)
   
))) (\ CT1
; CT1 is the clause ( v2 )


; (6) -------------------- clausification -----------------------------------------
;     ---  these should introduce (holds ...)

(satlem _ _
(ast _ _ _ a2 (\ l2
(clausify_false

  (contra _ l2 A2)

))) (\ C1
; C1 is the clause ( ~v2 )


; (7) -------------------- resolution proof ------------------------------------------------------------

(satlem_simplify _ _ _

(R _ _ CT1 C1 v2)

(\ x x))

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