refactor: Fix imports and some lint

This commit is contained in:
jstoobysmith 2024-10-19 08:49:26 +00:00
parent 14bf127335
commit b2ac704d80
14 changed files with 47 additions and 69 deletions

View file

@ -173,7 +173,6 @@ def stringToTerm (str : String) : TermElabM Term := do
match stx with
| `(term| $e) => return e
/-- The syntax associated with a terminal node of a tensor tree. -/
def termNodeSyntax (T : Term) : TermElabM Term := do
let expr ← elabTerm T none
@ -270,7 +269,7 @@ def toPairs (l : List ) : List ( × ) :=
| [] => []
| [x] => [(x, 0)]
def contrListAdjust (l : List ( × )) : List ( × ) :=
def contrListAdjust (l : List ( × )) : List ( × ) :=
let l' := l.bind (fun p => [p.1, p.2])
let l'' := List.mapAccumr
(fun x (prev : List ) =>