Google Zanzibar datalog lang lets you describe concepts and express how they are related. I generalize it to DSL you can use on Lean4 (and other languages) this lets you represent…

ZIL is a small relational language for describing named objects, the relationships between them, and rules that derive additional relationships. ZIL Lean implements this model inside Lean 4. Lean checks definitions, executable programs, theorem statements, and proofs. ZIL records how those checked declarations relate to requirements, documents, tests, tasks, dependencies, and other parts of a project. Developers, review tools, CI, documentation tools, and AI assistants can query the same stored relationships. ZIL's relation model is influenced by the tuple-oriented model described in Google's Zanzibar paper: This userset names everyone related to group:eng through member. A tuple can therefore refer to another relation, supporting group membership and inherited access. Zanzibar uses relation tuples to describe authorization data. ZIL uses the same compact relational building blocks for authorization models and for wider project relationships: Table 1 presents relation data. Rules describe how additional relations follow from that data. ZIL uses Horn rules, the rule form commonly used by Datalog systems. The same rule structure can derive project relationships, such as requirement coverage and change impact.