L = holonomyLocal(i,H)
The generators in the $i$th set (beginning with $i=0$) in the inputs of holonomy generate a subalgebra of the holonomy Lie algebra $H$, and the output of holonomyLocal(i,H) is this Lie subalgebra. If the set is of size $k$, then the local Lie algebra is free on $k$ generators if the set belongs to the first input set, and it is free on $k1$ generators in degrees $\ge 2$ if it belongs to the second input set.



The object holonomyLocal is a method function.