What can be inferred from the following premises in a single inference step (ignoring inferences that add new predicates or constants)? Name the inference rule being used: If Mary were a carpenter, then Thomas is listening to a song. If Thomas listens to a song, then it is raining. Mary is a carpenter. If it rains, then it is late.
Thomas is listening to a song can be inferred via the modus ponens rule. If Mary were a carpenter, then it is raining can be inferred via the transitivity rule. If Thomas listens to a song, then it is late can be inferred via the transitivity rule.