logo

Crowdly

Browser

Add to Chrome

Introduction to Formal Reasoning (COMP2067 UNMC) (SPM1 25-26)

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?

✅
❌
❌
❌
View this question

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.

❌
❌
❌
✅
View this question

Why is the 'no confusion' property significant for inductive types like lists?

❌
✅
❌
❌
View this question

Given that you have this line in the proof state:

            h: P ∨ Q

Which tactic should be used to split the proof into cases.

❌
❌
❌
✅
View this question

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"?

✅
❌
❌
❌
View this question

In Lean, equality is defined as an equivalence relation. Which of the following options correctly lists the three properties that define an equivalence relation?

❌
❌
✅
❌
View this question

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?

❌
❌
✅
❌
View this question

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?

❌
❌
✅
❌
View this question

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?

❌
✅
❌
❌
View this question

What is the difference between a predicate and a proposition in logic?

✅
❌
❌
❌
View this question

Want instant access to all verified answers on moodle.nottingham.ac.uk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome