This macro lets the user declare literal primitives with automatic validator generation.
It automatically generates validators by converting between Rust values and Literal types.
This macro lets the user declare custom egglog primitives with explicit validators.
It combines primitive registration with a custom validator function.