Partially reminds me (due to _V,_f,_F,f,F) Whitney's ksimple implementation[1].
[1]: https://github.com/kparc/ksimple/tree/main/ref#ac