Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declaration parameters example not working as expected #82

Open
kai-e opened this issue May 5, 2021 · 1 comment
Open

Declaration parameters example not working as expected #82

kai-e opened this issue May 5, 2021 · 1 comment

Comments

@kai-e
Copy link

kai-e commented May 5, 2021

I've tried to cargo-cult the declaration parameter example (groups) from the PVS 6.0 release notes to define monotone functions:

mon_gen: THEORY
BEGIN
  T[U: TYPE+]: TYPE+ FROM U
  poT[U: TYPE+]: TYPE = (partial_order?[T[U]])
  monontone?[S, D: TYPE+](leqS: poT[S], leqT: poT[D])(f: [T[S] -> T[D]]): bool =
    FORALL(s1, s1: T[S]): leqS(s1, s2) IMPLIES leqT(f(s1), f(s2))
END mon_gen

This parses but doesn't typecheck. The error is

Break: maybe-instantiate-from-decl-formals*

which is the same error I get when running the typchecker over the groups example. This could be just a documentation bug or a regression in PVS 7.1.

@samowre
Copy link
Contributor

samowre commented May 5, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants