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.
17 lines
784 B
Text
17 lines
784 B
Text
abbrev Sequent : Type := List Nat
|
|
abbrev History : Type := List Sequent
|
|
def rep (H : History) (N : Sequent) : Prop := N ∈ H
|
|
def Sequent.basic (N : Sequent) := N = [1,2,3]
|
|
def LocalTableau (X : Sequent) : Type := Subtype (· = X.sum)
|
|
def endNodesOf {X} : LocalTableau X → List Sequent := fun _ => [X,X]
|
|
|
|
inductive Tableau : History → Sequent → Type
|
|
| loc {Hist X} (nrep : ¬ rep Hist X) (nbas : ¬ X.basic) (lt : LocalTableau X)
|
|
(next : ∀ Y ∈ endNodesOf lt, Tableau (X :: Hist) Y) : Tableau Hist X
|
|
|
|
set_option maxHeartbeats 2000 in
|
|
inductive PathIn : ∀ {Hist X}, Tableau Hist X → Type
|
|
| nil : PathIn _
|
|
| loc {nrep nbas lt next Y} (Y_in : Y ∈ endNodesOf lt) (tail : PathIn (next Y Y_in))
|
|
: PathIn (Tableau.loc nrep nbas lt next)
|
|
deriving DecidableEq
|