Prolog - Relating to a predicate

Опубликовано: 09 Июнь 2026
на канале: KreaTuto
1,271
18

👉 How to create and use a binary predicate to relate two atoms.

🐼 Prolog Section ▶ https://www.kreatuto.info/rubrique/Pr...
🔎 Code used in this video: http://kreatuto.info/rubrique/Prolog#...

   • Prolog  
📥 PDF for access to the videos in this section: https://www.kreatuto.info/docs-fourni...

🐼 Computer Science for Beginners and Advanced Learners ▶ https://www.kreatuto.info/

——————————————— Video Chapters ———————————————
📋 00:00 Objective and Approach
00:22 Introduction to Predicates Unary properties of our program
01:00 Explanation of the relation to be represented
01:17 Creation of a binary predicate
02:02 Actual creation of our program with this new relation
02:45 Loading our program into troupeau.pl (the knowledge base)
03:30 Using listing/1 by specifying the arity of the predicate in question
03:57 Using our program to check relations…
04:30 with variables
05:30 In summary
06:20 What's next?