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 190 191 192 193
  
     | 
    
      ; 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 "fertilize")
(%interactive)
(encapsulate
 ()
 (%autoadmit distribute.type1-literalp)
 (%autoadmit distribute.type1-var)
 (%autoadmit distribute.type1-expr)
 (%autoadmit distribute.substitute-type1-literal)
 (%autoadmit distribute.substitute-type1-literal-bldr)
 (local (%enable default
                 distribute.substitute-type1-literal-bldr
                 distribute.substitute-type1-literal
                 distribute.type1-literalp
                 distribute.type1-var
                 distribute.type1-expr))
 (%autoprove booleanp-of-distribute.type1-literalp)
 (%autoprove cons-listp-of-distribute.substitute-type1-literal)
 (%autoprove forcing-logic.term-listp-of-distribute.substitute-type1-literal)
 (%autoprove forcing-logic.term-list-atblp-of-distribute.substitute-type1-literal)
 (%autoprove distribute.substitute-type1-literal-bldr-under-iff)
 (%autoprove forcing-logic.appealp-of-distribute.substitute-type1-literal-bldr)
 (%autoprove forcing-logic.conclusion-of-distribute.substitute-type1-literal-bldr)
 (%autoprove forcing-logic.proofp-of-distribute.substitute-type1-literal-bldr))
(encapsulate
 ()
 (%autoadmit distribute.type2-literalp)
 (%autoadmit distribute.type2-var)
 (%autoadmit distribute.type2-expr)
 (%autoadmit distribute.substitute-type2-literal)
 (%autoadmit distribute.substitute-type2-literal-bldr)
 (local (%enable default
                 distribute.type2-literalp
                 distribute.type2-var
                 distribute.type2-expr
                 distribute.substitute-type2-literal
                 distribute.substitute-type2-literal-bldr))
 (%autoprove booleanp-of-distribute.type2-literalp)
 (%autoprove cons-listp-of-distribute.substitute-type2-literal)
 (%autoprove forcing-logic.term-listp-of-distribute.substitute-type2-literal)
 (%autoprove forcing-logic.term-list-atblp-of-distribute.substitute-type2-literal)
 (%autoprove distribute.substitute-type2-literal-bldr-under-iff)
 (%autoprove forcing-logic.appealp-of-distribute.substitute-type2-literal-bldr)
 (%autoprove forcing-logic.conclusion-of-distribute.substitute-type2-literal-bldr)
 (%autoprove forcing-logic.proofp-of-distribute.substitute-type2-literal-bldr))
(encapsulate
 ()
 (%autoadmit distribute.find-type1-literal)
 (%autoprove distribute.type1-literalp-of-distribute.find-type1-literal
             (%autoinduct distribute.find-type1-literal)
             (%restrict default distribute.find-type1-literal (equal x 'x)))
 (%autoprove forcing-logic.termp-of-distribute.find-type1-literal
             (%autoinduct distribute.find-type1-literal)
             (%restrict default distribute.find-type1-literal (equal x 'x)))
 (%autoprove memberp-of-distribute.find-type1-literal
             (%autoinduct distribute.find-type1-literal)
             (%restrict default distribute.find-type1-literal (equal x 'x))))
(encapsulate
 ()
 (%autoadmit distribute.find-type2-literal)
 (%autoprove distribute.type2-literalp-of-distribute.find-type2-literal
             (%autoinduct distribute.find-type2-literal)
             (%restrict default distribute.find-type2-literal (equal x 'x)))
 (%autoprove forcing-logic.termp-of-distribute.find-type2-literal
             (%autoinduct distribute.find-type2-literal)
             (%restrict default distribute.find-type2-literal (equal x 'x)))
 (%autoprove memberp-of-distribute.find-type2-literal
             (%autoinduct distribute.find-type2-literal)
             (%restrict default distribute.find-type2-literal (equal x 'x))))
(encapsulate
 ()
 (%autoadmit distribute.try-distributing-clause)
 (%autoadmit distribute.try-distributing-clause-bldr)
 (local (%enable default
                 distribute.try-distributing-clause
                 distribute.try-distributing-clause-bldr))
 (%autoprove consp-of-distribute.try-distributing-clause)
 (%autoprove forcing-logic.term-listp-of-distribute.try-distributing-clause)
 (%autoprove forcing-logic.term-list-atblp-of-distribute.try-distributing-clause)
 (%autoprove distribute.try-distributing-clause-bldr-under-iff)
 (%autoprove forcing-logic.appealp-of-distribute.try-distributing-clause-bldr)
 (%autoprove forcing-logic.conclusion-of-distribute.try-distributing-clause-bldr)
 (%autoprove forcing-logic.proofp-of-distribute.try-distributing-clause-bldr))
(%defprojection
 :list (distribute.try-distributing-clause-list x)
 :element (distribute.try-distributing-clause x))
(%autoprove cons-listp-of-distribute.try-distributing-clause-list
            (%cdr-induction x))
(%autoprove forcing-logic.term-list-listp-of-distribute.try-distributing-clause-list
            (%cdr-induction x))
(%autoprove forcing-logic.term-list-list-atblp-of-distribute.try-distributing-clause-list
            (%cdr-induction x))
(encapsulate
 ()
 (%autoadmit distribute.try-distributing-clause-list-bldr)
 (%autoprove forcing-logic.appeal-listp-of-distribute.try-distributing-clause-list-bldr
             (%autoinduct distribute.try-distributing-clause-list-bldr)
             (%restrict default distribute.try-distributing-clause-list-bldr (equal x 'x)))
 (%autoprove forcing-logic.strip-conclusions-of-distribute.try-distributing-clause-list-bldr
             (%autoinduct distribute.try-distributing-clause-list-bldr)
             (%restrict default distribute.try-distributing-clause-list-bldr (equal x 'x)))
 (%autoprove forcing-logic.proof-listp-of-distribute.try-distributing-clause-list-bldr
             (%autoinduct distribute.try-distributing-clause-list-bldr)
             (%restrict default distribute.try-distributing-clause-list-bldr (equal x 'x))))
(%autoadmit tactic.distribute-all-okp)
(%autoprove booleanp-of-tactic.distribute-all-okp
            (%enable default tactic.distribute-all-okp))
(%autoadmit tactic.distribute-all-tac)
(%autoprove forcing-tactic.skeletonp-of-tactic.distribute-all-tac
            (%enable default tactic.distribute-all-tac))
(%autoprove forcing-tactic.distribute-all-okp-of-tactic.distribute-all-tac
            (%enable default
                     tactic.distribute-all-tac
                     tactic.distribute-all-okp))
(encapsulate
 ()
 (%autoadmit tactic.distribute-all-compile)
 (local (%enable default
                 tactic.distribute-all-okp
                 tactic.distribute-all-compile))
 (%autoprove forcing-logic.appeal-listp-of-tactic.distribute-all-compile)
 (%autoprove forcing-logic.strip-conclusions-of-tactic.distribute-all-compile)
 (%autoprove forcing-logic.proof-listp-of-tactic.distribute-all-compile))
(%ensure-exactly-these-rules-are-missing "../../tactics/distribute-all") 
     |