Bifalgorithm post · Brisk · Chapter 1

How can predicates represent relationships among multiple objects?

How can predicates represent relationships among multiple objects? (Brisk · Chapter 1) — "Every sentence has a subject and a predicate. In “Billy jumps,” “Bill…

Ideas in this flowchart

  • Predicates describe or affirm something about subjects.
  • Every sentence has a subject and a predicate.
  • In “Billy jumps,” “Billy” is the subject and “jumps” is the predicate.
  • A predicate can have more than one input.
  • IsFanOf(x, y) means that x digs the music of rock band y.
  • Examples include IsFanOf(Stephen, Led Zeppelin), IsFanOf(Rachel, The Beatles), and ¬IsFanOf(Stephen, The Rolling Stones).
  • TraveledToByModeInYear(p, d, m, y) means that person p traveled to destination d by mode m in year y.
  • Examples include travel by car to Richmond in 2017 and ¬TraveledToByModeInYear(T.J., Mars, spaceship, 1776).
  • AteWithAttitude can represent what someone ate and the attitude involved.
  • Examples include eating spaghetti with gusto and eating broccoli with either gusto or trepidation.
  • Multiple inputs give more precision in defining relationships.
  • IsFanOf is identical to an isFanOf relation between sets P and R, where isFanOf ⊆ P × R.
  • A relation is the set of ordered pairs, or tuples, for which a predicate is true.
Feed/

How can predicates represent relationships among multiple objects?

Channel

Brisk

1 page

"Every sentence has a subject and a predicate. In “Billy jumps,” “Billy” is the subject, and “jumps” the predicate. Basically, a predicate is anything that can describe or affirm something about a subject. A predicate can have more than one input. Suppose we define the predicate IsFanOf as follows: Let IsFanOf(x, y) be the proposition that x digs the music of rock band y. Then I can assert: IsFanOf(Stephen, Led Zeppelin), IsFanOf(Rachel, The Beatles), IsFanOf(Stephen, The Beatles), and ¬IsFanOf(Stephen, The Rolling Stones). We could even define TraveledToByModeInYear with a bunch of inputs: Let TraveledToByModeInYear(p, d, m, y) be the proposition that person p traveled to destination d by mode m in year y. The following statements are then true: TraveledToByModeInYear(Stephen, Richmond, car, 2017), TraveledToByModeInYear(Rachel, Germany, plane, 2014), and ¬TraveledToByModeInYear(T.J., Mars, spaceship, 1776). Defining multiple inputs gives us more precision in defining relationships. Imagine creating the predicate “AteWithAttitude” and then asserting: AteWithAttitude(lonely boy, spaghetti, gusto), ¬AteWithAttitude(T.J., broccoli, gusto), and AteWithAttitude(T.J., broccoli, trepidation). The IsFanOf predicate is identical to an isFanOf relation defined between sets P and R, where isFanOf ⊆ P × R. A relation can be defined as the set of ordered pairs, or tuples, for which a predicate is true."

Flowchart preview
Series cover
👍
0
0 comments0 shares

Sign in to view and post comments.