Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 3 fuera de 20 páginas
Resumen

Samenvatting Logica voor Informatica (INFOB1LI)

Document preview thumbnail
Vista previa 3 fuera de 20 páginas

Alle stof van het vak Logica voor Informatica (INFOB1LI), duidelijk en gestructureerd samengevat. Gebaseerd op de hoorcolleges, lecture notes en het boek Modelling Computing Systems - Mathematics for Computer Science (ISBN: 978-1-84800-321-7).

Vista previa del contenido




Logic‌‌for‌‌Computer‌‌Science‌ ‌

Propositional‌‌logic‌ 1‌ ‌

Sets‌ 2‌ ‌

Boolean‌‌algebra‌ 3‌ ‌

Predicate‌‌logic‌ 4‌ ‌

Proof‌‌strategies‌ 5‌ ‌

Functions‌ 8‌ ‌

Relations‌ 9‌ ‌

Induction/Recursion‌ 11‌ ‌
Proof‌‌by‌‌induction‌ 12‌ ‌
Labeled‌‌transition‌‌systems‌ 13‌ ‌

Natural‌‌deduction‌ 15‌ ‌

Semantics‌ 16‌ ‌
Semantics‌‌for‌‌propositional‌‌logic‌ 16‌ ‌
Semantics‌‌for‌‌expressions‌ 16‌ ‌
Semantics‌‌for‌‌programs‌ 17‌ ‌
Hoare‌‌logic‌ 19‌ ‌








, ‌

Propositional‌‌logic‌ ‌
Invariant‌‌‌Something‌‌that‌‌remains‌‌unchanged‌‌over‌‌any‌‌change‌‌to‌‌the‌‌situation‌ ‌
Proposition‌‌ ‌Declarations‌‌that‌‌are‌‌either‌‌true‌‌or‌‌false;‌S ‌ tatements‌ ‌
- Propositional‌‌logic‌‌studies‌‌when‌‌such‌‌statements‌‌are‌‌true‌‌or‌‌false‌ ‌
- A‌d ‌ eduction‌‌‌can‌‌be‌‌made‌‌to‌‌infer‌‌the‌‌truth‌‌of‌‌the‌c‌ onclusion‌‌‌from‌‌the‌‌truth‌‌of‌‌the‌‌
first‌‌two‌‌statements,‌‌the‌p‌ remises‌ ‌

Variables‌‌with‌‌capital‌‌letters‌‌P,‌‌Q‌‌or‌‌R‌‌denote‌a ‌ tomic‌‌propositions‌;‌‌Lower‌‌case‌‌variables‌‌such‌‌
as‌‌p ,‌‌q ‌or‌‌r ‌are‌‌not‌‌propositional‌‌formulas,‌‌but‌m ‌ etavariables‌.‌ ‌

Order‌‌of‌‌priority:‌ ‌
1. Parentheses‌‌(‌‌)‌ ‌
2. Negation‌‌¬ ‌
3. Conjunction‌‌⋀ ‌
4. Disjunction‌‌⋁ ‌
5. Implication‌‌⇒
6. Equivalence‌‌⇔ ‌
→ p ⋀ q ⋁ ¬r ‌becomes‌‌(p ⋀ q ) ⋁ ¬r ‌

Binary‌‌operator‌‌ ‌Propositional‌‌formula‌‌
that‌‌requires‌‌two‌‌arguments‌‌to‌‌form‌‌a‌‌new‌‌
proposition‌‌(‌⋀ ,‌‌⋁ )‌ ‌
Unary‌‌operator‌‌ ‌Propositional‌‌formula‌‌that‌‌
requires‌‌only‌‌one‌‌argument‌‌to‌‌form‌‌a‌‌new‌‌proposition‌‌(‌¬ )‌ ‌







Tautology‌‌‌Proposition‌‌that‌‌is‌‌true‌‌regardless‌‌of‌‌the‌‌truth‌‌values‌‌of‌‌its‌‌atomic‌‌propositions‌ ‌
- Proposition‌‌(argument)‌‌is‌‌said‌‌to‌‌be‌v‌ alid‌ ‌
Contradiction‌‌ P
‌ roposition‌‌that‌‌is‌‌false‌‌regardless‌‌of‌‌the‌‌truth‌‌values‌‌of‌‌its‌‌atomic‌‌propositions‌ ‌
- Proposition‌‌is‌‌said‌‌to‌‌be‌u ‌ nsatisfiable‌ ‌
- Proposition‌‌that‌‌is‌‌true‌‌under‌‌some‌‌interpretation‌‌of‌‌its‌‌atomic‌‌propositions‌‌is‌s‌ atisfiable‌ ‌




