---
title: "Discussion on \"Learning Pilog -3: Unification and Proof Search\" | Hashnode"
description: "Discussion on \"Learning Pilog -3: Unification and Proof Search\". In the last post, we have seen how we can create a knowledge base and run queries on it. Today we will try to understand how Prolog computes the result of a query.\nThis chapter is based on this Prolog tutorial.\n\nWhat is Unification?\nLet's check the d..."
url: "https://hashnode.com/posts/learning-pilog-3-unification-and-proof-search/6183afacfd5d634d01696a5d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Learning Pilog -3: Unification and Proof Search](https://picolisp-explored.com/learning-pilog-3-unification-and-proof-search?utm_source=hashnode&utm_medium=feed)

In the last post, we have seen how we can create a knowledge base and run queries on it. Today we will try to understand how Prolog computes the result of a query. This chapter is based on this Prolog tutorial. What is Unification? Let's check the d...

Nov 4, 2021 · 5 min read · picolisp-explored.com  
Updated Jan 21, 2024  
Read the article

-   [#functional-programming](https://hashnode.com/tag/functional-programming)
-   [#logic](https://hashnode.com/tag/logic)
-   [#search](https://hashnode.com/tag/search)

## Written by

[Mia Temma](https://hashnode.com/@miatemma)

@miatemma · Berlin, Germany

  
[View profile](https://hashnode.com/@miatemma)

## Responses 1

Markdown supported · ⌘↵ to post

[Fabian](https://hashnode.com/@Fabiano23)

[Nov 3, 2023](https://hashnode.com/posts/learning-pilog-3-unification-and-proof-search/6183afacfd5d634d01696a5d/comment/6544b505544bd9c69327dc46)

If I use the the crossword example, downloaded from the repository, with pil21 I get 6 possible solutions and not two.

[Mia Temma](https://hashnode.com/@miatemma)

[Jan 21, 2024](https://hashnode.com/posts/learning-pilog-3-unification-and-proof-search/6183afacfd5d634d01696a5d/comment/6544b505544bd9c69327dc46#reply-65ad07287d54d8e8ec10c8cc)

Hi Fabian, I just run the code again and I get 6 solutions too, because it contains duplicates (for example, 2x "astante" within one solution, which is technically correct but not very beautiful).

Unfortunaly I can't remember what I did differently last time to prevent the duplicates. (if I did). Anyway I updated the blogpost.

Basically the solution listed here is a PicoLisp implementation of this solution:

[stackoverflow.com/questions/21220573/learning-pro…](https://stackoverflow.com/questions/21220573/learning-prolog-solving-a-crossword-scheme)
