Académique Documents
Professionnel Documents
Culture Documents
http://cs.ubbcluj.ro/~lupea/LOGICA/Engleza
Objectives:
The aim of the course is the presentation of logical foundations of computer science: propositional calculus and predicate calculus, theorem proving methods, Boolean algebras and Boolean functions. The connection with logic programming and logical circuits is presented. Additionally, notions related to information representation are introduced.
Competences:
to use numeration systems and internal numbers representations; to understand the theoretical aspects of classical logics; to understand classical logics from a computational perspective (apply specific proof methods)
to model the human reasoning and mathematical reasoning using propositional logic and predicate logic; to understand logical circuits and to simplify them using specific simplification methods for Boolean functions.
Methods:
lecturers, exercises, individual study;
specific bibliographic materials are used (books, articles, Internet Resources). each student, individually, has to solve and present during the seminars, problems from an existing benchmark of proposed problems ( M. Lupea, A. Mihis , 2009, 2011).
optional homework
Content:
I. Numeration systems, information encoding, numbers representations II. Classical logics: propositional and predicate logics III. Boolean algebras, Boolean functions and logical circuits
definitions, representation and operations (algorithms for comparison, conversions between bases using the methods (calculus in the source base,
addition, subtraction, multiplication, division to a digit) of numbers in a base b. 2. calculus in the destination base, using an intermediate base) for integer and rational numbers.
3.
Numbers representation 1. representation for unsigned integers, operations (!!overflow!!), algorithms for multiplication and division. 2. representation for signed integers: direct code, inverse code, complementary code, operations and subunitary convention. 3. representations for real numbers: representation . References:
1)
F. Boian: Bazele Matematice ale Calculatoarelor, Editura Presa Universitara M. Cocan, B. Pop: Bazele matematice ale sistemelor de calcul (chapter 1), A. Vancea, F. Boian, D.Bufnea, A.Gog, A.Darabant, A.Sabau: Arhitectura
Clujeana, 2002.
2)
calculatoarelor. Limbajul de asamblare 80x86, (chapter 1), Editura Risoprint, ClujNapoca, 2005.
Applications:
Automated theorem proving systems (ATP) are used in a wide variety of domains: Mathematics: EQPBoolean algebras, OTTER-algebra, Geometry ExpertEuclidian geometry) Computer science
o o
natural languages, artificial vision, intelligent agents. Software generation and verification: KIDS (Kestrel Institute- scheduling algorithms), AMPHION (NASA programs for satellite guidance), KIV (Karlsruhe: software verification safe command transfer in a space vehicle, supervision of neutron flow in a nuclear reactor), PVS (NASA verification of aerospace software). Hardware verification: ACL2 system (proof correctness of the floating point divide code for AMD5K86 microprocessor), ANALYTICA (verification of the division circuit that implements the floating point standard of IEEE), HOL system (Bell Laboratories).
Propositional logic Logical propositions are models of propositional assertions from natural language, which can be true or false.
P: It is sunny. S: P Q R Theorem proving: From P,Q,S (the hypotheses) can we deduce (infer) R (the conjecture)? 1. Syntax (connectives, formulas) of propositional logic. 2. Semantics: interpretation, model, consistent formula, inconsistent formula, tautology, logical consequence; truth table a direct proof method. 3. Laws (logical equivalences): DeMorgan, absorption, commutativity, associativity, distributivity, idempotency. 4. Clauses and normal forms: conjunctive normal form (CNF) and disjunctive normal form (DNF), algorithm for transformation of a formula into DNF and CNF.
5.
Q: It is hot outside.
Formal (axiomatic) system associated to propositional logic, modus ponens rule, deduction, theorem.
Theorem of soundness and theorem of completeness for propositional logic; properties: non-contradiction, coherence and decidability of propositional logic.
free formula.
2. The formal (axiomatic) system associated to predicate logic.
3. Semantics of predicate logic: interpretation, model, valid formula, consistent formula, inconsistent formula, logical consequence. 4. Prenex normal form, Skolem theorem, Skolemization algorithm, clausal normal form. 5. Theorem of soundness and theorem of completeness for predicate logic; noncontradiction, coherence and semi-decidability of predicate logic. 6. Semantic tableaux method for predicate logic rules for quantifiers. 7. Herbrand universe, Herbrand system, Herbrand interpretation, Herbrand theorem; a refutation proof method based on Herbrand theorem (a semi-decidable procedure).
8. Substitutions and unifications- theory, algorithm for obtaining the most general
References
1. 2. 3.
M. Ben-Ari: Mathematical Logic for Computer Science, Ed. Springer, 2001. W. Bibel: Automated theorem proving, View Verlag, 1987. C.L. Chang, R.C.T. Lee: Symbolic Logic and Mechanical Theorem Proving, Academic Press 1973. M. Clarke: Logic for Computer Science, Ed. Eddison-Wesley 1990. J.P. Delahaye: Outils logiques pour l'intelligence artificielle, Ed Eyrolls, 1986. M. Fitting: First-order logic and Automated Theorem Proving, Ed. Springer Verlag, 1990. Mihaela Malita, Mircea Malita: Bazele Inteligentei Artificiale, Vol. I, Logici propozitionale, Ed. Tehnica, Bucuresti, 1987 library. M. Lupea, A. Mihi: Logici clasice i circuite logice. Teorie i exemple, Editura Albastra, edition I-2008, edition II 2009, edition III-2011. L.C. Paulson: Logic and Proof, Univ. Cambridge, 2000, on-line course. M. Possega: Deduction Systems, Inst. of Informatics, 2002, on-line course. (ed) A.Thayse: From standard logic to Logic Programming, Ed. J.Wiley, vol1(1989), vol2(1989), vol3(1990). D.Tatar: Bazele matematice ale calculatoarelor, edition 1999- library. D.Tatar: Inteligenta artificiala: demonstrare automata de teoreme si NLP, Ed. Microinformatica, 2001 library.
4. 5. 6.
7.
8.
9. 10. 11.
12. 13.
definitions: maximal monoms, central monoms, factorization; Veitch-Karnaugh diagrams method for functions with 2-3 variables; Quines method, Moisil method.
4. Logical circuits definitions, representations for basic gates (and, or, not) and derived gates (xor, nand, nor) and relations between them.
comparison circuit, addition circuit; References: 1) M. Cocan, B. Pop: Bazele matematice ale sistemelor de calcul (chapter 2), Editura Albastra, Cluj-Napoca, 2001 library.
2)
M. Lupea, A. Mihi: Logici clasice i circuite logice. Teorie i exemple., Editura Albastra, edition I -2008, edition II - 2009, edition III - 2011.
know to perform operations and conversions in different numeration bases know to represent integer and real numbers
2. Written paper (during course 14 2 hours) with 3 subjects (theory and exercises)
propositional logic predicate logic Boolean algebras, Boolean functions and their simplification, logical circuits
responses + individual presentations of exercises from an existing benchmark of proposed exercises ( M. Lupea, A. Mihis , 2009, 2011).
an application (programming languages:Pascal, C, C++, Java,) related to conversions and operations in different numeration systems; deadline for application submission: week 3-7 December 2012.
or
to solve a set of problems which model the mathematical reasoning and the common-sense reasoning, using the studied proof methods for propositional and predicate logics. deadline for homework submission: week 7-11 January 2013.
!! At least grade 5 (from a scale of 1 to 10) at written papers and seminar activity. !! Attendance to courses is mandatory for at least 75% - 10 courses.