Skip to content

Unfold cannot unfold local slprop definitions #369

@gebner

Description

@gebner
module LocalUnfold
#lang-pulse
open Pulse

fn foo (x: ref nat) (vx0: erased nat)
  requires pts_to x vx0
  ensures exists* (vx: nat). pts_to x vx
{
  let my_inv = (fun (k: nat) -> pts_to x k);
  fold my_inv vx0; // Cannot unfold my_inv vx0, the head is not an fvar
  unfold my_inv;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions