Tutorials
Eight short lessons build the library up from nothing. They assume you know Python and nothing at all about MeTTa. Each lesson introduces one idea with runnable code and a rendered picture of what the code made, and ends where the next lesson begins.
- Atoms and expressions starts with one atom and builds symbols, variables, and expressions in Python.
- Spaces and matching stores facts in a space and asks patterns against them.
- Equations and evaluation gives matching expressions rewrites and runs them to answers.
- The Python bridge chooses between
run,eval, andqueryfrom the value you already have. - Writing MeTTa in Python compiles decorated Python functions into equations.
- Types and casting declares optional types and checks values against them with
cast. - Seeing your program reads traces, lint results, and derivations.
- The graph view draws terms as connected nodes and animates a reduction.