Predicate Logic (1) Predicate Logic (1)

Total Page:16

File Type:pdf, Size:1020Kb

Predicate Logic (1) Predicate Logic (1) First-Order Predicate Logic (1) Predicate Logic (1) • Atomic sentences and ground sentences • S-structure and truth relation for ground sentences • Atomic formulas and quantifier-free formulas • S-interpretation and truth relation for quantifier-free formulas • First-order predicate logic formulas • Truth relation for first-order predicate logic formulas Illustrations from databases and arithmetic. Logic in Computer Science 2012 2 Predicate Logic Predicate logic is an extension of propositional logic with more expressive power. It is needed because in many applications propositional atomic formulas can- not be regarded as atoms but should carry additional structure. Consider: • p0: my car is blue. • p1: blue cars are fast. • p2: my car is fast. Then ‘my car is fast’ should be a logical consequence of ‘my car is blue’ and ‘blue cars are fast’. However, fp0; p1g 6j= p2: We introduce predicate logic to represent those (and many more) sentences. Logic in Computer Science 2012 3 Ground Sentences and their Semantics Individual Constants Individual constants are symbols that denote a fixed individual object. For ex- ample, • we could use Peter as an individual constant to denote a particular per- son; • we could use 2 as an individual constant to denote the number 2; • but we could also use 2, 3, or Peter as an individual constant to denote the number 2; • we could use Liverpool as an individual constant to denote Liverpool; • but we could also use UK as an individual constant to denote France. We use lower case letters c; d; e etc and c1; c2 : : : ; d1; d2 ::: as individual con- stants. Logic in Computer Science 2012 5 Predicate Symbols Predicate Symbols are used to denote a property of objects or a relation be- tween objects. Every predicate symbol comes with an arity ≥ 1. For example, • integer could be used as a predicate of arity 1 to denote the property of being an integer. • country could be used as a predicate of arity 1 to denote the property of being a country. • younger could be used as a predicate of arity 2 to denote the relation “younger than” between living beings. • has birthday could be used as a predicate of arity 2 to denote a relation between humans and dates: Peter has birthday on the 7th of February 1999. We use upper case letters P; Q; R etc and P1;P2 :::;Q1;Q2 ::: as predicate symbols. Predicates of arity 1,2,3 are also called unary, binary, and ternary predicates. Logic in Computer Science 2012 6 Atomic Sentences In predicate logic, the simplest kinds of claims are those made with a single predicate symbol followed by the appropriate number of individual constants. Definition If P is a predicate symbol of arity n and c1; : : : ; cn are individual con- stants, then P (c1; : : : ; cn) is an atomic sentence. Examples: • If integer is a unary predicate symbol and 3 an individual constant, then integer(3) is an atomic sentence stating that 3 is an integer (more precisely, the predicate integer applies to the individual object denoted by 3). • If integer is a unary predicate symbol and Peter an individual constant, then the expression integer(Peter) is an atomic sentence stating that Peter is an integer (more precisely, the predicate integer applies to the individual object denoted by Peter). Logic in Computer Science 2012 7 Atomic Sentences: more examples • If younger is a binary predicate symbol and Sue and Tom are individual constants, then younger(Sue; Tom) is an atomic sentence that states that Sue is younger than Tom (more precisely, the object denoted by Sue is in the relation denoted by younger to the object denoted by Tom). • If has birthday is a binary predicate symbol and Tom and 7:11:1999 are indi- vidual constants, then has birthday(Tom; 7:11:1999) is an atomic sentence stating that Tom was born 7.11.1999 (more precisely, the object denoted by Tom is in the relation denoted by has birthday to the object denote by 7.11.1999). • If sum is a ternary predicate symbol and 3, 4 and 7 are individual constants, then sum(3; 4; 7) is an atomic sentence stating that the sum of 3 and 4 is 7 (more precisely, the objects denoted by 3, 4, and 7 are in the relation denoted by sum). Logic in Computer Science 2012 8 Signature and Ground Sentences A signature S is a set of predicate symbols (with their arities) and individual constants. The set of all ground sentences over S is defined inductively as follows: • all atomic sentences using symbols from S only are ground sentences over S; • if F and G are ground sentences over S, then (F ^G) is a ground sentence over S; • if F and G are ground sentences over S, then (F _G) is a ground sentence over S; • if F is a ground sentence over S, then :F is a ground sentence over S; • nothing else is a ground sentence over S. Logic in Computer Science 2012 9 A signature for kinship relations Our (very incomplete) signature SK for kinship relations consists of • unary predicate symbols male and female; • a binary predicate symbol parent of; • two binary predicate symbols father of and mother of; • a binary predicate grandparent of; • binary predicates brother of and sister of. • a binary predicate ancestor of. If we want to give small illustrating examples, we sometimes work with SK0 = ffather of; mother ofg. Logic in Computer Science 2012 10 Kinship Relations Using individual constants a; b; c : : :, we can now use ground sentences over the signature SK [ fa; b; c : : :g to express the relation between concrete people, e.g., • a is the father of b, but b is not father of c: (father of(a; b) ^ :father of(b; c)) • a is a brother of b or e is a sister of f: (brother of(a; b) _ sister of(e; f)) Logic in Computer Science 2012 11 Signature for arithmetic The signature SAR for arithmetic consists of: • individual constants: 0; 1; 2;:::; • a binary predicate symbol smaller; • a ternary predicate symbol sum; • a ternary predicate symbol prod; • a unary predicate symbol even. The following are ground sentences over SAR: • (smaller(3; 4) ^ :smaller(5; 3)); • even(21); • (:sum(3; 4; 12) ^ prod(3; 4; 12)). Logic in Computer Science 2012 12 Semantics So far, ground sentences are just words without any meaning. To give an interpretation for ground sentences, we require more than just the truth values “true” and “false”. In this case, we require a “domain of discourse” in which the individual constants and predicate symbols are interpreted. Depending on the signature (and, therefore, application) the domain of dis- course can play very different roles: • If we do arithmetic, it can be the natural, rational, or real numbers (with corresponding operations); • Our domain of discourse can be a database instance (which we query or pose integrity constraints on); • When doing program verification, we can represent a run (or all runs) of a program we want to verify as a domain of discourse; • If we specify a terminology for medicine or biology, the domain of dis- course can be gene products, medications, treatments, etc. Logic in Computer Science 2012 13 Semantics: S-structures Let S be a signature. An S-structure F is an object of the form F = (DF ; (sF j s 2 S)); where • DF is a non-empty set (the domain of discourse); • for all predicate symbols P 2 S of arity n: P F is a n-ary relation on DF ; for example, if P is a unary predicate, then P F ⊆ DF and if P is a binary predicate, then P F ⊆ DF × DF ; P F is called the extension of P in F or the interpretation of P in F. • for all individual constant symbols c in S: cF is an element of DF (in other words, we have cF 2 DF ). cF is called the object denoted by c in F or the interpretation of c in F. Logic in Computer Science 2012 14 Examples of SK-structures (kinship relations) For simplicity we use SK0 = ffather of; mother ofg. Note that any F = (DF ; father ofF ; mother ofF ) with DF a nonempty set, father ofF ⊆ DF × DF and mother ofF ⊆ DF × DF is an SK0-structure. For example, F1 F1 F1 • F1 with D = f1g, father of = f(1; 1)g, and mother of = f(1; 1)g. In this structure 1 is a father of himself and a mother of herself. F2 F2 F2 • F2 with D = fa; bg, father of = f(a; b)g, and mother of = f(b; a)g. In this structure a is a father of b and b is a mother of a. F3 F3 • F3 with D = f1; 2;:::g, father of = f(n + 1; n) j n > 0g, and mother ofF3 = ;. In this structure, 2 is father of 1, 3 is a father of 2, and so on. Logic in Computer Science 2012 15 SK0-structures extended with individual constants To use names for individuals we have to extend the signature. For example, define the signature S by setting S = SK0 [ fa; b; c; dg. Then S-structures are of the form F = (DF ; father ofF ; mother ofF ; aF ; bF ; cF ; dF ); where, in addition, aF ; bF ; cF ; dF 2 DF . We can take, for example, F1 F1 F1 F1 F1 F1 F1 F1 = (D ; father of ; mother of ; a ; b ; c ; d ) defined by • DF1 = f1; 2; 3; 4; 5g; • father ofF1 = ;; • mother ofF1 = f(1; 2); (2; 3)g; • aF1 = 1; bF1 = 1; cF1 = 3; dF1 = 4.
Recommended publications
  • Lecture Slides
    Program Verification: Lecture 3 Jos´eMeseguer Computer Science Department University of Illinois at Urbana-Champaign 1 Algebras An (unsorted, many-sorted, or order-sorted) signature Σ is just syntax: provides the symbols for a language; but what is that language talking about? what is its semantics? It is obviously talking about algebras, which are the mathematical models in which we interpret the syntax of Σ, giving it concrete meaning. Unsorted algebras are the simplest example: children become familiar with them from the early awakenings of reason. They consist of a set of data elements, and various chosen constants among those elements, and operations on such data. 2 Algebras (II) For example, for Σ the unsorted signature of the module NAT-MIXFIX we can define many different algebras, such as the following: 1. IN, the algebra of natural numbers in whatever notation we wish (Peano, binary, base 10, etc.) with 0 interpreted as the zero element, s interpreted as successor, and + and * interpreted as natural number addition and multiplication. 2. INk, the algebra of residue classes modulo k, for k a nonzero natural number. This is a finite algebra whose set of elements can be represented as the set {0,...,k − 1}. We interpret 0 as 0, and for the other 3 operations we perform them in IN and then take the residue modulo k. For example, in IN7 we have 6+6=5. 3. Z, the algebra of the integers, with 0 interpreted as the zero element, s interpreted as successor, and + and * interpreted as integer addition and multiplication. 4.
    [Show full text]
  • Set-Theoretic Geology, the Ultimate Inner Model, and New Axioms
    Set-theoretic Geology, the Ultimate Inner Model, and New Axioms Justin William Henry Cavitt (860) 949-5686 [email protected] Advisor: W. Hugh Woodin Harvard University March 20, 2017 Submitted in partial fulfillment of the requirements for the degree of Bachelor of Arts in Mathematics and Philosophy Contents 1 Introduction 2 1.1 Author’s Note . .4 1.2 Acknowledgements . .4 2 The Independence Problem 5 2.1 Gödelian Independence and Consistency Strength . .5 2.2 Forcing and Natural Independence . .7 2.2.1 Basics of Forcing . .8 2.2.2 Forcing Facts . 11 2.2.3 The Space of All Forcing Extensions: The Generic Multiverse 15 2.3 Recap . 16 3 Approaches to New Axioms 17 3.1 Large Cardinals . 17 3.2 Inner Model Theory . 25 3.2.1 Basic Facts . 26 3.2.2 The Constructible Universe . 30 3.2.3 Other Inner Models . 35 3.2.4 Relative Constructibility . 38 3.3 Recap . 39 4 Ultimate L 40 4.1 The Axiom V = Ultimate L ..................... 41 4.2 Central Features of Ultimate L .................... 42 4.3 Further Philosophical Considerations . 47 4.4 Recap . 51 1 5 Set-theoretic Geology 52 5.1 Preliminaries . 52 5.2 The Downward Directed Grounds Hypothesis . 54 5.2.1 Bukovský’s Theorem . 54 5.2.2 The Main Argument . 61 5.3 Main Results . 65 5.4 Recap . 74 6 Conclusion 74 7 Appendix 75 7.1 Notation . 75 7.2 The ZFC Axioms . 76 7.3 The Ordinals . 77 7.4 The Universe of Sets . 77 7.5 Transitive Models and Absoluteness .
    [Show full text]
  • Logic: Representation and Automated Reasoning
    Logic Knowledge Representation & Reasoning Mechanisms Logic ● Logic as KR ■ Propositional Logic ■ Predicate Logic (predicate Calculus) ● Automated Reasoning ■ Logical inferences ■ Resolution and Theorem-proving Logic ● Logic as KR ■ Propositional Logic ■ Predicate Logic (predicate Calculus) ● Automated Reasoning ■ Logical inferences ■ Resolution and Theorem-proving Propositional Logic ● Symbols: ■ truth symbols: true, false ■ propositions: a statement that is “true” or “false” but not both E.g., P = “Two plus two equals four” Q = “It rained yesterday.” ■ connectives: ~, →, ∧, ∨, ≡ • Sentences - propositions or truth symbols • Well formed formulas (expressions) - sentences that are legally well-formed with connectives E.g., P ∧ R → and P ~ are not wff but P ∧ R → ~ Q is Examples P Q AI is hard but it is interesting P ∧ Q AI is neither hard nor interesting ~P ∧ ~ Q P Q If you don’t do assignments then you will fail P → Q ≡ Do assignments or fail (Prove by truth table) ~ P ∨ Q None or both of P and Q is true (~ P ∧ ~ Q) ∨ (P ∧ Q) ≡ T Exactly one of P and Q is true (~ P ∧ Q) ∨ (P ∧ ~ Q) ≡ T Predicate Logic ● Symbols: • truth symbols • constants: represents objects in the world • variables: represents ranging objects } Terms • functions: represent properties • Predicates: functions of terms with true/false values e.g., bill_residence_city (vancouver) or lives (bill, vancouver) ● Atomic sentences: true, false, or predicates ● Quantifiers: ∀, ∃ ● Sentences (expressions): sequences of legal applications of connectives and quantifiers to atomic
    [Show full text]
  • Axiomatic Set Teory P.D.Welch
    Axiomatic Set Teory P.D.Welch. August 16, 2020 Contents Page 1 Axioms and Formal Systems 1 1.1 Introduction 1 1.2 Preliminaries: axioms and formal systems. 3 1.2.1 The formal language of ZF set theory; terms 4 1.2.2 The Zermelo-Fraenkel Axioms 7 1.3 Transfinite Recursion 9 1.4 Relativisation of terms and formulae 11 2 Initial segments of the Universe 17 2.1 Singular ordinals: cofinality 17 2.1.1 Cofinality 17 2.1.2 Normal Functions and closed and unbounded classes 19 2.1.3 Stationary Sets 22 2.2 Some further cardinal arithmetic 24 2.3 Transitive Models 25 2.4 The H sets 27 2.4.1 H - the hereditarily finite sets 28 2.4.2 H - the hereditarily countable sets 29 2.5 The Montague-Levy Reflection theorem 30 2.5.1 Absoluteness 30 2.5.2 Reflection Theorems 32 2.6 Inaccessible Cardinals 34 2.6.1 Inaccessible cardinals 35 2.6.2 A menagerie of other large cardinals 36 3 Formalising semantics within ZF 39 3.1 Definite terms and formulae 39 3.1.1 The non-finite axiomatisability of ZF 44 3.2 Formalising syntax 45 3.3 Formalising the satisfaction relation 46 3.4 Formalising definability: the function Def. 47 3.5 More on correctness and consistency 48 ii iii 3.5.1 Incompleteness and Consistency Arguments 50 4 The Constructible Hierarchy 53 4.1 The L -hierarchy 53 4.2 The Axiom of Choice in L 56 4.3 The Axiom of Constructibility 57 4.4 The Generalised Continuum Hypothesis in L.
    [Show full text]
  • Propositional Logic
    Propositional Logic - Review Predicate Logic - Review Propositional Logic: formalisation of reasoning involving propositions Predicate (First-order) Logic: formalisation of reasoning involving predicates. • Proposition: a statement that can be either true or false. • Propositional variable: variable intended to represent the most • Predicate (sometimes called parameterized proposition): primitive propositions relevant to our purposes a Boolean-valued function. • Given a set S of propositional variables, the set F of propositional formulas is defined recursively as: • Domain: the set of possible values for a predicate’s Basis: any propositional variable in S is in F arguments. Induction step: if p and q are in F, then so are ⌐p, (p /\ q), (p \/ q), (p → q) and (p ↔ q) 1 2 Predicate Logic – Review cont’ Predicate Logic - Review cont’ Given a first-order language L, the set F of predicate (first-order) •A first-order language consists of: formulas is constructed inductively as follows: - an infinite set of variables Basis: any atomic formula in L is in F - a set of predicate symbols Inductive step: if e and f are in F and x is a variable in L, - a set of constant symbols then so are the following: ⌐e, (e /\ f), (e \/ f), (e → f), (e ↔ f), ∀ x e, ∃ s e. •A term is a variable or a constant symbol • An occurrence of a variable x is free in a formula f if and only •An atomic formula is an expression of the form p(t1,…,tn), if it does not occur within a subformula e of f of the form ∀ x e where p is a n-ary predicate symbol and each ti is a term.
    [Show full text]
  • First Order Logic and Nonstandard Analysis
    First Order Logic and Nonstandard Analysis Julian Hartman September 4, 2010 Abstract This paper is intended as an exploration of nonstandard analysis, and the rigorous use of infinitesimals and infinite elements to explore properties of the real numbers. I first define and explore first order logic, and model theory. Then, I prove the compact- ness theorem, and use this to form a nonstandard structure of the real numbers. Using this nonstandard structure, it it easy to to various proofs without the use of limits that would otherwise require their use. Contents 1 Introduction 2 2 An Introduction to First Order Logic 2 2.1 Propositional Logic . 2 2.2 Logical Symbols . 2 2.3 Predicates, Constants and Functions . 2 2.4 Well-Formed Formulas . 3 3 Models 3 3.1 Structure . 3 3.2 Truth . 4 3.2.1 Satisfaction . 5 4 The Compactness Theorem 6 4.1 Soundness and Completeness . 6 5 Nonstandard Analysis 7 5.1 Making a Nonstandard Structure . 7 5.2 Applications of a Nonstandard Structure . 9 6 Sources 10 1 1 Introduction The founders of modern calculus had a less than perfect understanding of the nuts and bolts of what made it work. Both Newton and Leibniz used the notion of infinitesimal, without a rigorous understanding of what they were. Infinitely small real numbers that were still not zero was a hard thing for mathematicians to accept, and with the rigorous development of limits by the likes of Cauchy and Weierstrass, the discussion of infinitesimals subsided. Now, using first order logic for nonstandard analysis, it is possible to create a model of the real numbers that has the same properties as the traditional conception of the real numbers, but also has rigorously defined infinite and infinitesimal elements.
    [Show full text]
  • First-Order Logic
    First-Order Logic Chapter 8 1 Outline • Why FOL? • Syntax and semantics of FOL • Using FOL • Wumpus world in FOL • Knowledge engineering in FOL 2 Pros and cons of propositional logic ☺ Propositional logic is declarative ☺ Propositional logic allows partial/disjunctive/negated information – (unlike most data structures and databases) ☺ Propositional logic is compositional: – meaning of B1,1 ∧ P1,2 is derived from meaning of B1,1 and of P1,2 ☺ Meaning in propositional logic is context-independent – (unlike natural language, where meaning depends on context) Propositional logic has very limited expressive power – (unlike natural language) – E.g., cannot say "pits cause breezes in adjacent squares“ • except by writing one sentence for each square 3 First-order logic • Whereas propositional logic assumes the world contains facts, • first-order logic (like natural language) assumes the world contains – Objects: people, houses, numbers, colors, baseball games, wars, … – Relations: red, round, prime, brother of, bigger than, part of, comes between, … – Functions: father of, best friend, one more than, plus, … 4 Syntax of FOL: Basic elements • Constants KingJohn, 2, NUS,... • Predicates Brother, >,... • Functions Sqrt, LeftLegOf,... • Variables x, y, a, b,... • Connectives ¬, ⇒, ∧, ∨, ⇔ • Equality = • Quantifiers ∀, ∃ 5 Atomic sentences Atomic sentence = predicate (term1 ,...,termn) or term = term 1 2 Term = function (term1,..., termn) or constant or variable • E.g., Brother(KingJohn,RichardTheLionheart) > (Length(LeftLegOf(Richard)), Length(LeftLegOf(KingJohn)))
    [Show full text]
  • Atomic Sentences
    Symbolic Logic Study Guide: Class Notes 5 1.2. Notes for Chapter 2: Atomic Sentences 1.2.1. The Basic Structure of Atomic Sentences (2.1, 2.2, 2.3, and 2.5 of the Text) 1. Comparison between simple English sentences and atomic sentences Simple English Sentences Atomic sentences (FOL) (subject-predicate sentences) John is a freshman Freshman (John) John swims. Swim (John) John loves Jenny. Love (John, Jenny) John prefers Jenny to Amy. Prefer (John, Jenny, Amy) John’s mother loves Jenny. Love (mother (John), Jenny) The father of Jenny is angry. Angry (father (Jenny)) John is the brother of Jenny. John = brother (Jenny) [relational identity] 2. Names Definition: Names are individual constants that refer to some fixed individual objects or other. (1) The rule of naming (p. 10) • No empty name. • No multiple references (do not use one name to refer to different objects). • Multiple names: you can name one object by different names. (2) General terms / names: using a predicate, instead of a constant, to represent a general term. For example, John is a student Student (John) [correct] John = student [wrong!!!] 3. Predicates Definition: Predicates are symbols used to denote some property of objects or some relationship between objects. (1) Arity of predicates • Unary predicates--property • Binary predicates Relations • Ternary predicates (2) The predicates used in Tarski’s World: see p. 11. (3) Two rules of predicates: see p.12. 6 Symbolic Logic Study Guide: Class Notes 4. Functions Definition: A function is an individual constant determined by another constant. (1) Comparison with names: • Both refer to some fixed individual objects.
    [Show full text]
  • 1 Winnowing Wittgenstein: What's Worth Salvaging from the Wreck Of
    Winnowing Wittgenstein: What’s Worth Salvaging from the Wreck of the Tractatus Peter Simons Trinity College Dublin Abstract Wittgenstein’s Tractatus still harbours valuable lessons for contemporary philosophy, but which ones? Wittgenstein’s long list of things we cannot speak about is set aside, but his insistence that the logical constants do not represent is retained, as is the absolute distinction between names and sentences. We preserve his atomism of elementary sentences but discard the atomism of simple objects in states of affairs. The fundamental harmony between language and the world is rejected: it is the source of much that is wrong in the Tractatus. What remains is a clarified role for items in making elementary sentences true. 1 Introduction Kevin Mulligan has maintained throughout his philosophical career a keen and judicious appreciation of the chief figures of that great philosophical explosion centred on Austria in the 19th and early 20th century. Of these figures, the best-known and most widely influential is Ludwig Wittgenstein.1 Kevin has maintained, quite rightly, that it is impossible to appreciate the extent to which Wittgenstein’s contributions to philosophy are as original as his many admirers contend without a great deal more knowledge of the Central European milieu from which Wittgenstein emerged than the majority of these admirers care to or are prepared to investigate. In this respect the more diffuse and ample later philosophy presents a much greater challenge than the early work which culminated in the Logisch-philosophische Abhandlung.2 The modest extent of the Tractatus and its more limited period of genesis, as well as its relatively crisper form and content, render it a more manageable and ultimately less controversial work than the post-Tractarian writings, whose thrust is even today occasionally obscure, despite more than a half century of frenzied exegesis.
    [Show full text]
  • Symmetric Approximations of Pseudo-Boolean Functions with Applications to Influence Indexes
    SYMMETRIC APPROXIMATIONS OF PSEUDO-BOOLEAN FUNCTIONS WITH APPLICATIONS TO INFLUENCE INDEXES JEAN-LUC MARICHAL AND PIERRE MATHONET Abstract. We introduce an index for measuring the influence of the kth smallest variable on a pseudo-Boolean function. This index is defined from a weighted least squares approximation of the function by linear combinations of order statistic functions. We give explicit expressions for both the index and the approximation and discuss some properties of the index. Finally, we show that this index subsumes the concept of system signature in engineering reliability and that of cardinality index in decision making. 1. Introduction Boolean and pseudo-Boolean functions play a central role in various areas of applied mathematics such as cooperative game theory, engineering reliability, and decision making (where fuzzy measures and fuzzy integrals are often used). In these areas indexes have been introduced to measure the importance of a variable or its influence on the function under consideration (see, e.g., [3, 7]). For instance, the concept of importance of a player in a cooperative game has been studied in various papers on values and power indexes starting from the pioneering works by Shapley [13] and Banzhaf [1]. These power indexes were rediscovered later in system reliability theory as Barlow-Proschan and Birnbaum measures of importance (see, e.g., [10]). In general there are many possible influence/importance indexes and they are rather simple and natural. For instance, a cooperative game on a finite set n = 1,...,n of players is a set function v∶ 2[n] → R with v ∅ = 0, which associates[ ] with{ any}coalition of players S ⊆ n its worth v S .
    [Show full text]
  • Chapter 1. Sentential Logic
    CHAPTER 1. SENTENTIAL LOGIC 1. Introduction In sentential logic we study how given sentences may be combined to form more complicated compound sentences. For example, from the sentences 7 is prime, 7 is odd, 2 is prime, 2 is odd, we can obtain the following sentences: • 7 is prime and 7 is odd • 7 is odd and 2 is odd • 7 is odd or 2 is odd • 7 is not odd • If 2 is odd then 2 is prime Of course, this process can be iterated as often as we want, obtaining also: • If 7 is not odd then 2 is odd • If 7 is odd and 2 is odd then 2 is not prime • (7 is odd and 2 is odd) or 2 is prime We have improved on English in the last example by using parentheses to resolve an ambiguity. And, or, not, if . then (or implies) are called (sentential) connectives. Using them we can define more connectives, for example 2 is prime iff 2 is odd can be defined as (If 2 is prime then 2 is odd) and (if 2 is odd then 2 is prime). The truth value of any compound sentence is determined completely by the truth values of its component parts. For example, assuming 2, 7, odd, prime all have their usual meanings then 7 is odd and 2 is odd is false but (7 is odd and 2 is odd) or 2 is prime is true. We will discuss implication later. In the formal system of sentential logic we study in this Chapter, we do not use English sentences, but build the compound sentences from an infinite collection of symbols which we think of as referring to sentences — since these are not built up from other sentences we refer to them as atomic sentences.
    [Show full text]
  • Building the Signature of Set Theory Using the Mathsem Program
    Building the Signature of Set Theory Using the MathSem Program Luxemburg Andrey UMCA Technologies, Moscow, Russia [email protected] Abstract. Knowledge representation is a popular research field in IT. As mathematical knowledge is most formalized, its representation is important and interesting. Mathematical knowledge consists of various mathematical theories. In this paper we consider a deductive system that derives mathematical notions, axioms and theorems. All these notions, axioms and theorems can be considered a small mathematical theory. This theory will be represented as a semantic net. We start with the signature <Set; > where Set is the support set, is the membership predicate. Using the MathSem program we build the signature <Set; where is set intersection, is set union, -is the Cartesian product of sets, and is the subset relation. Keywords: Semantic network · semantic net· mathematical logic · set theory · axiomatic systems · formal systems · semantic web · prover · ontology · knowledge representation · knowledge engineering · automated reasoning 1 Introduction The term "knowledge representation" usually means representations of knowledge aimed to enable automatic processing of the knowledge base on modern computers, in particular, representations that consist of explicit objects and assertions or statements about them. We are particularly interested in the following formalisms for knowledge representation: 1. First order predicate logic; 2. Deductive (production) systems. In such a system there is a set of initial objects, rules of inference to build new objects from initial ones or ones that are already build, and the whole of initial and constructed objects. 3. Semantic net. In the most general case a semantic net is an entity-relationship model, i.e., a graph, whose vertices correspond to objects (notions) of the theory and edges correspond to relations between them.
    [Show full text]