Skip to content

Strange error message with function variables #40

@codyroux

Description

@codyroux

The following inductive gives a strange error when generating

inductive Im (f : Nat → Nat) : Nat → Nat → Prop where
| mk (x : Nat) : Im f x (f x)


/-- error: exprToConstructorExpr: We do not support higher order application of f in Expr f x
-/
#guard_msgs(error) in
derive_generator fun f y => ∃ x, Im f x y

This message is confusing: what is a "higher order application"?

A better message is: "variables in application position are not allowed in Im".

A much better thing would be to allow this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions