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.
50 lines
877 B
Text
50 lines
877 B
Text
set_option warn.sorry false
|
|
|
|
open Lean.Order
|
|
|
|
def A : Type := Prop
|
|
def B : Type := Prop
|
|
|
|
instance : Lean.Order.PartialOrder A where
|
|
rel := sorry
|
|
rel_refl := sorry
|
|
rel_trans := sorry
|
|
rel_antisymm := sorry
|
|
|
|
instance : Lean.Order.PartialOrder B where
|
|
rel := sorry
|
|
rel_refl := sorry
|
|
rel_trans := sorry
|
|
rel_antisymm := sorry
|
|
|
|
instance : Lean.Order.CCPO A where
|
|
has_csup := sorry
|
|
|
|
instance : Lean.Order.CCPO B where
|
|
has_csup := sorry
|
|
|
|
/--
|
|
error: Could not prove 'tick' to be monotone in its recursive calls:
|
|
Cannot eliminate recursive call in
|
|
tock (n + 1)
|
|
-/
|
|
#guard_msgs in
|
|
mutual
|
|
def tick (n : Nat): A :=
|
|
tock (n + 1)
|
|
partial_fixpoint
|
|
|
|
def tock (n : Nat) : B :=
|
|
tick (n + 1)
|
|
partial_fixpoint
|
|
end
|
|
|
|
mutual
|
|
def tick2 (n : Nat): A :=
|
|
tock2 (n + 1)
|
|
partial_fixpoint
|
|
|
|
def tock2 (n : Nat) : A :=
|
|
tick2 (n + 1)
|
|
partial_fixpoint
|
|
end
|