Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN HASKELL JUST SOLVE EXERCISES 3, 4, 5, and 6, I WILL VOTE WITH YOUR HAND UP AS SOON AS POSSIBLE IF YOU HELP ME,

IN HASKELL JUST SOLVE EXERCISES 3, 4, 5, and 6, I WILL VOTE WITH YOUR HAND UP AS SOON AS POSSIBLE IF YOU HELP ME, 1. DO NOT WRITE THE CODE ON PAPER 2. MAKE THE CODE IN PROGRAM

module Clase1 where type Literal = Prop type Clause = [Literal]

data Prop = Var String | Cons Bool| Not Prop | And Prop Prop | Or Prop Prop | Impl Prop Prop | Syss Prop Prop deriving (Show, Eq)

--converts a propositional formula into its negative normal form. exercise1 :: Prop -> Prop --function already implemented, do nothing here

--converts a propositional formula into its normal form conjunctiva. exercise2 :: Prop -> Prop --function already implemented, do nothing here

--given a formula in FNC(Exercise2), returns a list with the clauses that form it. exercise3 :: Prop -> [Clause] --solve the function here...

--given two clauses, returns the resolvent obtained after applying the binary resolution rule. It can be assumed that a resolvent can be obtained from the arguments exercise4 :: Clause -> Clause -> Clause --solve the function here...

--determines if it is possible to obtain a resolvent from two clauses. exercise5 :: Clause -> Clause -> Bool --solve the function here...

--given a propositional formula, determines if it is satisfiable or not using the saturation algorithm. exercise6 :: Prop -> Bool --solve the function here...

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions

Question

7. AgNO(a)+K2CrO2(a)) 6sts

Answered: 1 week ago