An open API service indexing awesome lists of open source software.

https://github.com/thedhruvrawat/lics

Repository for Prolog Tutorial Sheets for the course CS F214: Logic in Computer Science at BITS Pilani, Pilani campus (Fall '21)
https://github.com/thedhruvrawat/lics

c logic-programming prolog swi-prolog

Last synced: 2 months ago
JSON representation

Repository for Prolog Tutorial Sheets for the course CS F214: Logic in Computer Science at BITS Pilani, Pilani campus (Fall '21)

Awesome Lists containing this project

README

        

## CS F214: Logic in Computer Science
![Platform](https://img.shields.io/static/v1?label=Platform&message=SWI-Prolog&color=informational&style=for-the-badge)

This repository contains all the tutorial coursework for the course **CS F214: Logic in Computer Science** at BITS Pilani, Pilani Campus in Fall 2021.

### Instructions to view

In the command line, open **SWI-Prolog** by typing `swipl` and load the required files as given below.

```prolog
> swipl
Welcome to SWI-Prolog (threaded, 64 bits, version 8.2.4)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.

For online help and background, visit https://www.swi-prolog.org
For built-in help, use ?- help(Topic). or ?- apropos(Word).

1 ?- [ex1].
true.
```

`true` will indicate the knowledge base has been loaded succesfully.

### Brief Summary

| Tutorial | Date | Topic | Tutorial Sheet |
| ------------- | ------------- | --- | --|
| 1 | 26 August 2021 | **Introduction to SWI Prolog** | [Tutorial 1](./tutorial-01/tutorial-1.pdf) |
| 2 | 2 September 2021 | **Matching and Proof Search** | [Tutorial 2](./tutorial-02/tutorial-2.pdf) |
| 3 | 9 September 2021 | **Recursion** | [Tutorial 3](./tutorial-03/tutorial-3.pdf) |
| 4 | 16 September 2021 | **Lists** | [Tutorial 4](./tutorial-04/tutorial-4.pdf) |
| 6 | 30 September 2021 | **Arithmetic** | [Tutorial 6](./tutorial-06/tutorial-6.pdf) |
| 7 | 7 October 2021 | **More Functions with Lists** | [Tutorial 7](./tutorial-07/tutorial-7.pdf) |
| 12 | 9 December 2021 | **Program Verification of Insertion Sort** | [Tutorial 12](./tutorial-12/tutorial-12.pdf) |

> Note: Tutorials 5, 8, 9, 10, 11, 12 were not based on Prolog.

### Disclaimer
All files on this repository are for educational purpose with no intentions of promoting any unfair means in any evaluative component.