# helga20/lnu_logicalfunctionalprogramming architecture

> Architecture diagram of the GitHub repository helga20/lnu_logicalfunctionalprogramming, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/helga20/lnu_logicalfunctionalprogramming
- Repository: https://github.com/helga20/lnu_logicalfunctionalprogramming

## Overview

This repository is a 2023 university course collection for logical and functional programming: lecture notes and slides accompany eight practical labs. The learner-facing workflow is to study the lecture materials and work through the practical assignments; the sampled code includes Prolog puzzle examples and Python functional-programming exercises. The README establishes the course and its lecture/practical format, but does not map individual files to topics. Several example files are exploratory or incomplete, so their presence should not be read as a complete application.

Main entry points: [`README.md`](https://github.com/helga20/lnu_logicalfunctionalprogramming/blob/main/README.md) (Course overview), [`Practice/03/спроби/main.js`](https://github.com/helga20/lnu_logicalfunctionalprogramming/blob/main/Practice/03/%D1%81%D0%BF%D1%80%D0%BE%D0%B1%D0%B8/main.js) (Knights example), [`Practice/03/спроби/task3/zebra_puzzle.js`](https://github.com/helga20/lnu_logicalfunctionalprogramming/blob/main/Practice/03/%D1%81%D0%BF%D1%80%D0%BE%D0%B1%D0%B8/task3/zebra_puzzle.js) (Zebra puzzle), [`Lectures`](https://github.com/helga20/lnu_logicalfunctionalprogramming/tree/main/Lectures) (Lecture collection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_curriculum["Lecture materials"]
  node_course["Course overview<br/>[README.md]"]
  node_lectures["Lecture collection"]
  node_prolog_lectures["Prolog topics"]
  node_lisp_lectures["LISP topics"]
end

subgraph group_assignments["Practical labs"]
  node_labs_01_04["Labs 1–4"]
  node_labs_05_07["Labs 5–7"]
  node_lab08["Lab 8"]
end

subgraph group_examples["Code examples"]
  node_knight_example["Knights example<br/>[main.js]"]
  node_zebra_example["Zebra puzzle<br/>[zebra_puzzle.js]"]
  node_hanoi_example["Hanoi interface<br/>[intjava.js]"]
  node_python_examples["Python exercises<br/>[Kravets_lab8.py]"]
end

node_learner(("Learner"))
node_prolog_engine["Tau Prolog"]

node_learner -->|"reviews"| node_course
node_course -->|"provides lectures"| node_lectures
node_course -->|"provides practicals"| node_labs_01_04
node_course -->|"provides practicals"| node_labs_05_07
node_course -->|"provides practicals"| node_lab08
node_knight_example -->|"creates and queries"| node_prolog_engine
node_zebra_example -->|"consults and queries"| node_prolog_engine

click node_course "https://github.com/helga20/lnu_logicalfunctionalprogramming/blob/main/README.md"
click node_lectures "https://github.com/helga20/lnu_logicalfunctionalprogramming/tree/main/Lectures"
click node_prolog_lectures "https://github.com/helga20/lnu_logicalfunctionalprogramming/tree/main/Lectures/04"
click node_lisp_lectures "https://github.com/helga20/lnu_logicalfunctionalprogramming/tree/main/Lectures/LISP"
click node_labs_01_04 "https://github.com/helga20/lnu_logicalfunctionalprogramming/tree/main/Practice/01"
click node_labs_05_07 "https://github.com/helga20/lnu_logicalfunctionalprogramming/tree/main/Practice/05"
click node_lab08 "https://github.com/helga20/lnu_logicalfunctionalprogramming/tree/main/Practice/08"
click node_knight_example "https://github.com/helga20/lnu_logicalfunctionalprogramming/blob/main/Practice/03/%D1%81%D0%BF%D1%80%D0%BE%D0%B1%D0%B8/main.js"
click node_zebra_example "https://github.com/helga20/lnu_logicalfunctionalprogramming/blob/main/Practice/03/%D1%81%D0%BF%D1%80%D0%BE%D0%B1%D0%B8/task3/zebra_puzzle.js"
click node_hanoi_example "https://github.com/helga20/lnu_logicalfunctionalprogramming/blob/main/Practice/03/%D1%81%D0%BF%D1%80%D0%BE%D0%B1%D0%B8/%D0%A5%D0%B0%D0%BD%D0%BE%D0%B9%D1%81%D1%8C%D0%BA%D1%96%20%D0%B2%D0%B5%D0%B6%D1%96/intjava.js"
click node_python_examples "https://github.com/helga20/lnu_logicalfunctionalprogramming/blob/main/Practice/08/Kravets_lab8.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_course,node_lectures,node_prolog_lectures,node_lisp_lectures toneBlue
class node_labs_01_04,node_labs_05_07,node_lab08 toneAmber
class node_knight_example,node_zebra_example,node_hanoi_example,node_python_examples toneMint
class node_learner,node_prolog_engine toneIndigo
```

## Components

### Lecture materials

- [Course overview](https://github.com/helga20/lnu_logicalfunctionalprogramming/blob/main/README.md): `README.md`
- [Lecture collection](https://github.com/helga20/lnu_logicalfunctionalprogramming/tree/main/Lectures): `Lectures`
- [Prolog topics](https://github.com/helga20/lnu_logicalfunctionalprogramming/tree/main/Lectures/04): `Lectures/04`
- [LISP topics](https://github.com/helga20/lnu_logicalfunctionalprogramming/tree/main/Lectures/LISP): `Lectures/LISP`

### Practical labs

- [Labs 1–4](https://github.com/helga20/lnu_logicalfunctionalprogramming/tree/main/Practice/01): `Practice/01`
- [Labs 5–7](https://github.com/helga20/lnu_logicalfunctionalprogramming/tree/main/Practice/05): `Practice/05`
- [Lab 8](https://github.com/helga20/lnu_logicalfunctionalprogramming/tree/main/Practice/08): `Practice/08`

### Code examples

- [Knights example](https://github.com/helga20/lnu_logicalfunctionalprogramming/blob/main/Practice/03/%D1%81%D0%BF%D1%80%D0%BE%D0%B1%D0%B8/main.js): `Practice/03/спроби/main.js`
- [Zebra puzzle](https://github.com/helga20/lnu_logicalfunctionalprogramming/blob/main/Practice/03/%D1%81%D0%BF%D1%80%D0%BE%D0%B1%D0%B8/task3/zebra_puzzle.js): `Practice/03/спроби/task3/zebra_puzzle.js`
- [Hanoi interface](https://github.com/helga20/lnu_logicalfunctionalprogramming/blob/main/Practice/03/%D1%81%D0%BF%D1%80%D0%BE%D0%B1%D0%B8/%D0%A5%D0%B0%D0%BD%D0%BE%D0%B9%D1%81%D1%8C%D0%BA%D1%96%20%D0%B2%D0%B5%D0%B6%D1%96/intjava.js): `Practice/03/спроби/Ханойські вежі/intjava.js`
- [Python exercises](https://github.com/helga20/lnu_logicalfunctionalprogramming/blob/main/Practice/08/Kravets_lab8.py): `Practice/08/Kravets_lab8.py`

### Other components

- **Learner**
- **Tau Prolog**

## Connections

- Learner → Course overview: reviews (evidence: `README.md`)
- Course overview → Lecture collection: provides lectures (evidence: `README.md`)
- Course overview → Labs 1–4: provides practicals (evidence: `README.md`)
- Course overview → Labs 5–7: provides practicals (evidence: `README.md`)
- Course overview → Lab 8: provides practicals (evidence: `README.md`)
- Knights example → Tau Prolog: creates and queries (evidence: `Practice/03/спроби/main.js`)
- Zebra puzzle → Tau Prolog: consults and queries (evidence: `Practice/03/спроби/task3/zebra_puzzle.js`)
