Test case: the builder gives the hand-written trees
Library · Source module
Test case: the builder gives the hand-written trees
ops% elaborates to a plain NLAlib.Ops.Stmt; each example below states that the tree built with names is the hand-written positional tree of an example, by rfl (the two terms are equal after elaboration, so the check is syntactic, not a computation).
Main results
* mgs: equal as written. * gemm: equal as written. * cgs (classical Gram–Schmidt): the whole algorithm in one block, equal as written. * The other constructs (index, if, while, ifPos) against a hand-written tree.