• Keine Ergebnisse gefunden

Task 2: Inference rules

N/A
N/A
Protected

Academic year: 2022

Aktie "Task 2: Inference rules"

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

Programmiersprachen II

Homework 1 – WS 18

Tübingen, 18. Oktober 2018

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, October 25, 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: Syntax

Consider the following language, given in BNF:

htermi::= ‘squiggle’htermi| ‘squaggle’htermi| ‘sqop’ | ‘transmogrify’htermi htermi Are the following terms in the language? (No proof required)

1. squiggle sqop 2. sqop sqop

3. transmogrify (squiggle squaggle) squiggle 4. squiggle (squaggle sqop)

(2)

Task 2: Inference rules

How could we define the set of terms (calledT) from Task 1 with inference rules?

One inference rule would be for example:

t1 ∈ T squigglet1 ∈ T Which of the inference rules are axioms?

Task 3: Induction

We define the sequence of setsSi: S0 :=∅

Si+1 :={sqop} ∪ {squigglet,squagglet|t∈Si} ∪ {transmogrifyt1t2|t1 ∈Si, t2∈Si} Prove by induction oni:∀i∈N:Si ⊆Si+1

Seite 2/2

Referenzen

ÄHNLICHE DOKUMENTE

Organisation Profi oder Miliz beziehungsweise hier Finanzierung des Verbandes herrscht Wechselwirkung müssen für 2008 D festgelegt sein... dings sei ein solcher Verband nicht zu

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

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

© 2016 PHILIPP GmbH, 63741 Aschaffenburg • Technische Änderungen sowie Irrtümer vorbehalten • Oktober 2016.. Die

Und selbst für eine „Einführung in die literarische Sozialisation“ (Untertitel) bleibt das Werk in der vorliegenden Form auf einer Vorstufe stehen: Besonders problematisch ist,

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