Institute of Computer Science
  1. Courses
  2. 2024/25 fall
  3. Functional Programming (LTAT.03.019)
ET
Log in

Functional Programming 2024/25 fall

  • Üldinfo
    • Õppekorraldus
  • Kursus
    • KKK
    • Installimine
    • Kodutöö 1
    • Kodutöö 2
    • Kodutöö 3
    • Kodutöö 4
    • Kodutöö 5
    • Kodutöö 6
    • Kodutöö 7
    • Kodutöö 8
    • Kodutöö 9
    • Kodutöö 10
    • Kodutöö 11
    • Kodutöö 12
    • Kodutöö 13
    • Kodutöö 14
  • Konspekt
    • Baasväärtused ja tüübid
    • 𝜆-arvutus
    • Kõrgemat järku funktsioonid
    • Interaktiivne programmeerimine
    • Uute tüüpide loomine
    • Liidesed
    • Sisend-Väljund
    • Laiskus
    • Lihtsalt tüübitud 𝜆-arvutus
    • Tüübituletus
    • Sõltuvad tüübid
    • Tõestamine Idrises
    • Kvantitatiivne tüübiteooria
  • Moodle
  • Zulip (sisselogides näed linki)

Kodutöö 10

Tüübituletus

Ülesanded

Harjutame tüübituletusalgoritmi. Vaata näidet videost või loenguvideost.

Lihtsustuseks:

  • ei pea kirjutama xᵅ ∈ Γ
  • kitsendusi ei pea kirjutama puu sisse (mis oli slaididel roheline)

Annoteeri term, joonista tüübituletuspuu, kirjuta välja kõik kitsendused ja lahenda kogu avaldise tüüp järgnevatele avaldistele:

  1. ⊢ (λx. ((λy. y) x))
  2. ⊢ (λx. (x (λy. y)))
  3. ⊢ (λx. ((λy. (λz. y)) x))
  4. ⊢ (λx. ((λy. (λz. z)) x))
  5. ⊢ (λx. (x (λy. (λz. z))))
  6. ⊢ (λx. (x ((λz. z) x)))
  • Institute of Computer Science
  • Faculty of Science and Technology
  • University of Tartu
In case of technical problems or questions write to:

Contact the course organizers with the organizational and course content questions.
The proprietary copyrights of educational materials belong to the University of Tartu. The use of educational materials is permitted for the purposes and under the conditions provided for in the copyright law for the free use of a work. When using educational materials, the user is obligated to give credit to the author of the educational materials.
The use of educational materials for other purposes is allowed only with the prior written consent of the University of Tartu.
Terms of use for the Courses environment