emissionOf(alpha).
emissionOf(beta).
detected(proton), detected(electron) :- emissionOf(alpha), emissionOf(beta).
I m facing the problem that for some (probably obvious) reason Prolog doesn t accept the last line of the above code. The reason has something to do with:
detected(proton), detected(electron)
If I try just
detected(proton)
it behaves correctly.
What is the problem? I am trying to state that if there is both emission of alpha and beta, then there there are detections of both protons and electrons.
Thanks