Skip to content

Commit c77d29f

Browse files
avoid ℕ notation
Updated type annotations from `ℕ` to `Nat` for delabUnary and delabBinary functions.
1 parent 8e79918 commit c77d29f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Mathlib/Util/DelabNonCanonical.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ def delabCheckingCanonical : DelabM (Bool × Term) := do
3333
/-- Delaborate an expression with arity `arity` into a unary notation `mkStx` iff the argument
3434
`arg` is a non-canonical instance (is not defeq to what is synthesized for its type, or else
3535
instance synthesis fails). -/
36-
def delabUnary (arity arg : ) (mkStx : Term → DelabM Term) : Delab :=
36+
def delabUnary (arity arg : Nat) (mkStx : Term → DelabM Term) : Delab :=
3737
withOverApp arity <| whenPPOption Lean.getPPNotation do
3838
let (false, instD) ← withNaryArg arg delabCheckingCanonical | failure
3939
mkStx instD
4040

4141
/-- Delaborate an expression with arity `arity` into a binary notation `mkStx` iff either
4242
argument `arg₁` or `arg₂` are non-canonical instance (are not defeq to what is synthesized for
4343
its type, or else instance synthesis fails). -/
44-
def delabBinary (arity arg₁ arg₂ : ) (mkStx : Term → Term → DelabM Term) : Delab :=
44+
def delabBinary (arity arg₁ arg₂ : Nat) (mkStx : Term → Term → DelabM Term) : Delab :=
4545
withOverApp arity <| whenPPOption Lean.getPPNotation do
4646
let (canonα?, instDα) ← withNaryArg arg₁ delabCheckingCanonical
4747
let (canonβ?, instDβ) ← withNaryArg arg₂ delabCheckingCanonical

0 commit comments

Comments
 (0)