Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Import and work with a Metamath database
ResourceFunction["MetamathImport"][src] imports Metamath source code from src and returns a MetamathObject with various properties. |
| "Verify" | False | whether to verify theorem proofs or not |
| "Symbols" | list of symbols |
| "Constants" | list of constants |
| "Variables" | list of variables |
| "Statements" | list of statements |
| "Axioms" | list of axioms |
| "Definitions" | list of definitions (axioms starting with "df-") |
| "Theorems" | list of theorems |
| "SymbolCount" | number of symbols |
| "ConstantCount" | number of constants |
| "VariableCount" | number of variables |
| "StatementCount" | number of statements |
| "AxiomCount" | number of axioms |
| "DefinitionCount" | number of definitions |
| "TheoremCount" | number of theorems |
| "DependencyGraph" | theorem proof dependency graph |
| "Proof", thm | proof of a theorem as a list of steps |
| "ProofTree", thm | proof tree of a theorem |
| "ExpandedProofTree", thm | proof tree expanded down to axioms |
| "ProofGraph", thm | proof graph of a theorem |
| "ExpandedProofGraph", thm | proof graph expanded down to axioms |
| "TokenEventGraph", thm | token event proof graph of a theorem |
| "ExpandedTokenEventGraph", thm | token event proof graph expanded down to axioms |
| "SyntaxTree", stmt | syntax breakdown tree of a statement |
| "SyntaxDependencyTree", stmt | syntax dependency tree of a statement |
| "SimpleSyntaxTree", stmt | simplified syntax tree |
| "Import", src | parse and append new Metamath statements |
| "SetMM" | set.mm database |
| "iSetMM" | intuitionistic logic and set theory isetmm database |
| "Peano" | Peano arithmetic peano.mm database |
| "NormMegillWolframAxioms" | Norm Megill's proofs of Sheffer axioms (AxiomaticTheory["ShefferAxioms"]) from the Wolfram Axiom (AxiomaticTheory["WolframAxioms"]) |
| "ASCIITable" | ASCII replacement rules |
Import Metamath source code with a bunch of constants and a simple axiom:
| In[1]:= | ![]() |
| Out[1]= |
Import a basic Metamath source code sample with 4 constants, 5 variables, 5 floating hypotheses, 1 axiom and 2 proved theorems:
| In[2]:= | ![]() |
| Out[2]= |
Extract a proof of a theorem:
| In[3]:= |
| Out[3]= |
Construct a proof tree:
| In[4]:= |
| Out[4]= | ![]() |
Construct a proof graph:
| In[5]:= |
| Out[5]= | ![]() |
Construct a detailed syntax tree breakdown:
| In[6]:= |
| Out[6]= | ![]() |
Construct a simplified syntax tree:
| In[7]:= |
| Out[7]= |
Introduce a new Metamath theorem by importing a source string and verifying it:
| In[8]:= | ![]() |
| Out[8]= | ![]() |
Verifying theorems expands proofs with more information:
| In[9]:= | ![]() |
| Out[9]= |
| In[10]:= | ![]() |
| Out[10]= |
Verify Norm Megill's proofs of Sheffer axioms using the Wolfram axioms:
| In[11]:= |
| Out[11]= | ![]() |
Import the SetMM database and explore various visualizations of its theorems:
| In[12]:= |
| Out[12]= |
| In[13]:= |
| Out[13]= | ![]() |
| In[14]:= |
| Out[14]= | ![]() |
| In[15]:= |
| Out[15]= | ![]() |
| In[16]:= |
| Out[16]= | ![]() |
| In[17]:= |
| Out[17]= | ![]() |
Norm Megill's proofs of the Sheffer axioms from the Wolfram Axiom:
| In[18]:= |
| Out[18]= |
| In[19]:= |
| Out[19]= | ![]() |
| In[20]:= |
| Out[20]= | ![]() |
| In[21]:= |
| Out[21]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License