Git Product home page Git Product logo

hyperon-pln's Introduction

PLN for Hyperon

Description

Port of Probabilistic Logic Networs (PLN) for Hyperon/MeTTa.

Requirements

Build https://github.com/trueagi-io/hyperon-experimental

Usage

The port is approached from different angles which are

  • Proofs as match queries
  • Proofs as custom Atom structure
  • Proofs as programs, and properties as dependent types

PLN via Dependent Types

The most advanced approach for now is via dependent types and can be found under

metta/dependent-types

The following examples can be run

metta metta/dependent-types/DeductionDTLTest.metta
metta metta/dependent-types/ImplicationDirectIntroductionDTLTest.metta
metta metta/dependent-types/DeductionImplicationDirectIntroductionDTLTest.metta

Synthesizer

The dependent type approach relies on a generic program synthesizer that can be found under

metta/synthesis

More information can be found in the README.md file under that directory.

Docker

A docker image containing a pre-installed version of Hyperon and PLN is hosted on Docker Hub and can be run as follows:

docker run --rm -ti trueagi/pln

Additionally, a Dockerfile to build and update that image is present under the root folder of that repository. To build the image from that local file, one may invoke the following command:

docker build -t trueagi/pln .

Or, using the URL of that Dockerfile:

docker build -t trueagi/pln https://raw.githubusercontent.com/trueagi-io/hyperon-pln/main/Dockerfile

Idris

There is also some Idris code under the idris folder to prototype some aspect of the dependent types port. This is sometimes easier because Idris is more mature than MeTTa. The minimum requirement is Idris2 version 0.5.1.

References

Below is a list of references to know more about PLN and its port to Hyperon/MeTTa:

hyperon-pln's People

Contributors

ngeiswei avatar tanksha avatar glicerico avatar leungmanhin avatar

Stargazers

fernando guadalupe mendez espinoza avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.