refactor(builtin/kernel): define if-then-else using Hilbert's operator

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
refactor(builtin/kernel): define if-then-else using Hilbert's operator