Professional Documents
Culture Documents
CSE-4103 Artificial Intelligence: The Prolog Rules
CSE-4103 Artificial Intelligence: The Prolog Rules
Artificial Intelligence
THE PROLOG RULES
LECTURER
CONTACT:
salehinfall2020.cse@gmail.com
Reference Book 2
Facts Rules
Rules: A rule is an expression that indicates that the
truth of a particular fact depends upon one or Periods (.) Predicates
more other facts. A rule allows us to find out about
a relationship even if the relationship isn't explicitly Relations Arguments
stated as a fact.
Objects Variables
Example of Rules:
hypothesis (corona) :-
symptom (fever) ,
symptom (cough).
Prolog Rules: Some Examples
4
Conclusion/head
Explanation:
In English:
There is evidence of vitamin C deficiency if there is either symptoms of arthritis and infection
sensitivity or symptoms of colitis and infection sensitivity.
In English:
There is evidence of vitamin C deficiency if there is either symptoms of arthritis and
infection sensitivity or symptoms of colitis and infection sensitivity.
hypothesis(vitc_deficiency):-
symptom(arthritis),
symptom(infection_sensitivity).
hypothesis(vitc_deficiency):-
symptom(colitis),
symptom(infection_sensitivity).