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

Functional Programming 2025/26 fall

  • Üldinfo
    • Õppekorraldus
  • Kursus
    • KKK
    • Installimine
    • Kodutöö 1
    • Kodutöö 2
    • Kodutöö 3
    • Kodutöö 4
    • Kodutöö 5
    • Kodutöö 6
    • Kodutöö 7
    • Kodutöö 8
    • Suur kodutöö 1
    • Kodutöö 9
    • Kodutöö 10
    • Kodutöö 11
    • Kodutöö 12
    • Suur kodutöö 2
    • Kodutöö 13*
    • Kodutöö 14*
  • FP Õpik
  • 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