Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

Unit 2 — Representing Instances and ISA Relationships

Lesson 19 of 34 in the free Artificial Intelligence notes on Siksha Sarovar, written by Rohit Jangra.

Representing Instances and ISA Relationships

Much of everyday knowledge is about categories — "a canary is a bird," "a bird is an animal" — and about individual members of those categories. Predicate logic and semantic-network-style representations both need clean ways to express this.

INSTANCE and ISA

RelationMeaningExample
INSTANCE-OFAn individual belongs to a categoryINSTANCE(Tweety, Canary) — Tweety is a specific canary
ISAOne category is a specialisation of anotherISA(Canary, Bird), ISA(Bird, Animal)

Representing These Relations in Predicate Logic

INSTANCE(Tweety, Canary)
ISA(Canary, Bird)
ISA(Bird, Animal)

For all x: ISA(x, Bird) implies CanFly(x)          (with exceptions handled separately)
For all x, y, z: INSTANCE(x, y) AND ISA(y, z) implies INSTANCE(x, z)   (transitivity rule)

The transitivity rule lets the system automatically derive INSTANCE(Tweety, Bird) and INSTANCE(Tweety, Animal) from the facts above — this is exactly what makes inheritance work.

Why Distinguish INSTANCE from ISA?

Confusion if not distinguishedCorrect distinction
Treating "Tweety is a canary" the same as "a canary is a bird"INSTANCE relates an individual to a class; ISA relates a class to a more general class
Mixing levels leads to nonsensical inferencesKeeping the individual/class and class/superclass levels separate keeps inference sound

Properties, Exceptions and Defaults

Inheritance through ISA/INSTANCE is extremely useful, but must allow exceptions:

For all x: ISA(x, Bird) AND NOT Abnormal(x) implies CanFly(x)
ISA(Penguin, Bird)
Abnormal(Penguin)                          (penguins are an exception)

This "default with exception" pattern (also called non-monotonic reasoning) is necessary because strict logic ("all birds fly") would be simply false the moment a single flightless bird is considered.

Practical Use

INSTANCE and ISA hierarchies are the backbone of ontologies and taxonomies used throughout AI — from simple textbook examples (canary/bird/animal) to large-scale knowledge graphs used by modern search engines and virtual assistants.