Skip to content
Snippets Groups Projects
quote.lp 561 B
Newer Older
gabrielhdt's avatar
gabrielhdt committed
require open
  personoj.encodings.lhol
  personoj.encodings.pvs_cert
gabrielhdt's avatar
gabrielhdt committed
require personoj.encodings.deferred as Deferred
gabrielhdt's avatar
gabrielhdt committed

gabrielhdt's avatar
gabrielhdt committed
constant symbol T: Set
gabrielhdt's avatar
gabrielhdt committed
symbol t: η T
symbol f: η (T ~> T)
gabrielhdt's avatar
gabrielhdt committed
constant symbol S: Set
gabrielhdt's avatar
gabrielhdt committed
symbol s: η S

set flag "print_implicits" on
gabrielhdt's avatar
gabrielhdt committed
definition qu_ko ≔ Deferred.app (Deferred.quote f) (Deferred.quote s)
compute Deferred.unquote qu_ko
gabrielhdt's avatar
gabrielhdt committed

gabrielhdt's avatar
gabrielhdt committed
definition qu_ok ≔ Deferred.app (Deferred.quote f) (Deferred.quote t)
compute Deferred.unquote qu_ok

compute Deferred.quote {T ~> T} (λx:η T, f x)
gabrielhdt's avatar
gabrielhdt committed

symbol lor: Deferred.t bool ⇒ Deferred.t bool ⇒ Bool