diff --git a/content/quizzes/logic-and-ai/index.md b/content/quizzes/logic-and-ai/index.md new file mode 100644 index 00000000..b8ec717f --- /dev/null +++ b/content/quizzes/logic-and-ai/index.md @@ -0,0 +1,377 @@ +--- +title: Logic and AI +subtitle: test +author: Annefleur de Haan +weight: 1 +params: + id: exc-laa +--- +# Multiple choice questions to test your knowledge +## Inferences { .solved } +**Which of the following statements is true about inferences?** +- [ ] An inference is simply any collection of sentences. +- [X] An inference consists of one or more premises and a conclusion, with their indicators, together forming an argument for a claim. +- [ ] An inference combines multiple conclusions to produce a single premise for later reasoning. +- [ ] An inference always requires numerical data or statistical evidence to support the conclusion. + + + +
An inference consists of one or more premises and a conclusion, with their indicators, together forming an argument for a claim.
+An inference by definition links explicit premises (with indicators like “since” and “because”) to a conclusion. The other options either omit premises or mischaracterize how conclusions are formed.
+Correct answer: A logical system is a system that consists of a component that is responsible for determination whether an inference is valid, the language of the inferences, and the meaning of the premises and conclusions.
+A logical system has three parts: syntax (language of the inference), semantics (meaning), and proof theory (validity checking). The incorrect options each leave out one of these crucial components.
+Correct answers: A category of a logical system is one that assumes that every sentence is true or false, which is called classical logic. + + A way of classifying logical systems is by the kind of inferences they deal with.
+Both are true, because classical logic’s hallmark is bivalence (“true or false”) and logical systems differ (e.g., propositional vs. predicate) by the inference rules they support. The distractors confuse systems (“quantifiers in modal logic” is false, “propositional logic classified by background assumptions” is garbled).
+Correct answer: Models and replication of "intelligent behavior", in the broad sense of the emulation of human abilities with a computer system, is studied by AI.
+AI studies how to build models that emulate human-like intelligent tasks. The false options describe surveillance, generic automation, or neuroscience research rather than modeling intelligence.
+Correct answer: Because valid inference is paradigmatic intelligent behavior, so logical systems model what AI aims to replicate.
+Valid inference is paradigmatic intelligent behavior. What we call intelligent, namely drawing valid conclusions based on known facts, is formalized in logical systems. Logic therefore forms a foundation for AI, because the formalization of valid reasoning precisely matches what AI models.
+Correct answer: It was extremely difficult and time-consuming to encode comprehensive expert knowledge into correct if-then rules, making upkeep and expansion impractical.
+Expert systems require manually crafting and maintaining large rule sets. The wrong answers wrongly blame hardware costs, programming language choice, or subsymbolic methods.
+Correct answer: Subsymbolic AI relies on statistical models and inductive inference from data, whereas symbolic AI relies on explicit knowledge bases and deductive reasoning via logical inference engines.
+Subsymbolic (e.g., neural nets) infer patterns from data; symbolic systems use hand‐crafted rules and logic. The wrong choices reverse transparency or timeline.
+Correct answer: Subsymbolic AI models (e.g., neural networks) learn statistical representations from data, making their internal decision processes opaque, while symbolic AI uses transparent, human-readable rules and inference steps.
+Neural nets learned weights aren’t easily interpretable; expert systems’ if-then rules can be directly inspected. The false options misattribute rule usage or Gödel’s theorem.
+Correct answer: Subsymbolic models store information implicitly in learned parameters and can hallucinate; symbolic databases store facts explicitly and allow precise retrieval.
+LLMs encode facts in weights (prone to error), whereas databases record exact entries. The distractors misunderstand recall, data types, or querying.
+Correct answer: That querying a relational database can often be viewed as evaluating formulas in predicate logic.
+Codd showed SQL-like queries correspond to predicate logic statements. The other statements falsely assert irrelevance of logic or mandate LISP.
+Correct answer: LLMs are strong at fast, pattern‐based System 1 thinking (e.g., language mimicry) but have weak System 2 abilities (e.g., exact calculations), whereas symbolic systems excel at System 2.
+LLMs predict next-word patterns (fast, intuitive), but lack reliable step-by-step reasoning; symbolic AIs handle deliberate, logical tasks well. The wrong options misstate LLM capabilities or rule usage.
+Correct answer: All of the above
++ An inference is a technical term, which means that it has not the everyday meaning. An inference is just the combination of premises and a conclusion, without paying attention to phycological processes of drawing a conclusion from premises. + + The three indicators are: _because_ is a premise indicator, _since_ is a premise indicator, and _we can conclude that_ is the inference indicator. The structure word _and_ is not an indicator, because it only put two sentences together, instead of having a functional role in the inference. + + A premise is the starting point of an argument or inference. This proposition (statement) can be either true or false and whose truth you assume in order to reach a conclusion. + + If the conclusion can be drawn from the premises, the inference (consisting of a combination of premises and a conclusion) is valid.
+Correct answers: A logical system consists of three key elements: syntax, semantics and proof theory. Propositional logic is an example of a logical system, since the syntax is the specified symbols, the logical connectives and the formation rules for well-formed formulas. In addition, the semantics of this system is the truth-value of every proposition. The connectives are interpreted by truth tables. Lastly, it is a proof theory, because it captures semantic entailment by using a deductive system.
+ + Predicate logic (first order-logic), that uses rules to formalize relations between objects denoted by predicate symbols, functions, variables and quantors. Predicate logic (first order-logic) is an example of a logical system, because it extends propositional syntax with predicates, quantifiers, function symbols, variables and formation rules for terms and formulas. Moreover, the semantics are the interpretation structures assigning each predicate a relation over a domain and each function symbol a function on that domain. Finally, via predicate logic it is possible to proof the validity of inferences. + + λ-calculus, that uses reduction rules to apply in mathematical functions. Lambda calculus is an example of a logical system, since the syntax is exactly defined by expressions built from variables, abstraction and application rules. The semantics of this system are visible in the rules for reduction. These rules for reduction are part of proof theory. + + Grammatical system, that uses grammar rules to construct correct sentences. A grammatical system is not a logical system, although the grammatical system has syntax in the sense of rules for well-formed sentences. However, in grammar, there is no formal specified semantics. Indeed, the meaning of a sentences depends on the context etc. Moreover, there is no proof theory by which one can derive the true sentences of a language; grammaticality judgments are empirical, not deductive. +They use only syntax and semantics. False, formal systems do use syntax and semantics as central aspects of formal languages. However, a formal system has a deductive system as well.
+They use formal language which is a set of well-formed formulates. These formulas are strings of symbols formed by a formal grammar. True, the formal language is used to define symbols, and the formal grammar determines how the symbols are connected to reach well-formed formulas. These formulas are strings of symbols that correspond with the rules of the grammar.
+They use inductive systems to provide conclusions by drawing generalizations from single cases. False, formal systems are deductive, they guarantee the truth of conclusions if the premises are true. Inductive systems reason derives conclusions from specific observations, while deductive systems reason from the general to the specific.
+They use deductive systems or proof systems, which has rules of inference that take axioms and infers theorems. True, formal systems start with axioms, which are defined propositions that are accepted without proof. The formal systems use a proof system or rules of inference (like modus ponens). Via these rules, the theorems are derived.
+Gödel's first incompleteness theorem states that no consistent system of axioms is capable of proving all truths about the arithmetic of natural numbers. True, even though the system may be sound (i.e., only proves true statements), it cannot prove all truths about the natural numbers. There will always be some arithmetical truths that elude formal proof within the system. This confirms the statement's correctness.
+In any consistent formal system that includes basic arithmetic, there will be true statements about natural numbers that are unprovable within that system. True, this is essentially a restatement of statement a but phrased more explicitly in terms of natural numbers and basic arithmetic. The truth of the Gödel sentence G is model-theoretic: in the standard model of the natural numbers N, G is indeed true, but unprovable. Therefore, the theorem shows that: if a system F is consistent and F is sufficiently expressive, then there exists a true-but-unprovable statement in F. This is not contingent, it is guaranteed.
+Some have argued that Gödel’s theorem suggests limits to replicating human reasoning with logical systems, but this interpretation remains philosophically debated. True, thinkers like Roger Penrose have argued that Gödel’s theorem shows the human mind cannot be fully captured by formal systems, because humans can supposedly “see” the truth of unprovable Gödel sentences. However, this is not a mathematical consequence of Gödel’s theorem. It is a philosophical interpretation built on additional assumptions (e.g., human consistency, insight into truth, etc.).
+Turing's undecidability theorem shows that there are problems no algorithm can solve for all possible inputs. While it’s broadly accurate that Turing’s theorem shows the existence of algorithmically unsolvable problems, the phrase "no algorithm can solve for all possible inputs" is too general. Many undecidable problems can be semi-decided or solved on some inputs. The undecidability claim refers to decidability in the general case, not impossibility of solving any instance.
+The Halting Problem is undecidable: there is no general procedure that can determine whether arbitrary programs halt or run forever. The Halting Problem is indeed undecidable, but the statement should be more precise. There is no algorithm that solves the Halting Problem for all possible programs and inputs. The way it’s stated could mislead a reader into thinking no termination analysis is ever possible, which is false—partial solutions exist.
+Some have argued that undecidability places limits on automation, but this depends on whether real-world problems can be reduced to undecidable cases. This statement blends a correct observation (that undecidability has implications for automation) with a speculative generalization. It is true that undecidable problems limit what formal procedures can accomplish, but whether this constrains all practical automation is a matter of engineering context, not a direct consequence of the theorem.
+If-then rules are used in knowledge based expert systems. False, this statement is incomplete but true. While if-then rules are used in expert systems (as stated), it's only one part of the picture. The question asks for a true statement overall, and the rest of the options are clearly false or misleading, making “None of the above” the correct aggregate.
+If-then rules make AI systems fully autonomous and capable of learning from experience. False, if-then rules do not enable learning from experience. They are hand-crafted and static unless modified manually. Symbolic AI lacks general learning capabilities found in subsymbolic AI.
+If-then rules ensure that AI systems never produce incorrect outputs. False, incorrect rules or incomplete knowledge bases can lead to incorrect outputs, especially in edge cases or when input data are noisy or ambiguous.
+If-then rules are inherently unsuitable for explainable AI. False, quite the opposite: if-then rules are central to explainable AI, since they allow tracing exactly why a system made a given inference.
+The similarity between subsymbolic and symbolic AI is that they both use inferences in some way. True, although of a different type, both symbolic and subsymbolic rely on inference. Where symbolic AI uses the deductive inference, subsymbolic AI relies ond statistical inductive inference.
+LLMS are capable of system 2 thinking. False, LLM inference is formally classified as System 1: the model applies its Transformer layers once over the input and directly emits tokens, without generating or checking intermediate reasoning steps.
+Using a symbolic model is like writing information down in a structured, retrievable form, whereas using a subsymbolic model is like trying to remember everything. True, the difference between using a subsymbolic model to store information and using a symbolic model is the difference between trying to remember the information and writing it down.
+Fuctual knowledge is stored in AI systems by rules and inference mechanisms that are transparent.True, factual knowledge is stored in symbolic AI systems using explicit rules and inference mechanisms, which are transparent because each element has a interpretable meaning. This allows humans to see the reasoning process step by step.
+