Relationship between ordered pairs and rules