docs: Fix typos in docs

This commit is contained in:
jstoobysmith 2025-02-13 09:48:19 +00:00
parent cc20d096ea
commit d2ce55ddd0
27 changed files with 67 additions and 63 deletions

View file

@ -285,7 +285,7 @@ def termNodeSyntax (T : Term) : TermElabM Term := do
| _ => return Syntax.mkApp (mkIdent ``TensorTree.vecNode) #[T]
/-- Adjusts a list `List ` by subtracting from each natural number the number
of elements before it in the list which are less then itself. This is used
of elements before it in the list which are less than itself. This is used
to form a list of pairs which can be used for evaluating indices. -/
def evalAdjustPos (l : List ) : List :=
let l' := List.mapAccumr
@ -335,7 +335,7 @@ def toPairs (l : List ) : List ( × ) :=
| [x] => [(x, 0)]
/-- Adjusts a list `List ( × )` by subtracting from each natural number the number
of elements before it in the list which are less then itself. This is used
of elements before it in the list which are less than itself. This is used
to form a list of pairs which can be used for contracting indices. -/
def contrListAdjust (l : List ( × )) : List ( × ) :=
let l' := l.flatMap (fun p => [p.1, p.2])