I like that idea. It reminds me a bit of the way you can register references/citations within PETSc and retrieve them from the command line.
I implemented a very basic version of such an idea in one of my draft packages. There, I just define a function reference
which returns a String
containing a bibtex entry for given argument functions/algorithms. That’s not really perfect and your idea described above seems to be much more useful (but also involved).
Related discussions here on discourse: