Skip to content

Unfolding rejects the names of fields #944

Open
@msaaltink

Description

@msaaltink

I'm not sure why it is not possible to unfold a function defined in a record. For example,

let {{
  type R = {f: [8] -> [8], g: [8] -> [8]}
  r = {f = \x -> x+1, g = \x -> 2*x }:R
  }};

prove_print
  do { unfolding ["r.f"]; w4_unint_z3 ["r"]; }
  {{ \x -> r.f (r.g x) != r.g x }};

results in the error

Could not resolve name: "r.f"

Metadata

Metadata

Assignees

No one assigned

    Labels

    subsystem: saw-coreIssues related to the saw-core representation or the saw-core subsystemtype: enhancementIssues describing an improvement to an existing feature or capability

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions