Playground Documentation Challenges Full Docs
← All Challenges

#12. Modus Ponens

Easy if <…> contradict

Given that implies(a,b) -> true and a -> true, prove that b -> true. This is the fundamental rule of logical deduction: modus ponens.

Hint

Assume b -> false. Then implies(a,b) becomes implies(true,false) -> false, which contradicts implies(a,b) -> true.

Your Solution
Output