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.
27 lines
1 KiB
Text
27 lines
1 KiB
Text
/- Ensure that turning off `autoPromoteIndices` stops indices
|
|
from being promoted to parameters in inductive types.
|
|
Because free variables aren't allowed in parameters of nested appearances,
|
|
it is sometimes desirable for fixed indices to not be promoted to parameters.
|
|
See `IInterp`.
|
|
-/
|
|
|
|
set_option autoImplicit false
|
|
universe u v w
|
|
|
|
structure ISignature (I : Type u) : Type (max u v + 1) where
|
|
symbols : I → Type v
|
|
indices : {i : I} → symbols i → List I
|
|
|
|
inductive All {I : Type u} (P : I → Type v) : List I → Type (max u v) where
|
|
| nil : All P []
|
|
| cons {x xs}: P x → All P xs → All P (x :: xs)
|
|
|
|
set_option inductive.autoPromoteIndices false
|
|
|
|
inductive IInterp {I} (ζ : ISignature.{u,v} I) (P : I → Type w) : I → Type (max u v w) where
|
|
| mk :{i : I} → (s : ζ.symbols i) → All P (ζ.indices s) → IInterp ζ P i
|
|
|
|
notation:max "I⟦ " ζ " ⟧" => IInterp ζ
|
|
|
|
inductive Iμ {I : Type u} (ζ : ISignature.{u,v} I) : I → Type (max u v) where
|
|
| mk : (i : I) → I⟦ ζ ⟧ (Iμ ζ) i → Iμ ζ i
|