syntax.v improvement: functions for arbitrary binary relations (as opposed to just equality)