• Keine Ergebnisse gefunden

Task 3: Law of excluded middle

N/A
N/A
Protected

Academic year: 2022

Aktie "Task 3: Law of excluded middle"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Fachbereich Informatik

Programmiersprachen und Softwaretechnik

Prof. Dr. Klaus Ostermann

Responsible for the lab Philipp Schuster

philipp.schuster@uni-tuebingen.de

Programming Languages 2

Homework 11 – WS 18

Tübingen, 17. Januar 2019

In order to be admitted to the exam, you have to successfully submit your homework every week, except for 2 weeks. A successful submission is one where you get at least 1 point.

Handin Please submit this homework until Thursday, January 24, either via email to Philipp Schus- ter (philipp.schuster@uni-tuebingen.de) before 12:00, or on paper at the beginning of the lab.

Groups You can work in groups of up to 2 people. Please include the names and Matrikelnummern of all group members in your submission.

Points For each of the Tasks you get between 0 and 2 points for a total of 6 points. You get:

1 point, if your submission shows that you tried to solve the task.

2 points, if your submission is mostly correct.

Task 1: Natural deduction

Consider these rules of natural deduction:

Ax Γ, A`A

I

Γ`A Γ`B Γ`A∧B

E1

Γ`A∧B Γ`A

E2

Γ`A∧B Γ`B

I

Γ, A`B Γ`A⇒B

E

Γ`A⇒B Γ`A Γ`B

Using these rules, show that((A⇒B)∧(B ⇒C))⇒(A⇒C)is derivable.

Task 2: Programs are proofs

Construct a termtin System F (extended with pairs), that has type((A→B)×(B→C))→A→C in contextΓ ={A, B, C}. Prove that your term has this type by drawing a derivation tree.

(2)

Task 3: Law of excluded middle

Show that the law of excluded middle follows from double negation elimination. Construct a term in System F (extended with sum types) that has type ∀A. A+ (∀Z. A → Z). Assume a context Γ ={dne :∀A.(∀X.(∀Y. A→Y)→X)→A}. No derivation tree necessary.

Seite 2/2

Referenzen

ÄHNLICHE DOKUMENTE

Handin Please submit this homework until Thursday, November 08, either via email to Philipp Schuster (philipp.schuster@uni-tuebingen.de) before 12:00, or on paper at the beginning

Handin Please submit this homework until Thursday, December 13, either via email to Philipp Schuster (philipp.schuster@uni-tuebingen.de) before 12:00, or on paper at the beginning

Handin Please submit this homework until Thursday, December 20, either via email to Philipp Schuster (philipp.schuster@uni-tuebingen.de) before 12:00, or on paper at the beginning

Your DISKREP AIR diskette is a bootable diskette that contains utilities that will allow you to inspect the hard disk system and a copy of the diskrepair utility

Es gibt in der UB Hildesheim seit über einem Jahr (Stand: Mai 2020) Beratungen und Schulungen (Coffee Lectures, Workshops und andere Veranstaltungen) zum

a) Present a reachability/safety game whose winning condition encodes the following property:. A play is won by the universal player if it does not visit both x

Hint: To avoid the following construction becoming excessively large, restrict the domain to vectors of states that can actually occur.. b) Construct the parity word automaton

Let G = (G, win) be a game such that each maximal play of G has finite length. Then G is deter- mined, i.e. We consider the reachability game on G with respect to B. As in the