packages feed

cpsa-4.4.4: tst/hull-alt.scm

(herald hull-alt (bound 9))
;;;  Wonthull 2:  Demonstrates a subtle incompleteness.
;;;
;;;  From Wonthull 1, the difference here is that
;;; Wonthull 2 should be able to do augmentation with
;;; non-trivial deorigination immediately after the POV.
;;;  Interestingly, Wonthull 2 (without deorigination)
;;; actually finds the missing shape, but via variable
;;; separation.

(defprotocol wonthull2 basic
  (defrole init (vars (a name) (n r-1 r-2 r-3 text))
    (trace
     (send ;;(cat (enc x1 x3 (pubk a)) (enc x3 x2 (pubk a)))
      (cat (enc n r-1 (pubk a))
	   (enc r-2 n (pubk a))))
     (recv
      (enc "okay" n r-3 (pubk a))))
    (uniq-orig n)
    (non-orig (privk a))
  )
  (defrole resp (vars (a name) (y1 y2 y3 text))
     (trace
       (recv (enc y1 y2 (pubk a)) )
       (send (enc "okay" y3 y1 (pubk a))))))

(defskeleton wonthull2
  (vars (a name) (n text) (x1 x2 x3 x4 text))
  (defstrand init 2)
)

(comment
 (defskeleton wonthull2
   (vars (a name) (n text) (x1 x2 x3 x4 text))
   (defstrand init 2 (x2 x3) (x4 x1))
   (defstrand resp 2 (y1 x1) (y2 x3) (y3 x3))
   (precedes ((0 0) (1 0)) ((1 1) (0 1)))
   ))