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.
Constant
is the class of constants, corresponding to $c statements in metamath.
The port of other concepts in metamath and set.mm
Example code:
from formalmath import setmm
test1 = MObject("x1")
test2 = MObject("y1")
# test3 = MObject("x1")
print(test1) # output: MObject("x1")
test3 = MObject.find_MObject_by_label("y1")
print(test3) # output: MObject("y1")
lp = Constant("\\left(")
rp = Constant("\\right)")
# lp2 = Constant("\\left(")
print(lp) # output: Constant("\left(")
testConst = 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
formalmath-0.0.2.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for formalmath-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14a25fafc8fbfb7bf4be2aea5f184cca1a9ef869cfdf89bba24d7c2fb49a295e |
|
MD5 | d16a588914e024c88ece53d51c1922f4 |
|
BLAKE2b-256 | dc8df109335cf5a428801dc1c8f41686a9628352b7baefa2d568af6eb8f40623 |