lean4-htt/tests/elab/issue10329.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

48 lines
858 B
Text

module
set_option warn.sorry false
public class X
instance : X := sorry
public instance : X := sorry
instance : X := sorry
namespace InNamespace
public class Y
instance : Y := sorry
public instance : Y := sorry
instance : Y := sorry
end InNamespace
inductive Day where
| mo | tu | we
deriving Repr
def Day.succ? : Day → Option Day
| mo => some tu
| tu => some we
| we => none
instance : Std.PRange.UpwardEnumerable Day where
succ? := Day.succ?
def Day.toNat : Day → Nat
| mo => 0
| tu => 1
| we => 2
instance : LT Day where
lt _ _ := True
instance : LE Day where
le _ _ := True
instance : Std.Rxo.IsAlwaysFinite Day where
finite init hi := ⟨3, by sorry⟩
instance : Std.Rxi.IsAlwaysFinite Day where
finite init := ⟨3, by sorry⟩
instance : Std.Rxc.IsAlwaysFinite Day where
finite init hi := ⟨3, by sorry⟩