KRR IV
KRR IV
•Example: The sentence "Brutus stabbed Caesar violently with a shiny knife." is
broken down into:
•Other indexicals include #I (speaker), #you (listener), #this (near object), and
#that (far object).
•Each concept node in the graph represents key words in the sentence (like
"stab," "knife," "Brutus").
•The graph structure mirrors English grammar:Past tense (-ed) → (Past node)
•"With a knife" → (Inst: Instrument node)
•"Shiny knife" (adjective before noun) → (Attr: Attribute node)
•"-ly" in "violently" → (Manr: Manner node)
•Subject (Brutus) & Object (Caesar) → (Agnt & Ptnt nodes, based on word
order in English or case markers in other languages)
•This explanation shows how formal logic (predicate calculus) and
conceptual graphs can represent natural language meaning
systematically.
•MULTIPLE OCCURRENCES
•past Tense in Conceptual Graphs (CGs):
•The Past relation in a CG shows that an event happened in the
past.
•It can also be attached to a Situation (e.g., "Yojo, the chase, and
the mouse were all part of a past event"), ensuring all elements
happened together.
Scope of the Past Tense:
•Attaching "Past" to just the verb means only the action is
marked as past.
•Attaching "Past" to a Situation means everything inside it
happened together in the past.
•Example:
• "Yojo chased a mouse" (Past applies to "Chase")—we
don't know if the mouse still exists.
• "Yojo chased two mice" (Past applies to "Chase")—
Yojo chased two mice, but not necessarily at the same
time.
Issues with Plural & Past Tense:
•If Yojo chased two mice separately, saying "Yojo chased two mice" with Past
applied to the entire Situation would be incorrect—it suggests he chased them
simultaneously, which may not be true.
•Instead, a plural marker (@2) is used to indicate two separate chases rather
than one event.
Diodorus Cronus' Paradox (4th Century B.C.):
•Some past-tense statements are true overall but never true at any single
moment in time.
Diodorus Cronus' paradox:
Example:
"Mark climbed five mountains."
This statement is true in the past tense, but at no single moment in time was
Mark climbing all five mountains simultaneously. Instead, he climbed them
one after another.
A distributive marker (Dist) can clarify that the action was spread over
different instances rather than occurring all at once.
•Key points
Example: "Mark climbed five mountains (M1, M2, M3, M4, M5)" → He
climbed them one at a time.
•The Past relation cannot be moved to a larger situation because each climb
happened at a different time.
Collective Plural (Col):
Example:
"Mark climbed five mountains at once" → (if it happened, which it
didn’t).
•Example:
• "John’s singing was strange."
• Even though strange is an adjective, it still modifies how he sang rather
than describing singing as a thing.
Actions as Roles
•Some verbs describe actions directly, while others describe them by
their role.
•Example:
• "Mary hid the ball by placing it in a box.“
1.Types of Processes
1.Continuous Processes: Changes happen smoothly without
interruption (e.g., weather changes gradually).
2.Discrete Processes: Changes happen in distinct steps with pauses in
between (e.g., computer programs).
2.Subcategories of Processes
1.Initiation: The process starts at a specific point.
2.Continuation: The process continues without a defined start or end.
3.Cessation: The process stops at a specific point.
• 3.Understanding Process Classification
• A continuous process can be represented as a wavy line (smooth
change).
• A discrete process is a series of states and events, shown as straight
and wavy lines with vertical bars (indicating stops and starts).
4.Agent’s Intentions Matter
•Example: A farmer plowing fields over two days could be seen as:
•One successful event (if completing the task in two days was the
goal).
2.Explicit Representation:
1. Time quantifiers (e.g., ∀t. Time and ∃t. Time) make time an explicit argument.
2. Example: The predicate part(x, y, t) explicitly includes time (t) as an index for
different contexts.
• Additional Considerations
• Processes can be local (inside one system) or distributed (across
networks).
• New classifications can always be added based on different needs.
4.3 Procedures, Processes, and
Histories
• Digital vs. Analog Simulation:
• Digital computers simulate discrete processes; analog computers
handle continuous processes more naturally.
• Small time steps in digital simulations can effectively mimic
continuous motion (e.g., movies and television).
• State-Transition Diagrams:
• Represent states with circles and events with arrows.
• Finite-state machines are a basic, widely used form of these diagrams.
• Petri Nets:
• Generalize state-transition diagrams to represent concurrent
processes.
• Use “places” (circles) for states and “transitions” (bars) for events.
• Widely applied in object-oriented design (basis for UML activity
diagrams).
• Flow Charts and Their Integration:
• Early programming for von Neumann machines used flow charts,
where boxes denote computational events and diamonds denote
decisions.
• A Petri net can merge flow charts and finite-state machines, linking
states (places) with events (transitions) to depict cause and effect
4.3.1 MAPPING TO LOGIC.
• Visual Representation to Logic:
• Diagrams like flow charts, finite-state machines, and Petri nets can be
translated into logical formulas using conceptual graphs or predicate
calculus.
• Key Components:
• States: Represent conditions (e.g., p, q, r).
• Events: Represent transitions (e.g., a, b, d).
• Conditions: Decide which state follows (e.g., condition c directing the
transition from state r to either s or t).
• Simple Example:
• Consider a simple Petri net with a state p, an event a, and a state q.
• Mapping:
• State p is the precondition for event a.
• Event a leads to state q (which is both the postcondition of a and the
precondition for the next event).
• Logical Formula Representation:
(∃p:State) [dscr(p, tp(p-graph)) ∧ next(p, a) ∧ dscr(a, tp(a-graph)) ∧ next(a,
q) ∧ dscr(q, tp(q-graph))].
• Distinctions:
• Procedure: A pattern or script specifying possible sequences (types of
states and events).
• Process: An actual instance (activation) of a procedure, with a current
state (marked by #now).
• History: A record of the sequence of states and events with time
stamps.
4.3.2 BRANCHES AND LOOPS.
• Branches:
• Definition: A branch splits the flow; only one path is taken based on a
condition.
• Logical Representation: Use an if-then-else structure to ensure only the taken
branch has valid states/events.
• Simple Example: At state r, if condition c is true, proceed to event d; if false,
proceed to event f.
• Loops:
• Definition: A loop occurs when the process revisits a state, creating a new
instance each time.
• Logical Representation: Represent each loop iteration as a new instance to
distinguish repeated visits.
• Simple Example: After event e, the process loops back to state q; each loop is
a new occurrence of q.
• 4.3.3 PROCEDURAL OR DECLARATIVE.
• Procedural Languages:
• Implicit sequence defined by the order of commands.
• Example: if condition: do_d() else: do_f()
• Declarative (Logic-Based) Languages:
• Explicitly state relationships using predicates to indicate order.
• Example:
• Represent the sequence as: next(start, d) if condition true; next(start, f) if
condition false.
• Key Insight:
• Logic can model procedures by explicitly specifying relationships, allowing
compilers to translate the same high-level ideas into either logic for analysis
or procedural code for execution.
4.4 Concurrent Processes
• Concurrent vs. Sequential:
• Unlike sequential processes shown in flow charts, concurrent
processes allow multiple events to occur simultaneously.
• Advanced Modeling:
• Colored Petri nets use token “colors” to indicate different types or attributes,
adding more detail to concurrent processes.
4.4.1FLOW OF ToKENS.
• Overview:
• In Petri nets, tokens represent states or conditions that evolve over time,
illustrating the execution of concurrent processes.
• Token Flow Rules:
• Enabled: A transition is ready if all its input places contain a token.
• Active: An enabled transition fires by removing one token from each input
place.
• Finished: Once fired, the transition adds one token to each of its output
places.
• Simple Example:
• At t=0: A token is in state A (e.g., a process starts).
• Timing: The conceptual graph might show that state A lasted 5 seconds, then
event B took 3 seconds, leading to new states with specified durations.
• Join: Transition B takes 1 token each from Q and R and produces 1 token in
place S (net loss = –1).
• Balancing these operations ensures that over cycles, the total tokens remain
within defined bounds.