If feeling adventurous, read e.g. https://lpn.swi-prolog.org/lpnpage.php?pagetype=html&pageid=...
that's a great quote.
1: https://shenlanguage.org/OSM/Recursive.html
IIRC the type checker is literally a Prolog.