1‌ ‌

, ‌

Sets‌ ‌
Set‌‌ ‌Collection‌‌of‌e‌ lements‌‌
(‌members‌)‌‌that‌‌typically‌‌share‌‌a‌‌
property‌ ‌
Cardinality‌‌ ‌Number‌‌of‌‌elements‌‌
in‌‌a‌‌set,‌‌noted‌‌as‌‌∣A∣ ‌for‌‌a‌‌set‌‌A ‌

Standard‌‌mathematical‌‌sets‌ ‌
- Empty‌‌set:‌‌∅ = { } ‌
- Binary‌‌digits:‌‌�� = {0, 1‌}
- Natural‌‌numbers:‌‌ℕ = {0, 1, 2, 3, ...} ‌
- Integers:‌‌ℤ = {... ,− 3,− 2,− 1, 0, 1, 2, 3, ...} ‌
- Rational‌‌numbers:‌‌ℚ = { mn : m, n ∈ ℤ, n =/ 0} ‌
- m ‌and‌‌n ‌cannot‌‌both‌‌be‌‌even‌ ‌
- Real‌‌numbers:‌‌ℝ = {x : x i‌s‌‌a‌‌real‌‌number‌} ‌

Operations‌‌on‌‌sets‌ ‌
- Membership‌o ‌ f‌‌a‌‌set:‌∈
‌ ‌‌and‌∉‌ ‌‌
- Subset‌:‌‌⊆ ‌
- A=B ⇔A⊆B⋀B ⊆A ‌
- Superset‌:‌‌⊇ ‌
- Proper‌‌subset/superset‌:‌‌⊂‌‌and‌‌⊃‌ ‌
- Union‌:‌‌⋃ ‌
- A ⋃ B ‌are‌‌all‌‌elements‌‌in‌‌either‌‌A ‌or‌‌B ‌
- ∣A ⋃ B∣ = ∣A∣ + ∣B ∣ − ∣A ∩ B ∣ ‌
- Intersection‌:‌‌⋂ ‌
- A ∩ B ‌are‌‌all‌‌elements‌‌in‌‌both‌‌A ‌and‌B ‌
- Two‌‌sets‌‌are‌d ‌ isjoint‌‌‌when‌‌A ∩ B = ∅ ‌
- Difference‌:‌‌∖ ‌
- A ∖ B ‌are‌‌all‌‌elements‌‌in‌‌A ,‌‌but‌‌not‌‌in‌‌B ‌
- Complement‌:‌‌Ā ‌
- Elements‌‌outside‌‌of‌‌A ‌(within‌u ‌ niverse‌‌of‌‌discourse‌‌U ‌)‌ ‌
- Powerset‌:‌‌P
- Powerset‌‌P (A) ‌of‌‌A ‌consists‌‌of‌‌all‌‌subsets‌‌of‌‌A ‌including‌‌
1‌‌subset‌‌∅ ‌
- A ∈ P (A) ,‌‌but‌‌NOT‌‌A ⊆ P (A) ‌
- P f in (A) ‌are‌‌all‌‌finite‌‌subsets‌‌of‌‌A ‌
- If‌‌∣A∣ = n ,‌‌then‌‌∣P (A)∣ = 2n ‌

For‌‌an‌‌ordered‌‌pair‌‌(a, b) =/ (b, a) ,‌‌whereas‌‌{a, b} = {b, a} ‌
Cartesian‌‌product‌ ‌A × B = {(a, b) : a ∈ A and b ∈ B } ‌
- An = A × A × ... × A ,‌‌for‌‌example‌‌ℝ2 ‌denotes‌‌an‌‌x, y ‌plane‌‌and‌‌ℝ3 ‌a‌‌3D‌‌space‌‌ ‌
- You‌‌can‌‌define‌‌a‌‌point‌‌on‌‌a‌‌screen‌‌as‌‌the‌‌ordered‌‌pair‌‌((x, y), (r, g, b)) ,‌‌with‌‌the‌‌
second‌‌coordinate‌‌being‌‌the‌‌ordered‌‌triple‌‌for‌‌an‌‌RGB‌‌value‌ ‌




2‌ ‌

Libro relacionado
 image
Faron Moller, Georg Struth Modelling Computing Systems
Editorial: Desconocido ISBN: 9781848003217 Edición: 2013

Información del documento

Estudio
¿Un libro?
Subido en
9 de septiembre de 2021
Archivo actualizado en
6 de octubre de 2021
Número de páginas
20
Escrito en
2020/2021
Tipo
Resumen
$10.21

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
Suniht
3.9
(13)
Vendido
96
Seguidores
55
Artículos
19
Última venta
3 meses hace




Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes