A logical framework with higher-order rational (circular) terms