Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI/ML applications of Prolog #5

Open
XVilka opened this issue May 17, 2018 · 6 comments
Open

AI/ML applications of Prolog #5

XVilka opened this issue May 17, 2018 · 6 comments
Assignees

Comments

@XVilka
Copy link

XVilka commented May 17, 2018

Would be nice to have a chapter about that, with some examples maybe.
Maybe something similar to https://www.cs.ubc.ca/~poole/aibook/code/ailog/ailog2.html or so.

@triska
Copy link
Owner

triska commented May 17, 2018

Yes, I definitely agree, and this is what I am currently working on hardest. I have a small Chatbot ready (https://www.ombot.at), and also a small teleteaching environment that helps students solve mathematical tasks (https://www.metalevel.at/rits/).

The key AI application I want to show is formalization of legislation, i.e., a Prolog application that can answer questions about laws.

@bitlaw-jp has implemented a protoype for the constitution of Japan:

https://github.com/bitlaw-jp/the-constitution-of-japan

I want to apply this idea to tax law and other regulations, in order to reduce administrative burden for citizens and corporations, and to enable further use cases (who is affected by a law? where do I have to turn to? which information obligations am I subject to? etc.). Such applications will make Prolog very interesting to government agencies and many companies.

If anyone is interested in helping with such use cases or wants to share interesting links, please add them to this issue or contact me in other ways. A lot of work is necessary to do this properly, and I am very interested in these topics. These are long-term projects (time horizon: >5 years), starting with an analysis of parts of existing regulations, and looking for ways to formalize it. Portions of this work could be used for very interesting student projects, theses and papers.

Eventually (≥100 years), I would like to see laws discussed and passed as executable specifications, so that Prolog can be used to automatically perform the necessary steps, and no further programming is necessary.

Example: If income > X, then taxed with Y%.

We put the code in codex!

@triska
Copy link
Owner

triska commented May 17, 2018

I have uploaded the new AI chapter:

https://www.metalevel.at/prolog/ai

Please have a look! I hope you find it useful for the time being, and I welcome all suggestions and comments. Thank you!

@XVilka
Copy link
Author

XVilka commented May 17, 2018

@triska it is cool, thank you, though I thought about more practical approach - a few examples, e.g. working with Bayesian classifier in Prolog, something like this https://dtai.cs.kuleuven.be/problog/tutorial/basic/02_bayes.html Or using cplint SWI Prolog package. Or something in the spirit of https://www.hig.se/download/18.5dd84b6d11f92f6598680001133/1353632218033/FoU%2030%20Hjelmblom.pdf

@triska
Copy link
Owner

triska commented May 18, 2018

These are very good links, and I have now added most of them, please have a look!

I have also added links to the Wumpus World, Escape from Zurg and Connect 4 examples, and also to RITS and the mentioned constitution of Japan project.

Thank you very much for your feedback!

@triska triska self-assigned this May 18, 2018
@XVilka
Copy link
Author

XVilka commented May 28, 2018

triska added a commit that referenced this issue Jul 7, 2018
This chapter was suggested by Anton Kochkov (@XVilka) in issue #5.
The Metagol reference was suggested by Stassa Patsantzis (@stassa)
in a HN discussion (https://news.ycombinator.com/item?id=17121028)
of The Power of Prolog. Many thanks!

This chapter will be updated with more use cases as they become
available. I am very interested in the chatbot example, RITS, and in
the formalisation of legislation. Please contact me if you want to
contribute to AI developments with Prolog. See also issue #5. I invite
you to add interesting suggestions and comments to that issue too.
@XVilka
Copy link
Author

XVilka commented May 29, 2020

@triska mentioning https://arxiv.org/abs/2004.06997v1 might be very interesting too, since relatively new research.

Also https://www.cs.unm.edu/~luger/ai-final2/CH7_Machine%20Learning%20Algorithms%20in%20Prolog.pdf is an interesting chapter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants