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 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189
|
; Milawa - A Reflective Theorem Prover
; Copyright (C) 2005-2009 Kookamara LLC
;
; Contact:
;
; Kookamara LLC
; 11410 Windermere Meadows
; Austin, TX 78759, USA
; http://www.kookamara.com/
;
; License: (An MIT/X11-style license)
;
; Permission is hereby granted, free of charge, to any person obtaining a
; copy of this software and associated documentation files (the "Software"),
; to deal in the Software without restriction, including without limitation
; the rights to use, copy, modify, merge, publish, distribute, sublicense,
; and/or sell copies of the Software, and to permit persons to whom the
; Software is furnished to do so, subject to the following conditions:
;
; The above copyright notice and this permission notice shall be included in
; all copies or substantial portions of the Software.
;
; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
; FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
; DEALINGS IN THE SOFTWARE.
;
; Original author: Jared Davis <jared@kookamara.com>
(in-package "MILAWA")
(include-book "primary-eqtrace")
(include-book "secondary-eqtrace")
(include-book "transitivity-eqtraces")
(include-book "weakening-eqtrace")
(include-book "direct-iff-eqtrace")
(include-book "negative-iff-eqtrace")
(%interactive)
(%autoadmit rw.eqtrace-step-okp)
(%autoprove booleanp-of-rw.eqtrace-step-okp
(%enable default rw.eqtrace-step-okp))
(%autoadmit rw.flag-eqtrace-okp)
(%autoadmit rw.eqtrace-okp)
(%autoadmit rw.eqtrace-list-okp)
(%autoprove definition-of-rw.eqtrace-okp
(%restrict default rw.flag-eqtrace-okp (equal x 'x))
(%enable default rw.eqtrace-okp rw.eqtrace-list-okp))
(%autoprove definition-of-rw.eqtrace-list-okp
(%restrict default rw.flag-eqtrace-okp (equal x 'x))
(%enable default rw.eqtrace-okp rw.eqtrace-list-okp))
(%autoprove rw.flag-eqtrace-okp-of-trace
(%enable default rw.eqtrace-okp))
(%autoprove rw.flag-eqtrace-okp-of-list
(%enable default rw.eqtrace-list-okp))
(%autoprove lemma-for-booleanp-of-rw.eqtrace-okp
(%rw.flag-eqtracep-induction flag x)
(%restrict default definition-of-rw.eqtrace-okp (equal x 'x))
(%restrict default definition-of-rw.eqtrace-list-okp (equal x 'x)))
(%autoprove booleanp-of-rw.eqtrace-okp
(%use (%instance (%thm lemma-for-booleanp-of-rw.eqtrace-okp)
(flag 'trace))))
(%autoprove booleanp-of-rw.eqtrace-list-okp
(%use (%instance (%thm lemma-for-booleanp-of-rw.eqtrace-okp)
(flag 'list))))
(%autoprove rw.eqtrace-list-okp-when-not-consp
(%restrict default definition-of-rw.eqtrace-list-okp (equal x 'x)))
(%autoprove rw.eqtrace-list-okp-of-cons
(%restrict default definition-of-rw.eqtrace-list-okp (equal x '(cons a x))))
(%autoprove rw.eqtrace-step-okp-of-nil
(%enable default rw.eqtrace-step-okp))
(%autoprove rw.eqtrace-okp-of-nil
(%restrict default definition-of-rw.eqtrace-okp (equal x ''nil)))
(%deflist rw.eqtrace-list-okp (x box)
(rw.eqtrace-okp x box))
(%autoprove forcing-rw.eqtrace-list-okp-of-rw.eqtrace-subtraces
(%restrict default definition-of-rw.eqtrace-okp (equal x 'x)))
(%autoprove rw.primary-eqtrace-okp-when-empty-box
(%enable default rw.primary-eqtrace-okp))
(%autoprove rw.secondary-eqtrace-okp-when-empty-box
(%enable default rw.secondary-eqtrace-okp))
(%autoprove lemma-for-rw.eqtrace-okp-when-empty-box
(%rw.flag-eqtracep-induction flag x)
(%restrict default definition-of-rw.eqtrace-okp (equal x 'x))
(%auto)
(%forcingp nil)
(%enable default
rw.eqtrace-step-okp
rw.trans1-eqtrace-okp
rw.trans2-eqtrace-okp
rw.trans3-eqtrace-okp
rw.weakening-eqtrace-okp
rw.direct-iff-eqtrace-okp
rw.negative-iff-eqtrace-okp))
(%autoprove rw.eqtrace-okp-when-empty-box
(%use (%instance (%thm lemma-for-rw.eqtrace-okp-when-empty-box)
(flag 'trace))))
(%autoprove rw.eqtrace-list-okp-when-empty-box
(%use (%instance (%thm lemma-for-rw.eqtrace-okp-when-empty-box)
(flag 'list))))
(encapsulate
()
(local (%enable default rw.eqtrace-step-okp))
(%autoprove forcing-rw.eqtrace-okp-of-rw.primary-eqtrace
(%restrict default definition-of-rw.eqtrace-okp
(memberp x '((rw.primary-eqtrace okp nhyp)
(rw.primary-eqtrace 't nhyp)))))
(%autoprove forcing-rw.eqtrace-okp-of-rw.secondary-eqtrace
(%restrict default definition-of-rw.eqtrace-okp
(memberp x '((rw.secondary-eqtrace okp nhyp)
(rw.secondary-eqtrace 't nhyp)))))
(%autoprove forcing-rw.eqtrace-okp-of-rw.trans1-eqtrace
(%restrict default definition-of-rw.eqtrace-okp (equal x '(rw.trans1-eqtrace iffp x y))))
(%autoprove forcing-rw.eqtrace-okp-of-rw.trans2-eqtrace
(%restrict default definition-of-rw.eqtrace-okp (equal x '(rw.trans2-eqtrace iffp x y))))
(%autoprove forcing-rw.eqtrace-okp-of-rw.trans3-eqtrace
(%restrict default definition-of-rw.eqtrace-okp (equal x '(rw.trans3-eqtrace iffp x y))))
(%autoprove forcing-rw.eqtrace-okp-of-rw.weakening-eqtrace
(%restrict default definition-of-rw.eqtrace-okp (equal x '(rw.weakening-eqtrace x))))
(%autoprove forcing-rw.eqtrace-okp-of-rw.direct-iff-eqtrace
(%restrict default definition-of-rw.eqtrace-okp
(memberp x '((rw.direct-iff-eqtrace okp nhyp)
(rw.direct-iff-eqtrace 't nhyp)))))
(%autoprove forcing-rw.eqtrace-okp-of-rw.negative-iff-eqtrace
(%restrict default definition-of-rw.eqtrace-okp
(memberp x '((rw.negative-iff-eqtrace okp nhyp)
(rw.negative-iff-eqtrace 't nhyp))))))
(%autoadmit rw.eqtrace-formula)
(%autoprove forcing-logic.formulap-of-rw.eqtrace-formula
(%enable default rw.eqtrace-formula))
(%autoprove forcing-logic.formula-atblp-of-rw.eqtrace-formula
(%enable default rw.eqtrace-formula))
(%defprojection :list (rw.eqtrace-formula-list x box)
:element (rw.eqtrace-formula x box))
(%autoprove forcing-logic.formula-listp-of-rw.eqtrace-formula-list
(%cdr-induction x))
(%autoprove forcing-logic.formula-list-atblp-of-rw.eqtrace-formula
(%cdr-induction x))
(%ensure-exactly-these-rules-are-missing "../../rewrite/assms/eqtrace-okp")
|