@khoiiiind The biggest library in Metamath is based on Set Theory, and the pen-and-paper metatheory of Metamath is done in Set Theory, but afaik Metamath itself isn't actually based on set theory; its formal classification might be something like stack-based re-writing theory (never studied