Hi, I am trying how to figur our how Prolog Lists Work. For does whou don't know PROLOG is a Hightly LOGICAL Language and I am wondering if Photoreading can help since it deals with lots or reasoning.

I have very little notes to read, however I am trying to figure out how it works by tracing into the Running of the actual program and see how variables are changing. The problem is I cannot seem to find a matching pattern. for example a typical question might be:

6. To find the Minimum integer from a List of elements using the rule min(List,Minimum). e.g. min([9,12,3,-2,7],Min) binds Min to -2.

ANswer:

find_min(X,[X]).
find_min(H,[H|T]):-
find_min(Min,T),
H < Min.
find_min(Min,[H|T]):-
find_min(Min,T),
H >= Min.

Any tips are welcome