/usr/share/acl2-8.0dfsg/books/system/update-state.lisp is in acl2-books-source 8.0dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 | ; Lemmas about updates to ACL2's state
; Copyright (C) 2005-2006 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>
;
; update-state.lisp
; This file was originally part of the Unicode library.
;
; Modified 6/18/06 by Matt K. to replace run-times by acl2-oracle.
; Moved by David Rager 1/10/13 from unicode directory.
(in-package "ACL2")
(deftheory statep-functions
'(open-input-channels
open-output-channels
global-table
t-stack
32-bit-integer-stack
big-clock-entry
idates
acl2-oracle
file-clock
readable-files
written-files
read-files
writeable-files
list-all-package-names-lst
user-stobj-alist1
all-boundp
file-clock-p
open-channels-p
read-files-p
readable-files-p
state-p1
writeable-files-p
written-files-p))
(defthm canonicalize-length
(implies (true-listp x)
(equal (length x) (len x))))
(defthm update-open-input-channels-state-lemmas
(implies
(state-p1 state)
(and (true-listp (update-open-input-channels updates state))
(equal (len (update-open-input-channels updates state))
(len state))
(equal (open-input-channels (update-open-input-channels updates state))
updates)
(equal (open-output-channels (update-open-input-channels updates state))
(open-output-channels state))
(equal (global-table (update-open-input-channels updates state))
(global-table state))
(equal (t-stack (update-open-input-channels updates state))
(t-stack state))
(equal (32-bit-integer-stack (update-open-input-channels updates state))
(32-bit-integer-stack state))
(equal (big-clock-entry (update-open-input-channels updates state))
(big-clock-entry state))
(equal (idates (update-open-input-channels updates state))
(idates state))
(equal (acl2-oracle (update-open-input-channels updates state))
(acl2-oracle state))
(equal (file-clock (update-open-input-channels updates state))
(file-clock state))
(equal (readable-files (update-open-input-channels updates state))
(readable-files state))
(equal (written-files (update-open-input-channels updates state))
(written-files state))
(equal (read-files (update-open-input-channels updates state))
(read-files state))
(equal (writeable-files (update-open-input-channels updates state))
(writeable-files state))
(equal (list-all-package-names-lst (update-open-input-channels updates state))
(list-all-package-names-lst state))
(equal (user-stobj-alist1 (update-open-input-channels updates state))
(user-stobj-alist1 state)))))
(defthm update-open-input-channels-preserves-state-p1
(implies (state-p1 state)
(equal (state-p1 (update-open-input-channels updates state))
(open-channels-p updates)))
:hints(("Goal" :in-theory (disable update-open-input-channels
statep-functions)
:use ((:instance state-p1
(x state))
(:instance state-p1
(x (update-open-input-channels updates state)))))))
(local (defthm len-state
(implies (state-p1 state)
(equal (len state) 15))
:hints(("Goal" :expand (state-p1 state)))))
(defthm update-open-output-channels-state-lemmas
(implies
(state-p1 state)
(and (true-listp (update-open-output-channels updates state))
(equal (len (update-open-output-channels updates state))
(len state))
(equal (open-input-channels (update-open-output-channels updates state))
(open-input-channels state))
(equal (open-output-channels (update-open-output-channels updates state))
updates)
(equal (global-table (update-open-output-channels updates state))
(global-table state))
(equal (t-stack (update-open-output-channels updates state))
(t-stack state))
(equal (32-bit-integer-stack (update-open-output-channels updates state))
(32-bit-integer-stack state))
(equal (big-clock-entry (update-open-output-channels updates state))
(big-clock-entry state))
(equal (idates (update-open-output-channels updates state))
(idates state))
(equal (acl2-oracle (update-open-output-channels updates state))
(acl2-oracle state))
(equal (file-clock (update-open-output-channels updates state))
(file-clock state))
(equal (readable-files (update-open-output-channels updates state))
(readable-files state))
(equal (written-files (update-open-output-channels updates state))
(written-files state))
(equal (read-files (update-open-output-channels updates state))
(read-files state))
(equal (writeable-files (update-open-output-channels updates state))
(writeable-files state))
(equal (list-all-package-names-lst (update-open-output-channels updates state))
(list-all-package-names-lst state))
(equal (user-stobj-alist1 (update-open-output-channels updates state))
(user-stobj-alist1 state)))))
(defthm update-open-output-channels-preserves-state-p1
(implies (state-p1 state)
(equal (state-p1 (update-open-output-channels updates state))
(open-channels-p updates)))
:hints(("Goal" :in-theory (disable update-open-output-channels
statep-functions)
:use ((:instance state-p1
(x state))
(:instance state-p1
(x (update-open-output-channels updates state)))))))
(defthm update-global-table-state-lemmas
(implies
(state-p1 state)
(and (true-listp (update-global-table updates state))
(equal (len (update-global-table updates state))
(len state))
(equal (open-input-channels (update-global-table updates state))
(open-input-channels state))
(equal (open-output-channels (update-global-table updates state))
(open-output-channels state))
(equal (global-table (update-global-table updates state))
updates)
(equal (t-stack (update-global-table updates state))
(t-stack state))
(equal (32-bit-integer-stack (update-global-table updates state))
(32-bit-integer-stack state))
(equal (big-clock-entry (update-global-table updates state))
(big-clock-entry state))
(equal (idates (update-global-table updates state))
(idates state))
(equal (acl2-oracle (update-global-table updates state))
(acl2-oracle state))
(equal (file-clock (update-global-table updates state))
(file-clock state))
(equal (readable-files (update-global-table updates state))
(readable-files state))
(equal (written-files (update-global-table updates state))
(written-files state))
(equal (read-files (update-global-table updates state))
(read-files state))
(equal (writeable-files (update-global-table updates state))
(writeable-files state))
(equal (list-all-package-names-lst (update-global-table updates state))
(list-all-package-names-lst state))
(equal (user-stobj-alist1 (update-global-table updates state))
(user-stobj-alist1 state)))))
(defthm update-t-stack-state-lemmas
(implies
(state-p1 state)
(and (true-listp (update-t-stack updates state))
(equal (len (update-t-stack updates state))
(len state))
(equal (open-input-channels (update-t-stack updates state))
(open-input-channels state))
(equal (open-output-channels (update-t-stack updates state))
(open-output-channels state))
(equal (global-table (update-t-stack updates state))
(global-table state))
(equal (t-stack (update-t-stack updates state))
updates)
(equal (32-bit-integer-stack (update-t-stack updates state))
(32-bit-integer-stack state))
(equal (big-clock-entry (update-t-stack updates state))
(big-clock-entry state))
(equal (idates (update-t-stack updates state))
(idates state))
(equal (acl2-oracle (update-t-stack updates state))
(acl2-oracle state))
(equal (file-clock (update-t-stack updates state))
(file-clock state))
(equal (readable-files (update-t-stack updates state))
(readable-files state))
(equal (written-files (update-t-stack updates state))
(written-files state))
(equal (read-files (update-t-stack updates state))
(read-files state))
(equal (writeable-files (update-t-stack updates state))
(writeable-files state))
(equal (list-all-package-names-lst (update-t-stack updates state))
(list-all-package-names-lst state))
(equal (user-stobj-alist1 (update-t-stack updates state))
(user-stobj-alist1 state)))))
(defthm update-t-stack-preserves-state-p1
(implies (state-p1 state)
(equal (state-p1 (update-t-stack updates state))
(true-listp updates)))
:hints(("Goal" :in-theory (disable update-t-stack
statep-functions)
:use ((:instance state-p1
(x state))
(:instance state-p1
(x (update-t-stack updates state)))))))
(defthm update-32-bit-integer-stack-state-lemmas
(implies
(state-p1 state)
(and (true-listp (update-32-bit-integer-stack updates state))
(equal (len (update-32-bit-integer-stack updates state))
(len state))
(equal (open-input-channels (update-32-bit-integer-stack updates state))
(open-input-channels state))
(equal (open-output-channels (update-32-bit-integer-stack updates state))
(open-output-channels state))
(equal (global-table (update-32-bit-integer-stack updates state))
(global-table state))
(equal (t-stack (update-32-bit-integer-stack updates state))
(t-stack state))
(equal (32-bit-integer-stack (update-32-bit-integer-stack updates state))
updates)
(equal (big-clock-entry (update-32-bit-integer-stack updates state))
(big-clock-entry state))
(equal (idates (update-32-bit-integer-stack updates state))
(idates state))
(equal (acl2-oracle (update-32-bit-integer-stack updates state))
(acl2-oracle state))
(equal (file-clock (update-32-bit-integer-stack updates state))
(file-clock state))
(equal (readable-files (update-32-bit-integer-stack updates state))
(readable-files state))
(equal (written-files (update-32-bit-integer-stack updates state))
(written-files state))
(equal (read-files (update-32-bit-integer-stack updates state))
(read-files state))
(equal (writeable-files (update-32-bit-integer-stack updates state))
(writeable-files state))
(equal (list-all-package-names-lst (update-32-bit-integer-stack updates state))
(list-all-package-names-lst state))
(equal (user-stobj-alist1 (update-32-bit-integer-stack updates state))
(user-stobj-alist1 state)))))
(defthm update-32-bit-integer-stack-preserves-state-p1
(implies (state-p1 state)
(equal (state-p1 (update-32-bit-integer-stack updates state))
(32-bit-integer-listp updates)))
:hints(("Goal" :in-theory (disable update-32-bit-integer-stack
statep-functions)
:use ((:instance state-p1
(x state))
(:instance state-p1
(x (update-32-bit-integer-stack updates state)))))))
(defthm update-big-clock-entry-state-lemmas
(implies
(state-p1 state)
(and (true-listp (update-big-clock-entry updates state))
(equal (len (update-big-clock-entry updates state))
(len state))
(equal (open-input-channels (update-big-clock-entry updates state))
(open-input-channels state))
(equal (open-output-channels (update-big-clock-entry updates state))
(open-output-channels state))
(equal (global-table (update-big-clock-entry updates state))
(global-table state))
(equal (t-stack (update-big-clock-entry updates state))
(t-stack state))
(equal (32-bit-integer-stack (update-big-clock-entry updates state))
(32-bit-integer-stack state))
(equal (big-clock-entry (update-big-clock-entry updates state))
updates)
(equal (idates (update-big-clock-entry updates state))
(idates state))
(equal (acl2-oracle (update-big-clock-entry updates state))
(acl2-oracle state))
(equal (file-clock (update-big-clock-entry updates state))
(file-clock state))
(equal (readable-files (update-big-clock-entry updates state))
(readable-files state))
(equal (written-files (update-big-clock-entry updates state))
(written-files state))
(equal (read-files (update-big-clock-entry updates state))
(read-files state))
(equal (writeable-files (update-big-clock-entry updates state))
(writeable-files state))
(equal (list-all-package-names-lst (update-big-clock-entry updates state))
(list-all-package-names-lst state))
(equal (user-stobj-alist1 (update-big-clock-entry updates state))
(user-stobj-alist1 state)))))
(defthm update-big-clock-entry-preserves-state-p1
(implies (state-p1 state)
(equal (state-p1 (update-big-clock-entry updates state))
(integerp updates)))
:hints(("Goal" :in-theory (disable update-big-clock-entry
statep-functions)
:use ((:instance state-p1
(x state))
(:instance state-p1
(x (update-big-clock-entry updates state)))))))
(defthm update-idates-state-lemmas
(implies
(state-p1 state)
(and (true-listp (update-idates updates state))
(equal (len (update-idates updates state))
(len state))
(equal (open-input-channels (update-idates updates state))
(open-input-channels state))
(equal (open-output-channels (update-idates updates state))
(open-output-channels state))
(equal (global-table (update-idates updates state))
(global-table state))
(equal (t-stack (update-idates updates state))
(t-stack state))
(equal (32-bit-integer-stack (update-idates updates state))
(32-bit-integer-stack state))
(equal (big-clock-entry (update-idates updates state))
(big-clock-entry state))
(equal (idates (update-idates updates state))
updates)
(equal (acl2-oracle (update-idates updates state))
(acl2-oracle state))
(equal (file-clock (update-idates updates state))
(file-clock state))
(equal (readable-files (update-idates updates state))
(readable-files state))
(equal (written-files (update-idates updates state))
(written-files state))
(equal (read-files (update-idates updates state))
(read-files state))
(equal (writeable-files (update-idates updates state))
(writeable-files state))
(equal (list-all-package-names-lst (update-idates updates state))
(list-all-package-names-lst state))
(equal (user-stobj-alist1 (update-idates updates state))
(user-stobj-alist1 state)))))
(defthm update-idates-preserves-state-p1
(implies (state-p1 state)
(equal (state-p1 (update-idates updates state))
(integer-listp updates)))
:hints(("Goal" :in-theory (disable update-idates
statep-functions)
:use ((:instance state-p1
(x state))
(:instance state-p1
(x (update-idates updates state)))))))
(defthm update-acl2-oracle-state-lemmas
(implies
(state-p1 state)
(and (true-listp (update-acl2-oracle updates state))
(equal (len (update-acl2-oracle updates state))
(len state))
(equal (open-input-channels (update-acl2-oracle updates state))
(open-input-channels state))
(equal (open-output-channels (update-acl2-oracle updates state))
(open-output-channels state))
(equal (global-table (update-acl2-oracle updates state))
(global-table state))
(equal (t-stack (update-acl2-oracle updates state))
(t-stack state))
(equal (32-bit-integer-stack (update-acl2-oracle updates state))
(32-bit-integer-stack state))
(equal (big-clock-entry (update-acl2-oracle updates state))
(big-clock-entry state))
(equal (idates (update-acl2-oracle updates state))
(idates state))
(equal (acl2-oracle (update-acl2-oracle updates state))
updates)
(equal (file-clock (update-acl2-oracle updates state))
(file-clock state))
(equal (readable-files (update-acl2-oracle updates state))
(readable-files state))
(equal (written-files (update-acl2-oracle updates state))
(written-files state))
(equal (read-files (update-acl2-oracle updates state))
(read-files state))
(equal (writeable-files (update-acl2-oracle updates state))
(writeable-files state))
(equal (list-all-package-names-lst (update-acl2-oracle updates state))
(list-all-package-names-lst state))
(equal (user-stobj-alist1 (update-acl2-oracle updates state))
(user-stobj-alist1 state))))
:hints(("Goal" :in-theory (enable update-acl2-oracle))))
;;; Matt K., 6/18/06: The following comment about run-times is obsolete, as
;;; run-times has been replaced by acl2-oracle:
; as it turns out, update-run-times-preserves-state-p1 is already a theorem,
; apparently provided to us by axioms.lisp or something. but, the current
; version of it is not as strong as below, and has (rational-listp updates) as
; a hypothesis for rewriting (state-p1 (update-run-times updates state)) to t.
; i prefer the stronger version below, so I will go ahead and disable the
; previous version and install mine.
(in-theory (disable update-acl2-oracle-preserves-state-p1))
(defthm update-acl2-oracle-preserves-state-p1-stronger
(implies (state-p1 state)
(equal (state-p1 (update-acl2-oracle updates state))
(true-listp updates)))
:hints(("Goal" :in-theory (disable update-acl2-oracle
statep-functions)
:use ((:instance state-p1
(x state))
(:instance state-p1
(x (update-acl2-oracle updates state)))))))
(defthm update-file-clock-state-lemmas
(implies
(state-p1 state)
(and (true-listp (update-file-clock updates state))
(equal (len (update-file-clock updates state))
(len state))
(equal (open-input-channels (update-file-clock updates state))
(open-input-channels state))
(equal (open-output-channels (update-file-clock updates state))
(open-output-channels state))
(equal (global-table (update-file-clock updates state))
(global-table state))
(equal (t-stack (update-file-clock updates state))
(t-stack state))
(equal (32-bit-integer-stack (update-file-clock updates state))
(32-bit-integer-stack state))
(equal (big-clock-entry (update-file-clock updates state))
(big-clock-entry state))
(equal (idates (update-file-clock updates state))
(idates state))
(equal (acl2-oracle (update-file-clock updates state))
(acl2-oracle state))
(equal (file-clock (update-file-clock updates state))
updates)
(equal (readable-files (update-file-clock updates state))
(readable-files state))
(equal (written-files (update-file-clock updates state))
(written-files state))
(equal (read-files (update-file-clock updates state))
(read-files state))
(equal (writeable-files (update-file-clock updates state))
(writeable-files state))
(equal (list-all-package-names-lst (update-file-clock updates state))
(list-all-package-names-lst state))
(equal (user-stobj-alist1 (update-file-clock updates state))
(user-stobj-alist1 state)))))
(defthm update-file-clock-preserves-state-p1
(implies (state-p1 state)
(equal (state-p1 (update-file-clock updates state))
(file-clock-p updates)))
:hints(("Goal" :use ((:instance state-p1
(x state))
(:instance state-p1
(x (update-file-clock updates state)))))))
; hey, there's no function called update-readable-files!
(defthm update-written-files-state-lemmas
(implies
(state-p1 state)
(and (true-listp (update-written-files updates state))
(equal (len (update-written-files updates state))
(len state))
(equal (open-input-channels (update-written-files updates state))
(open-input-channels state))
(equal (open-output-channels (update-written-files updates state))
(open-output-channels state))
(equal (global-table (update-written-files updates state))
(global-table state))
(equal (t-stack (update-written-files updates state))
(t-stack state))
(equal (32-bit-integer-stack (update-written-files updates state))
(32-bit-integer-stack state))
(equal (big-clock-entry (update-written-files updates state))
(big-clock-entry state))
(equal (idates (update-written-files updates state))
(idates state))
(equal (acl2-oracle (update-written-files updates state))
(acl2-oracle state))
(equal (file-clock (update-written-files updates state))
(file-clock state))
(equal (readable-files (update-written-files updates state))
(readable-files state))
(equal (written-files (update-written-files updates state))
updates)
(equal (read-files (update-written-files updates state))
(read-files state))
(equal (writeable-files (update-written-files updates state))
(writeable-files state))
(equal (list-all-package-names-lst (update-written-files updates state))
(list-all-package-names-lst state))
(equal (user-stobj-alist1 (update-written-files updates state))
(user-stobj-alist1 state)))))
(defthm update-written-files-preserves-state-p1
(implies (state-p1 state)
(equal (state-p1 (update-written-files updates state))
(written-files-p updates)))
:hints(("Goal" :use ((:instance state-p1
(x state))
(:instance state-p1
(x (update-written-files updates state)))))))
(defthm update-read-files-state-lemmas
(implies
(state-p1 state)
(and (true-listp (update-read-files updates state))
(equal (len (update-read-files updates state))
(len state))
(equal (open-input-channels (update-read-files updates state))
(open-input-channels state))
(equal (open-output-channels (update-read-files updates state))
(open-output-channels state))
(equal (global-table (update-read-files updates state))
(global-table state))
(equal (t-stack (update-read-files updates state))
(t-stack state))
(equal (32-bit-integer-stack (update-read-files updates state))
(32-bit-integer-stack state))
(equal (big-clock-entry (update-read-files updates state))
(big-clock-entry state))
(equal (idates (update-read-files updates state))
(idates state))
(equal (acl2-oracle (update-read-files updates state))
(acl2-oracle state))
(equal (file-clock (update-read-files updates state))
(file-clock state))
(equal (readable-files (update-read-files updates state))
(readable-files state))
(equal (written-files (update-read-files updates state))
(written-files state))
(equal (read-files (update-read-files updates state))
updates)
(equal (writeable-files (update-read-files updates state))
(writeable-files state))
(equal (list-all-package-names-lst (update-read-files updates state))
(list-all-package-names-lst state))
(equal (user-stobj-alist1 (update-read-files updates state))
(user-stobj-alist1 state)))))
(defthm update-read-files-preserves-state-p1
(implies (state-p1 state)
(equal (state-p1 (update-read-files updates state))
(read-files-p updates)))
:hints(("Goal" :use ((:instance state-p1
(x state))
(:instance state-p1
(x (update-read-files updates state)))))))
; hey, there's no function called update-writeable-files!
(defthm update-list-all-package-names-lst-state-lemmas
(implies
(state-p1 state)
(and (true-listp (update-list-all-package-names-lst updates state))
(equal (len (update-list-all-package-names-lst updates state))
(len state))
(equal (open-input-channels (update-list-all-package-names-lst updates state))
(open-input-channels state))
(equal (open-output-channels (update-list-all-package-names-lst updates state))
(open-output-channels state))
(equal (global-table (update-list-all-package-names-lst updates state))
(global-table state))
(equal (t-stack (update-list-all-package-names-lst updates state))
(t-stack state))
(equal (32-bit-integer-stack (update-list-all-package-names-lst updates state))
(32-bit-integer-stack state))
(equal (big-clock-entry (update-list-all-package-names-lst updates state))
(big-clock-entry state))
(equal (idates (update-list-all-package-names-lst updates state))
(idates state))
(equal (acl2-oracle (update-list-all-package-names-lst updates state))
(acl2-oracle state))
(equal (file-clock (update-list-all-package-names-lst updates state))
(file-clock state))
(equal (readable-files (update-list-all-package-names-lst updates state))
(readable-files state))
(equal (written-files (update-list-all-package-names-lst updates state))
(written-files state))
(equal (read-files (update-list-all-package-names-lst updates state))
(read-files state))
(equal (writeable-files (update-list-all-package-names-lst updates state))
(writeable-files state))
(equal (list-all-package-names-lst (update-list-all-package-names-lst updates state))
updates)
(equal (user-stobj-alist1 (update-list-all-package-names-lst updates state))
(user-stobj-alist1 state)))))
(defthm update-list-all-package-names-lst-preserves-state-p1
(implies (state-p1 state)
(equal (state-p1 (update-list-all-package-names-lst updates state))
(true-list-listp updates)))
:hints(("Goal" :use ((:instance state-p1
(x state))
(:instance state-p1
(x (update-list-all-package-names-lst updates
state)))))))
(defthm update-user-stobj-alist1-state-lemmas
(implies
(state-p1 state)
(and (true-listp (update-user-stobj-alist1 updates state))
(equal (len (update-user-stobj-alist1 updates state))
(len state))
(equal (open-input-channels (update-user-stobj-alist1 updates state))
(open-input-channels state))
(equal (open-output-channels (update-user-stobj-alist1 updates state))
(open-output-channels state))
(equal (global-table (update-user-stobj-alist1 updates state))
(global-table state))
(equal (t-stack (update-user-stobj-alist1 updates state))
(t-stack state))
(equal (32-bit-integer-stack (update-user-stobj-alist1 updates state))
(32-bit-integer-stack state))
(equal (big-clock-entry (update-user-stobj-alist1 updates state))
(big-clock-entry state))
(equal (idates (update-user-stobj-alist1 updates state))
(idates state))
(equal (acl2-oracle (update-user-stobj-alist1 updates state))
(acl2-oracle state))
(equal (file-clock (update-user-stobj-alist1 updates state))
(file-clock state))
(equal (readable-files (update-user-stobj-alist1 updates state))
(readable-files state))
(equal (written-files (update-user-stobj-alist1 updates state))
(written-files state))
(equal (read-files (update-user-stobj-alist1 updates state))
(read-files state))
(equal (writeable-files (update-user-stobj-alist1 updates state))
(writeable-files state))
(equal (list-all-package-names-lst (update-user-stobj-alist1 updates state))
(list-all-package-names-lst state))
(equal (user-stobj-alist1 (update-user-stobj-alist1 updates state))
updates))))
(defthm update-user-stobj-alist1-preserves-state-p1
(implies (state-p1 state)
(equal (state-p1 (update-user-stobj-alist1 updates state))
(symbol-alistp updates)))
:hints(("Goal" :use ((:instance state-p1
(x state))
(:instance state-p1
(x (update-user-stobj-alist1 updates
state)))))))
(in-theory (disable update-open-input-channels
update-open-output-channels
update-global-table
update-t-stack
update-32-bit-integer-stack
update-big-clock-entry
update-idates
update-acl2-oracle
update-file-clock
update-written-files
update-read-files
update-list-all-package-names-lst
update-user-stobj-alist1))
|