Skip to content

Type checking of the eval parameter #1447

Description

@bodeveix

We have noticed that eval does not perform type checking anymore on its parameter. For example, the test proof is accepted while the eval parameter is not correctly typed vs the #assume profile. We wonder if it is the expected behaviour?

require open tests.OK.Tactic;

//constant symbol #assume : String → Π [a:Set], (τ a → Tactic) → Tactic;
//builtin "assume" ≔ #assume;

constant symbol OK: Prop;

symbol test [a:Set] (x: τ a) : π OK → π OK ≔
begin
  assume a;
  eval (#assume "x" (λ (x: τ a), #assume "h" (λ (h: π OK), #apply h)));
end;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions