SRI-CSL / PVS

The People's Verification System
http://pvs.csl.sri.com
GNU General Public License v2.0
132 stars 32 forks source link

Partial theory instantiation #66

Open disteph opened 4 years ago

disteph commented 4 years ago

Just to record it on github:

a: theory
begin

  t : type
  t2 : type

  interface : [ t -> setof[t2]]

end a

b: theory
begin

  t2 : type = { v1, v2 }

  importing a{{ t2     := t2,
                interface   := lambda (R : t) : lambda (i : t2) : true }}

end b

is supposed to type-check, unless I'm mistaken, even though t is not instantiated.