Question: Write a Haskell program for the following: A logical formula in two variable is a function of the form f :: (Bool, Bool)- > Bool.

Write a Haskell program for the following:

Write a Haskell program for the following: A logical formula in two

A logical formula in two variable is a function of the form f :: (Bool, Bool)- > Bool. Write a function twoTautology:: ((Bool, Bool) -> Bool) -> Bool which determines whether a logical formula f is always true (i.e. a tautology): to be a tautology it must be true for all possible arguments of f)! Now write a function which determines whether two logical functions of two variables are equivalent: twoEquiv::((Bool, Bool)->Bool)-> ((Bool, Bool)->Bool)->Bool This should be true when the functions agree on all inputs

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!