lean4-htt/tests/elab_fail/ctorUnivTooBig.lean
Garmelon 08eb78a5b2
chore: switch to new test/bench suite (#12590)
This PR sets up the new integrated test/bench suite. It then migrates
all benchmarks and some related tests to the new suite. There's also
some documentation and some linting.

For now, a lot of the old tests are left alone so this PR doesn't become
even larger than it already is. Eventually, all tests should be migrated
to the new suite though so there isn't a confusing mix of two systems.
2026-02-25 13:51:53 +00:00

54 lines
1.2 KiB
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.

inductive Bla : Type u where
| nil : Bla
| cons : (α : Type u) → (a : α) → Bla → Bla -- Error
inductive Foo : Type where
| leaf
| mk (α : Type) (a : α) -- Error
| mk₂
inductive Foo' : Type u where
| leaf
| mk {a : Sort u} : Sort (max u v) → a → Foo' -- Error
| mk₂
inductive Foo'' : Type u where
| leaf
| mk : Sort (max u v) → a → Foo'' -- Error
| mk₂
inductive Boo : Type u where
| nil : Boo
| cons : (α : Sort u) → (a : α) → Boo → Boo
namespace Ex1
inductive Member : α → List α → Type u
| head : Member a (a::as)
| tail : Member a bs → Member a (b::bs)
#check Member.head
end Ex1
namespace Ex2
inductive Member : α → List α → Type
| head : Member a (a::as)
| tail : Member a bs → Member a (b::bs)
end Ex2
namespace Ex3
inductive Member : α → List α → Type (max u v)
| head : Member a (a::as) -- Error
| tail : Member a bs → Member a (b::bs)
end Ex3
namespace Ex4
inductive Member : α → List α → Type (u+1)
| head : Member a (a::as) -- Error
| tail : Member a bs → Member a (b::bs)
end Ex4
namespace Ex5
inductive Member : α → List α → Type 1
| head : Member a (a::as) -- Error
| tail : Member a bs → Member a (b::bs)
end Ex5