Home
Explore
Exams
Login
Get started
Home
Engineering
Computer Science
COMP 230 Midterm Terms
0.0
(0)
Rate it
Studied by 0 people
View linked note
Call Kai
Learn
Practice Test
Spaced Repetition
Match
Flashcards
Knowt Play
Card Sorting
1/99
Earn XP
Description and Tags
Computer Science
All Modes
Learn
Practice Test
Matching
Spaced Repetition
Call with Kai
Last updated 3:37 AM on 12/20/22
Update
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
No analytics yet
Send a link to your students to track their progress
100 Terms
View all (100)
Star these 100
1
New cards
Proof (basic)
sequence of statements connected by inferences
2
New cards
Theorem (basic)
last line in a proof
3
New cards
Lemma
theorem used within another proof
4
New cards
Conditional statement
If A then B
5
New cards
Biconditional statement
A iff B
6
New cards
Deductive reasoning
the truth of the conclusion necessarily follows the truth of the premises
7
New cards
Inductive reasoning
the conclusion is made more likely by the premises
8
New cards
Recursive definition
defines a term of a function based on other term/s in the function
9
New cards
Parts of a recursive definition
Base clause, induction clause, final clause
10
New cards
Parts of mathematical induction
Base case, induction step/s (via induction hypothesis), conclusion
11
New cards
Set
unordered collection of objects (elements that have certain properties)
12
New cards
Extensional presentation
{the set, written out}
13
New cards
Intensional presentation
{x ∈ A | P(x)}
14
New cards
Russell’s paradox
S = {x | x is not an element of x}. Is S ∈ S?
15
New cards
A ∩ B
intersection (only elements in both)
16
New cards
A ∪ B
union (all of the elements)
17
New cards
Ā
complement (all elements not in A)
18
New cards
𝒫(A)
powerset (set of all subsets INCLUDING the empty set)
19
New cards
Ordered pair
collection of elements where the order matters
20
New cards
A × B
cross product (set of all ordered pairs consisting of elements from the two sets) (n*m)
21
New cards
R (relation)
subset of a cross product (so it's a set of ordered pairs) (2^(n*m))
22
New cards
Function
*single-valued* binary relation on A and B where every element of the domain is mapped to some element
23
New cards
Injective
one-one; for every element in the range, there is only one x
24
New cards
Surjective
onto; range = codomain (every element of B is used)
25
New cards
Bijective
one-to-one correspondence; both injective and surjective
26
New cards
Countably infinite
equinumerous to ℕ (= ℵo)
27
New cards
Diagonalization
method to prove uncountable infinity of a set
28
New cards
Cantor's Theorem
|𝒫(A)| > |A|; prove by contradiction
29
New cards
Continuum Hypothesis
there is no set with cardinality greater than |ℕ| but less than |ℝ| (ℵ1)
30
New cards
Parts of a formal system
alphabet (well-formed strings), axioms, inference rules
31
New cards
Metavariable
belongs to the metalanguage, stands for an element of the object language
32
New cards
Derivation (formal systems)
non-empty sequence of strings where each string is either an axiom or obtained from an earlier string using an inference rule
33
New cards
Theorem (formal systems)
last string in a derivation
34
New cards
M-Mode
mechanical mode; inside a system; object-language (reasoning within the formal system)
35
New cards
I-Mode
intelligent mode; outside a system; meta-language (reasoning about the formal system)
36
New cards
Decision procedure
guarantees a yes/no after a finite amount of time
37
New cards
Decidable
if a question has a decision procedure
38
New cards
Axiom schema
a metalanguage formula that generates axioms of a formal system
39
New cards
Model
interpretation where all axioms and all theorems are true
40
New cards
Interpretation
mapping theorems to true statements; mapping from alphabet to give meaning to well-formed strings
41
New cards
Soundness
every theorem is a true statement (syntax to semantics)
42
New cards
Completeness
every true statement (of a particular form) is a theorem (semantics to syntax)
43
New cards
Recursively enumerable
a set whose members can be generated as theorems of a formal system
44
New cards
Recursive
both the theorems and non-theorems can be generated by a formal system (decidable)
45
New cards
Explicit definition
definition by the expression of old terms already in the system (
46
New cards
Implicit definition
definition by context of usage
47
New cards
Syntactic equivalence
whatever you can prove from a set of assumptions and P, you can also prove with the same set of assumptions and Q
48
New cards
Playfair's postulate
equivalent to Euclid's fifth postulate
49
New cards
Independence
both P and ~P cannot be proved from a set of assumptions
50
New cards
Truth preservation
if the premises are true, then the conclusion must also be true
51
New cards
Elliptic geometry
no-parallel non-Euclidean geometry
52
New cards
Hyperbolic geometry
many-parallel non-Euclidean geometry
53
New cards
Atomic formula tree
any propositional variable alone
54
New cards
Tautology
a well-formed formula of propositional logic that is always true (decision procedure = truth table)
55
New cards
Logically equivalent
when two formulas yield exactly the same column in a truth table
56
New cards
Semantic consequence
entailment; determined via truth tables
57
New cards
Entailment
when a well-formed formula follows from a set of well-formed formulas
58
New cards
Modus ponens
B follows from A ⊃ B and A
59
New cards
Premises (natural deduction calc)
formulas at the top of a derivation tree
60
New cards
Conclusion (natural deduction calc)
formula at the bottom of a derivation tree
61
New cards
Axiomatic calculus
proof system that has only a single inference rule (modus ponens) and a rule for substitutions
62
New cards
Proof (axiomatic calc)
similar to derivation; sequence of formulas where all are either axioms or obtained by applying inference rules to axioms
63
New cards
Syntactic consequence
provability; determined via logical calculi
64
New cards
Extralogical symbols of ℒ
meaning is determined by an interpretation; function and predicate symbols
65
New cards
Terms (FOA)
variable/s and function symbol (names)
66
New cards
Formulas (FOA)
variable/s and predicate symbol; can be joined by logical connectives; can be the scope of quantifiers (statements)
67
New cards
σ
maps formulas to truth values and terms to elements of the domain (interpretation and/or valuation)
68
New cards
Valuation
interpretation that also assigns elements from the domain to the variables
69
New cards
σ satisfies A
A^σ is TRUE
70
New cards
σ satisfies Γ
σ satisfies every member (every A) in Γ
71
New cards
Logically true
⊨A; every valuation satisfies A (tautology)
72
New cards
Logical consequence
Γ⊨A; every valuation that makes every formula in Γ true also makes A true
73
New cards
Bound
when a variable falls inside the scope of a quantifier
74
New cards
Free variables
unbound variables
75
New cards
Closed term
the term contains no variables
76
New cards
Sentence
formula without free variables
77
New cards
theory
A set of sentences that are closed under deduction (s is an element of T iff T proves s)
78
New cards
axiomatic theory
Every element of the theory can be deduced from a DECIDABLE set of axioms
79
New cards
consistent theory
The theory does not contain/prove an inconsistent pair of formulas
80
New cards
complete theory
If, for any sentence A, the theory proves either A or ~A
81
New cards
showing consistency of a theory
Give a model that makes all formulas true
82
New cards
Hilbert's Program
“Finitary arithmetic”; consistency of the theory of natural numbers
83
New cards
Dedekind-Peano axioms
About the natural numbers, in the language of FOA
84
New cards
Gödel numbers
An interpretation (coding) of the wffs of a formal system as natural numbers
85
New cards
dual nature
Gödel numbers; can be treated either typographically (symbols/numerals) or arithmetically (numbers); syntax or semantics
86
New cards
arithmetization
Formal system --\> arithmetic (Gödel numbering)
87
New cards
producible numbers
r.e. (because theorems of a formal system are r.e.)
88
New cards
formalization
Arithmetic --\> FOA
89
New cards
the power of Gödel numbering
Allows formal systems (FOA, TNT) to speak (make statements) about themselves
90
New cards
Church-Turing thesis
Any real-world computation can be translated into a Turing Machine; any non-TM-computable function is not computable at all
91
New cards
parts of a TM
Tape
Head
State
Instructions (qi, S, Op, qf)
92
New cards
TM computable
If there is a TM that calculates a function
93
New cards
the Halting Problem
Can we decide whether a TM halts/loops on a given input? Can we use another TM to decide this?
94
New cards
purpose of primitive recursive functions
Determine computability by building more and more complex functions
95
New cards
primitive recursive function base cases
0
Successor
Projection
96
New cards
total function
A function that always yields a result
97
New cards
characteristic function
Functions that represent relations or predicates (T/F)
98
New cards
bounded minimization
f yields the minimal value of y (up to the bound n) for which h holds
99
New cards
BlooP programs
Predictably terminable computations
100
New cards
least search operator (miu-operator)
Returns the smallest value for z which makes f(x-\>, z) = 0 and for which all smaller values the function is defined