File: conjunction.lisp

package info (click to toggle)
acl2 8.5dfsg-5
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 991,452 kB
  • sloc: lisp: 15,567,759; javascript: 22,820; cpp: 13,929; ansic: 12,092; perl: 7,150; java: 4,405; xml: 3,884; makefile: 3,507; sh: 3,187; ruby: 2,633; ml: 763; python: 746; yacc: 723; awk: 295; csh: 186; php: 171; lex: 154; tcl: 49; asm: 23; haskell: 17
file content (99 lines) | stat: -rw-r--r-- 3,566 bytes parent folder | download | duplicates (6)
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
96
97
98
99
(in-package "ACL2")

#|

  conjunction.lisp
  ~~~~~~~~~~~~~~~~

In this book, we prove the theorems on conjunctive reductions of LTL
formula. In particular, we prove that if an ltl-formula f is the conjunction of
formuals f1 and f2, then the semantics of f with respect to a model m will be
the conjunction of semantics of f1 and f2 wrt m.

|#


(include-book "ltl")

(local
(defthm ltl-conjunction-reduction-1
  (implies (and (ltl-formulap f)
                (equal (len f) 3)
                (equal (second f) '&)
                (ltl-semantics (first f) m)
                (ltl-semantics (third f) m))
           (ltl-semantics f m))
  :hints (("Goal"
           :in-theory (disable compatible-ppath-p)
           :do-not '(eliminate-destructors generalize)
           :do-not-induct t
           :cases ((compatible-ppath-p (ltl-semantics-witness
                                        f m) m)))))

)

(local
(defthm ltl-conjunction-reduction-2
  (implies (and (ltl-formulap f)
                (equal (len f) 3)
                (equal (second f) '&)
                (ltl-semantics f m))
           (ltl-semantics (first f) m))
   :hints (("Goal"
           :in-theory (disable compatible-ppath-p)
           :do-not '(eliminate-destructors generalize)
           :do-not-induct t
           :cases ((compatible-ppath-p (ltl-semantics-witness (first f) m) m)))
          ("Subgoal 1"
           :in-theory (disable compatible-ppath-p ltl-semantics-necc
                               ltl-ppath-semantics-can-be-decomposed-over-conjunctions
                               ltl-semantics)
           :expand (ltl-semantics (first f) m)
           :use ((:instance ltl-semantics-necc
                            (ppath (ltl-semantics-witness (first f) m)))
                 (:instance
                  ltl-ppath-semantics-can-be-decomposed-over-conjunctions
                  (p (ltl-semantics-witness (first f) m)))))))
)

(local
(defthm ltl-conjunction-reduction-3
  (implies (and (ltl-formulap f)
                (equal (len f) 3)
                (equal (second f) '&)
                (ltl-semantics f m))
           (ltl-semantics (third f) m))
  :hints (("Goal"
           :in-theory (disable compatible-ppath-p)
           :do-not '(eliminate-destructors generalize)
           :do-not-induct t
           :cases ((compatible-ppath-p (ltl-semantics-witness (third f) m) m)))
          ("Subgoal 1"
           :in-theory (disable compatible-ppath-p
                               ltl-semantics-necc
                               ltl-ppath-semantics-can-be-decomposed-over-conjunctions
                               ltl-semantics)
           :expand (ltl-semantics (third f) m)
           :use ((:instance ltl-semantics-necc
                            (ppath (ltl-semantics-witness (third f) m)))
                 (:instance
                  ltl-ppath-semantics-can-be-decomposed-over-conjunctions
                  (p (ltl-semantics-witness (third f) m)))))))
)

(local
(in-theory (disable ltl-semantics ltl-formulap
                    ltl-semantics-necc))
)

(DEFTHM ltl-semantics-is-decomposed-over-conjunction
  (implies (and (ltl-formulap f)
                (equal (len f) 3)
                (equal (second f) '&))
           (equal (ltl-semantics f m)
                  (and (ltl-semantics (first f) m)
                       (ltl-semantics (third f) m))))
  :hints (("Goal"
           :use ((:instance ltl-conjunction-reduction-1)
                 (:instance ltl-conjunction-reduction-2)
                 (:instance ltl-conjunction-reduction-3)))))