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.
24 lines
815 B
Text
24 lines
815 B
Text
/- Verify that injectivity lemmas are constructed with the right level of generality
|
|
in order to avoid type errors.
|
|
-/
|
|
|
|
inductive Tyₛ : Type (u+1)
|
|
| SPi : (T : Type u) -> (T -> Tyₛ) -> Tyₛ
|
|
|
|
set_option deriving.decEq.linear_construction_threshold 0
|
|
inductive Tmₛ.{u} : Tyₛ.{u} -> Type (u+1)
|
|
| app : Tmₛ (.SPi T A) -> (arg : T) -> Tmₛ (A arg)
|
|
|
|
/--
|
|
info: Tmₛ.app.injEq.{u} {T : Type u} {A : T → Tyₛ} (a✝ : Tmₛ (Tyₛ.SPi T A)) (arg : T) (a✝¹ : Tmₛ (Tyₛ.SPi T A)) :
|
|
(a✝.app arg = a✝¹.app arg) = (a✝ = a✝¹)
|
|
-/
|
|
#guard_msgs in
|
|
#check Tmₛ.app.injEq
|
|
|
|
/--
|
|
info: Tmₛ.app.inj.{u} {T : Type u} {A : T → Tyₛ} {a✝ : Tmₛ (Tyₛ.SPi T A)} {arg : T} {a✝¹ : Tmₛ (Tyₛ.SPi T A)} :
|
|
a✝.app arg = a✝¹.app arg → a✝ = a✝¹
|
|
-/
|
|
#guard_msgs in
|
|
#check Tmₛ.app.inj
|