logo

Crowdly

Browser

Додати до Chrome

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

Шукаєте відповіді та рішення тестів для Introduction to Formal Reasoning (COMP2067 UNMC) (SPM1 25-26)? Перегляньте нашу велику колекцію перевірених відповідей для Introduction to Formal Reasoning (COMP2067 UNMC) (SPM1 25-26) в moodle.nottingham.ac.uk.

Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!

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?

✅
❌
❌
❌
Переглянути це питання

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.nottingham.ac.uk?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome