Looking for Introduction to Formal Reasoning (COMP2067 UNMC) (SPM1 25-26) test answers and solutions? Browse our comprehensive collection of verified answers for Introduction to Formal Reasoning (COMP2067 UNMC) (SPM1 25-26) at moodle.nottingham.ac.uk.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
If we have the list l=[2,3] and we apply cons 1 l, what is the resulting structure in terms of constructors?
In Lean, ¬ P is defined as P → false. Given this definition, and the theorem efq : false → P, what does the theorem efq tell us?
Select the most appropriate answer.
Why is the 'no confusion' property significant for inductive types like lists?
Given that you have this line in the proof state:
h: P ∨ Q
Which tactic should be used to split the proof into cases.
When constructing a binary tree to sort the list [5, 2, 9, 1, 4], which number is immediately at the right sub-tree of the number "5"?
In Lean, equality is defined as an equivalence relation. Which of the following options correctly lists the three properties that define an equivalence relation?
Consider the following code snippet:
example : ∀ x y : A, x = y → PP x → PP y :=
begin
assume x y eq p,
rewrite ← eq,
exact p,
end
What is the effect of rewrite← eq in this proof?
In Lean, you encounter a goal ⊢ QQ a and have an assumption h : ∀ x : A, PP x → QQ x and a : A.
Using tactic apply h will result in a new goal.
What will the new goal be?
Given the following Lean code snippet:
example : (∃ x : A, PP x) → (∀ y : A, PP y → QQ y) → ∃ z : A , QQ z :=
begin
assume p pq,
cases p with a pa,
existsi a,
apply pq,
exact pa,
end
Which of the following best describes the role of cases p with a pa in this proof?
What is the difference between a predicate and a proposition in logic?