# FOUNDATIONS OF COMPUTER SCIENCE M - Z

**Academic Year 2018/2019**- 1° Year

**Teaching Staff:**

**Maria Serafina MADONIA**

**Credit Value:**9

**Taught classes:**36 hours

**Exercise:**36 hours

**Term / Semester:**1°

## Learning Objectives

**Knowledge and understanding**: students will acquire knowledge relative to some of the most important formal theories that are fundamental in Informatics. He will understand how all the aspects of applied Informatics have been realized or influenced by knowledge developed at a theoretical level.

**Applying knowledge and understanding**: students will acquire the ability of applying theoretical notions in applicative contexts.

**Making judgements**: students will be stimulated to search independently which aspects of theoretical computer science are used in topics covered in more applicative courses he followed in the same year. They will also be stimulated to understand how topics of other different courses could be formalized in mathematical logic.

**Communication skills: **students will acquire the necessary communication skills and expressive ability in order to express in a formal and non-ambiguous way scientific arguments.

**Learning skills**: students will get the competences to tackle independentlythe study of theoretical arguments when formally described.

## Course Structure

Each lesson is divided into two parts. The first one (about one third of the time) is devoted to the solution of exercises and to the clarification of unclear topics of the previous lessons. The second part is devoted to the explanation of new topics.

## Detailed Course Content

**Elements of Theory of formal languages:**

*Alphabet, string, language. Operations on languages. Regular expressions. Cardinality of languages.**Chomsky grammars. Type 0,1,2,3 grammars. Chomsky Hierarchy. Bakus normal form.**What does it mean ''to compute''**Recognition and decision of languages. Automata.**Finite state automata, deterministic and nondeterministic.**Pumping Lemma for FSA.**Context-free languages: a hint.*

**Computational models and computability theory:**

*Turing machines and universal Turing machine.**Introduction to functional programming and the lambda-calculus**free and bound variables, alpha-conversion, substiturions, beta-reduction. Definition of formal system, Church numerals. Lambda-definable functions.**Lambda-definability of recursive functions. Uniqueness of normal form. Consistency of beta-conversion theory.**The formalism of primitive recursive functions and partial functions.**Informal introduction to recursion theory and some fundamental results.**A logic-based computational model: a sketchy introduction to logic programming.*

**Codes and representation of numerical information:**

*Codes and two-complements representation of integers.**Strings vs Numbers*

**Abstract machines. **

*Abstract machine definition.**Implementation of abstract machines; layered organization of computation systems.*

**Logics:**

*Formal systems. Admissible and derivable rules. Some properties of formal systems. Consistency.**Propositional logic definition and main properties. Deduction theorem.**Semantics of propositional logics. Soundness and completeness.**Natural deduction for propositional logics-**The correspondence proofs as programsLa corrispondenza dimostrazioni-programmi**First-order logic: language and semantics.**Substitutions, natural deduction, axiomatic system.**Statements of fundamental theorems.**Arithmetic and group theory formalizations.**Statements of some fundamental theorems. .**Induction-Recursion correspondence: a hint.*

**Programming-languages semantics:**

*Structured Operational Semantics*

The work of the computer scientists in a globalized world.

## Textbook Information

http://www.dmi.unict.it/~barba/FONDAMENTI/PROGRAMMI-TESTI/programmaAAcorrente.html