a python port of formal mathematics proof verifier.
Project description
formalmath
A formal mathematics package.
setmm
A port for metamath and set.mm
. The language metamath
is a math proof verifying language. And, set.mm
is its main database of theorems, based on the classical ZFC axiom system.
MObject
is the basic class. Any MObject
have a label. Some of them have short_code or metamath_code. The label system is unique (if you create a new MObject with the same label with existing one, the program will raise ValueError). So does the short_code and metamath_code.
Constant
is the class of constants, corresponding to $c statements in metamath.
The port of other concepts in metamath and set.mm is a work in process.
Example code:
from formalmath import setmm
test1 = setmm.MObject("x1")
test2 = setmm.MObject("y1")
# test3 = setmm.MObject("x1")
print(test1) # output: MObject("x1")
test3 = setmm.MObject.find_MObject_by_label("y1")
print(test3) # output: MObject("y1")
lp = setmm.Constant("\\left(")
rp = setmm.Constant("\\right)")
# lp2 = setmm.Constant("\\left(")
print(lp) # output: Constant("\left(")
testConst = setmm.Constant.find_MObject_by_label("\\right)")
print(testConst) # output: Constant("\right)")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for formalmath-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4881459509a5328605063b4e176b037ffc22d1f95281ae5830e89d9b526065bc |
|
MD5 | d4d53174ae28ee92a8163fd5399f6b4b |
|
BLAKE2b-256 | bce90d43833d5c5633118bebc23591c597c526d9af3e948e2da18b3119b15e97 |