lean4-htt/tests/lean/386.lean
Leonardo de Moura f55561008c fix: fixes #386
2021-04-11 20:57:39 -07:00

14 lines
623 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

class Fintype (α : Type) where
axiom Finset (α : Type) : Type
axiom Finset.univ {α : Type} [Fintype α] : Finset α
axiom Finset.filter {α : Type} (s : Finset α) (ϕ : α → Bool) : Finset α
-- The following should not elaborate, since there are no `Fintype` instances
-- Instead it yields: "error: (kernel) declaration has metavariables 'kernelErrorMetavar'"
def kernelErrorMetavar1 (n : Nat) : Finset (Fin n) :=
Finset.univ.filter (fun (i : Fin n) => true)
instance : Fintype (Fin n) := ⟨⟩
noncomputable def kernelErrorMetavar2 (n : Nat) : Finset (Fin n) :=
Finset.univ.filter (fun (i : Fin n) => true)