Logic for programing FOL

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/48

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No study sessions yet.

49 Terms

1
New cards

Proposition

A declarative sentence that is either true or false.

2
New cards

Contingency

A statement that is sometimes true and sometimes false depending on the truth assignment.

3
New cards

Logical Equivalence

Two statements that always have the same truth value under every truth assignment.

4
New cards

Entailment (⊨)

A semantic relationship where if the premises are true, the conclusion must be true in all interpretations.

5
New cards

Provability (⊢)

A syntactic relationship where the conclusion can be derived from premises using rules of inference.

6
New cards

Term:

Contradiction / falsehood.

7
New cards

Term:

Always true.

8
New cards

Predicate

A property or relation that returns true or false when given an object or objects.

9
New cards

Function Symbol

A symbol that maps objects to other objects.

10
New cards

Constant Symbol

A symbol that refers to a specific object in the domain.

11
New cards

Domain

The set of objects an interpretation ranges over.

12
New cards

Interpretation

A domain plus a meaning for every predicate, function, and constant.

13
New cards

Model

An interpretation that makes a formula true.

14
New cards

Universal quantifier (“for all”).

15
New cards

Existential quantifier (“there exists”).

16
New cards

Scope of a Quantifier

The part of the formula the quantifier applies to

17
New cards

Predicate Symbol

A symbol that expresses a property or relation; its arity tells how many arguments it takes (e.g., unary P(x), binary R(x,y)).

18
New cards

Function Symbol

A symbol that maps objects in the domain to another object (e.g., f(x), f(x,y)); arity indicates how many inputs it takes.

19
New cards

Constant Symbol

A symbol that refers to one specific object in the domain (e.g., a, b, c).

20
New cards

Arity

The number of arguments a predicate or function takes.

21
New cards

Well-Formed Formula (WFF)

A syntactically correct logical expression built using predicates applied to terms, connectives, and quantifiers.

22
New cards
23
New cards

Domain (D)

The set of all objects over which variables range in an interpretation.

24
New cards

Interpretation (I = (D, Φ))

A structure consisting of a domain D and an assignment Φ that gives meaning to all constants, predicates, and functions in the language.

25
New cards

Meaning Function Φ

The part of the interpretation that maps:

constants → elements of the domain
• predicates → sets of tuples
• functions → mappings from domain tuples to domain

26
New cards

Satisfies

An interpretation satisfies a formula if the formula evaluates to true in that interpretation.

27
New cards

Satisfiable

A formula that is true in at least one interpretation.

28
New cards
29
New cards

Unsatisfiable

A formula that is false in every interpretation (no model exists)

30
New cards

Universal Quantifier (∀x)

“For all x”; the statement must hold for every element in the domain.

31
New cards

Existential Quantifier (∃x)

“There exists an x”; the statement holds for at least one element in the domain.

32
New cards

Main Connective

The outermost logical operator of a formula, which determines its overall structure.

33
New cards

Assigning Predicate Meaning

Choosing which domain elements make the predicate true (e.g., Φ(P) = {a, c}).

34
New cards

Assigning Function Meaning

Defining how the function symbol maps domain elements (e.g., f(a)=b).

35
New cards

Making a Formula True

Choosing a domain and meaning so that the formula evaluates to true

36
New cards

You will use the same first-order language for the whole card. Which of these is the best choice for a predicate that means “x is a saucepan”?

A. Sau(x) — unary predicate

37
New cards

Which predicate signature best matches “x gives y to z”?

 Give(x,y,z) — ternary

38
New cards

Which predicate fits “x is made of tin”?

MadeOf(x,y) — binary where y is a material

39
New cards

Which constant would best represent “my saucepan” (a specific saucepan)?

S — a constant symbol

40
New cards

English: “All of my saucepans are made of tin.”
Language: unary predicate Sau(x) = “x is one of my saucepans”; binary MadeOf(x,y) where material Tin is a constant.

∀x (Sau(x) → MadeOf(x, Tin))

41
New cards

“There exists a present that you gave me.”
Predicates: Give(x,y) = “x gave y to me” where you is constant u and me is constant m. Which is correct?

∃y Give(u,y,m)

42
New cards

English: “No saucepan of mine is useful.” Predicates: Sau(x) = my saucepan, Useful(x). Correct translation?

D. Both A and C

43
New cards

English: “You have never given me anything made of tin.” Using Give(giver,item,receiver) with constants u for you and m for me and MadeOf(item, Tin). Which matches?

D. Both A and C

44
New cards

Premises: (1) All Buffalo are reptiles. (2) No Buffalo are reptiles. Conclusion: There are no Buffalo. Which entailment matches this argument? Use Buff(x) and Reptile(x).

A. {∀x (Buff(x) → Reptile(x)), ∀x (Buff(x) → ¬Reptile(x))} ⊨ ∀x ¬Buff(x)

45
New cards

Formula: ∀x (Student(x) → ∃y Teaches(y,x))

Every student is taught by someone.

46
New cards

¬∃x (Cat(x) ∧ Friendly(x))

No cat is friendly.

47
New cards

∃x ∀y Loves(x,y)

There is someone who loves everyone.

48
New cards
49
New cards