Skip to content

strict_on_args on recursive function #3234

Open
@mtzguido

Description

@mtzguido
[@@strict_on_arguments [0]]
let rec cd (x:nat) : nat =
  if x = 0 then 0 else 1 + cd (x-1)

#push-options "--no_smt"
let _ = assert_norm (cd 1 > 0)
#pop-options

This should work, but gets stuck after the first iteration. The problem is a Tm_lazy node preventing the reduction, pushing a fix soon.

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