Skip to content

Universe level for Eq in solution to exercise 12 of the MetaM chapter is missing #174

@whxvd

Description

@whxvd

The definition of twelveA uses Expr.const ``Eq []. But Eq is universe-polymorphic. It probably should be Expr.const ``Eq [1] (because Nat : Sort 1).

However,

#eval show MetaM _ from do
  ppExpr (← twelveA)

indeed does evaluate without error when using Expr.const ``Eq [].

The type gets pretty-printed differently ((n : Nat) → Eq Nat n (Nat.add n 1)) than for twelveB (∀ (n : Nat), n = Nat.add n 1). With Expr.const ``Eq [1] it gets pretty-printed in the same way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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