goedel 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- goedel-0.2.0/CHANGELOG.md +15 -0
- goedel-0.2.0/CITATION.cff +8 -0
- goedel-0.2.0/CONTRIBUTING.md +18 -0
- goedel-0.2.0/DISCLAIMER.md +6 -0
- goedel-0.2.0/LICENSE +202 -0
- goedel-0.2.0/MANIFEST.in +15 -0
- goedel-0.2.0/NOTICE +4 -0
- goedel-0.2.0/PKG-INFO +93 -0
- goedel-0.2.0/README.md +56 -0
- goedel-0.2.0/SECURITY.md +6 -0
- goedel-0.2.0/THIRD_PARTY_NOTICES.md +13 -0
- goedel-0.2.0/docs/API.md +960 -0
- goedel-0.2.0/docs/ARITHMETIC.md +119 -0
- goedel-0.2.0/docs/ARITHMETIC_CODING.md +80 -0
- goedel-0.2.0/docs/DEVELOPMENT.md +54 -0
- goedel-0.2.0/docs/FIXEDPOINT.md +49 -0
- goedel-0.2.0/docs/GUIDE.md +58 -0
- goedel-0.2.0/docs/INFERENCE.md +49 -0
- goedel-0.2.0/docs/PA_PROVABILITY.md +94 -0
- goedel-0.2.0/docs/REGISTER_MACHINE.md +42 -0
- goedel-0.2.0/docs/SCOPED_PROOFS.md +69 -0
- goedel-0.2.0/docs/WIRE.md +42 -0
- goedel-0.2.0/examples/arithmetical_godel.py +41 -0
- goedel-0.2.0/examples/workflow.py +39 -0
- goedel-0.2.0/pyproject.toml +76 -0
- goedel-0.2.0/setup.cfg +4 -0
- goedel-0.2.0/src/goedel/__init__.py +232 -0
- goedel-0.2.0/src/goedel/arithmetic.py +423 -0
- goedel-0.2.0/src/goedel/arithmetic_dag.py +429 -0
- goedel-0.2.0/src/goedel/catalogue.py +111 -0
- goedel-0.2.0/src/goedel/dag_proofs.py +177 -0
- goedel-0.2.0/src/goedel/fixedpoint.py +235 -0
- goedel-0.2.0/src/goedel/inference.py +434 -0
- goedel-0.2.0/src/goedel/metatheorems.py +164 -0
- goedel-0.2.0/src/goedel/modal.py +284 -0
- goedel-0.2.0/src/goedel/natural_deduction.py +355 -0
- goedel-0.2.0/src/goedel/pa_provability.py +237 -0
- goedel-0.2.0/src/goedel/proof.py +218 -0
- goedel-0.2.0/src/goedel/proof_coding.py +145 -0
- goedel-0.2.0/src/goedel/py.typed +0 -0
- goedel-0.2.0/src/goedel/register_machine.py +286 -0
- goedel-0.2.0/src/goedel/resources/catalogue.json +1781 -0
- goedel-0.2.0/src/goedel/resources/catalogue_review.json +593 -0
- goedel-0.2.0/src/goedel/resources/expr.schema.json +77 -0
- goedel-0.2.0/src/goedel/resources/inference_rules.json +138 -0
- goedel-0.2.0/src/goedel/resources/pa_hbl_review.json +1 -0
- goedel-0.2.0/src/goedel/resources/pa_proof_representation.json +1 -0
- goedel-0.2.0/src/goedel/resources/pa_proof_review.json +1 -0
- goedel-0.2.0/src/goedel/resources/provability_representation.json +1 -0
- goedel-0.2.0/src/goedel/resources/reference_cases.json +4631 -0
- goedel-0.2.0/src/goedel/resources/resource_manifest.json +15 -0
- goedel-0.2.0/src/goedel/resources/substitution_representation.json +1 -0
- goedel-0.2.0/src/goedel/semantics.py +320 -0
- goedel-0.2.0/src/goedel/sequence.py +124 -0
- goedel-0.2.0/src/goedel/syntax.py +390 -0
- goedel-0.2.0/src/goedel.egg-info/PKG-INFO +93 -0
- goedel-0.2.0/src/goedel.egg-info/SOURCES.txt +98 -0
- goedel-0.2.0/src/goedel.egg-info/dependency_links.txt +1 -0
- goedel-0.2.0/src/goedel.egg-info/requires.txt +19 -0
- goedel-0.2.0/src/goedel.egg-info/top_level.txt +1 -0
- goedel-0.2.0/tests/test_arithmetic.py +132 -0
- goedel-0.2.0/tests/test_arithmetic_dag.py +203 -0
- goedel-0.2.0/tests/test_catalogue.py +73 -0
- goedel-0.2.0/tests/test_dag_alpha.py +58 -0
- goedel-0.2.0/tests/test_fixedpoint.py +61 -0
- goedel-0.2.0/tests/test_godel_wrapper.py +59 -0
- goedel-0.2.0/tests/test_inference.py +212 -0
- goedel-0.2.0/tests/test_metatheorems.py +126 -0
- goedel-0.2.0/tests/test_modal.py +81 -0
- goedel-0.2.0/tests/test_natural_deduction.py +190 -0
- goedel-0.2.0/tests/test_pa_provability.py +101 -0
- goedel-0.2.0/tests/test_proof.py +105 -0
- goedel-0.2.0/tests/test_reference_cases.py +27 -0
- goedel-0.2.0/tests/test_register_machine.py +92 -0
- goedel-0.2.0/tests/test_semantics.py +163 -0
- goedel-0.2.0/tests/test_syntax.py +153 -0
- goedel-0.2.0/tools/api_audit.py +19 -0
- goedel-0.2.0/tools/reproduction/ARITHMETIC_CODING.md +58 -0
- goedel-0.2.0/tools/reproduction/PA_HBL_ARGUMENT.md +301 -0
- goedel-0.2.0/tools/reproduction/PA_PROOF_PRESENTATION.md +115 -0
- goedel-0.2.0/tools/reproduction/README.md +55 -0
- goedel-0.2.0/tools/reproduction/arithmetization_programs.py +207 -0
- goedel-0.2.0/tools/reproduction/build.py +62 -0
- goedel-0.2.0/tools/reproduction/call_compiler_review.json +1 -0
- goedel-0.2.0/tools/reproduction/compile_register.py +347 -0
- goedel-0.2.0/tools/reproduction/compile_register_calls.py +101 -0
- goedel-0.2.0/tools/reproduction/manifest.json +40 -0
- goedel-0.2.0/tools/reproduction/pa_hbl_review.json +1 -0
- goedel-0.2.0/tools/reproduction/pa_proof_programs.py +559 -0
- goedel-0.2.0/tools/reproduction/pa_proof_review.json +1 -0
- goedel-0.2.0/tools/reproduction/pa_specialization.py +244 -0
- goedel-0.2.0/tools/reproduction/pa_transformations.py +81 -0
- goedel-0.2.0/tools/reproduction/provability_representation.json +1 -0
- goedel-0.2.0/tools/reproduction/register_programs.json +31 -0
- goedel-0.2.0/tools/reproduction/representation_compiler.py +491 -0
- goedel-0.2.0/tools/reproduction/representation_spec.md +192 -0
- goedel-0.2.0/tools/reproduction/substitution_review.json +1 -0
- goedel-0.2.0/tools/smoke_installed.py +53 -0
- goedel-0.2.0/tools/validate_distribution.py +146 -0
- goedel-0.2.0/tools/verify_source_tree.py +77 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.2.0 (local candidate)
|
|
4
|
+
|
|
5
|
+
Adds native arithmetic theory objects and induction, finite first-order and modal
|
|
6
|
+
semantics, scoped natural deduction with equality and discharge, exact numerical
|
|
7
|
+
sequence and arithmetic DAG coding, DAG proof replay, concrete conditional fixed
|
|
8
|
+
points, register execution and trace checks, and reviewed typed catalogue inference.
|
|
9
|
+
Original small-expression syntax and byte numbering remain compatible.
|
|
10
|
+
|
|
11
|
+
## 0.1.0
|
|
12
|
+
|
|
13
|
+
Initial native Python release candidate: finite first-order syntax, capture-avoiding
|
|
14
|
+
substitution, exact decimal Goedel codes, explicit proof checking, bounded search,
|
|
15
|
+
versioned literature catalogue, conditional applicability and Python/R reference cases.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
A change to syntax, coding, proof rules or status semantics must update its versioned
|
|
4
|
+
contract, independent examples and both language implementations. Supply negative
|
|
5
|
+
cases for altered rules and binders. Do not promote a mathematical claim without
|
|
6
|
+
precise hypotheses, a source locator and independent review. Run the checks in
|
|
7
|
+
docs/DEVELOPMENT.md before proposing a change.
|
|
8
|
+
|
|
9
|
+
## Test runtime
|
|
10
|
+
|
|
11
|
+
The default test suite skips full arithmetic fixed-point constructions. GitHub CI
|
|
12
|
+
always skips these large cases, including when `GOEDEL_RUN_LARGE_TESTS` is set.
|
|
13
|
+
Small syntax, coding, proof-checking and wrapper-composition tests remain active.
|
|
14
|
+
For an explicitly requested local research run only, use
|
|
15
|
+
`GOEDEL_RUN_LARGE_TESTS=1 python -m pytest tests/test_fixedpoint.py` inside a worker
|
|
16
|
+
with operating-system memory and CPU/wall-time limits. A skipped or interrupted
|
|
17
|
+
construction is not a successful verification. Installation smoke tests do not
|
|
18
|
+
construct full arithmetic fixed points.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Mathematical scope
|
|
2
|
+
|
|
3
|
+
Software validation does not establish truth, consistency or independence.
|
|
4
|
+
The library checks explicit finite syntax and derivations and reports literature
|
|
5
|
+
results with their hypotheses. Its bounded search is incomplete. It does not
|
|
6
|
+
provide formal kernel certificates. See docs/GUIDE.md for exact trust boundaries.
|
goedel-0.2.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
goedel-0.2.0/MANIFEST.in
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
include CHANGELOG.md CITATION.cff CONTRIBUTING.md DISCLAIMER.md LICENSE NOTICE README.md SECURITY.md THIRD_PARTY_NOTICES.md
|
|
2
|
+
recursive-include docs *.md
|
|
3
|
+
recursive-include examples *.py *.md
|
|
4
|
+
recursive-include src/goedel/resources *
|
|
5
|
+
recursive-include tests *.py
|
|
6
|
+
recursive-include tools *.py
|
|
7
|
+
recursive-include tools/reproduction *.py *.md *.json
|
|
8
|
+
global-exclude *.py[cod] __pycache__ .DS_Store
|
|
9
|
+
prune scaffold
|
|
10
|
+
prune Unterlagen
|
|
11
|
+
prune intern
|
|
12
|
+
prune archiv
|
|
13
|
+
global-exclude *.pdf *.doc *.docx *.odt *.zip
|
|
14
|
+
prune goedel-scaffold
|
|
15
|
+
prune transformation
|
goedel-0.2.0/NOTICE
ADDED
goedel-0.2.0/PKG-INFO
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: goedel
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: Finite symbolic logic, exact Goedel coding and qualified metamathematical catalogues
|
|
5
|
+
Author: RiskDataScience GmbH
|
|
6
|
+
Maintainer-email: "Dr. Dimitrios Geromichalos" <riskdatascience@web.de>
|
|
7
|
+
License: Apache-2.0
|
|
8
|
+
Keywords: logic,metamathematics,goedel,proof-checking
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
|
+
Classifier: Typing :: Typed
|
|
17
|
+
Requires-Python: >=3.10
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
License-File: LICENSE
|
|
20
|
+
License-File: NOTICE
|
|
21
|
+
Provides-Extra: graph
|
|
22
|
+
Requires-Dist: networkx<4,>=3; extra == "graph"
|
|
23
|
+
Provides-Extra: test
|
|
24
|
+
Requires-Dist: hypothesis<7,>=6; extra == "test"
|
|
25
|
+
Requires-Dist: pytest<10,>=8; extra == "test"
|
|
26
|
+
Requires-Dist: pytest-cov<8,>=5; extra == "test"
|
|
27
|
+
Provides-Extra: build
|
|
28
|
+
Requires-Dist: build<2,>=1.2; extra == "build"
|
|
29
|
+
Requires-Dist: twine<8,>=6; extra == "build"
|
|
30
|
+
Provides-Extra: dev
|
|
31
|
+
Requires-Dist: build<2,>=1.2; extra == "dev"
|
|
32
|
+
Requires-Dist: hypothesis<7,>=6; extra == "dev"
|
|
33
|
+
Requires-Dist: pytest<10,>=8; extra == "dev"
|
|
34
|
+
Requires-Dist: ruff<1,>=0.11; extra == "dev"
|
|
35
|
+
Requires-Dist: twine<8,>=6; extra == "dev"
|
|
36
|
+
Dynamic: license-file
|
|
37
|
+
|
|
38
|
+
# goedel
|
|
39
|
+
|
|
40
|
+
`goedel` is a native Python library for arithmetic syntax, finite first-order and
|
|
41
|
+
modal semantics, exact Goedel numbering, explicit proof checking, bounded proof search and a qualified catalogue
|
|
42
|
+
of metamathematical results. Python 3.10 or later is required. There are no runtime
|
|
43
|
+
dependencies and no dependency on R.
|
|
44
|
+
|
|
45
|
+
Install a local source tree with `python -m pip install .`, or install its built
|
|
46
|
+
wheel. The local 0.2.0 candidate extends the 0.1.0 syntax and encoding APIs with
|
|
47
|
+
concrete Q/PA theory objects, parameterized induction, scoped natural deduction
|
|
48
|
+
finite Kripke models, presentation-sensitive arithmetic DAG coding, concrete
|
|
49
|
+
conditional fixed points and typed catalogue inference. The R package implements
|
|
50
|
+
the same shared contracts.
|
|
51
|
+
|
|
52
|
+
```python
|
|
53
|
+
import goedel as g
|
|
54
|
+
|
|
55
|
+
x, y = g.variable("x"), g.variable("y")
|
|
56
|
+
formula = g.forall("y", g.predicate("R", [x, y]))
|
|
57
|
+
changed = g.substitute(formula, "x", y)
|
|
58
|
+
assert g.free_variables(changed) == ["y"]
|
|
59
|
+
assert changed == g.forall("v0", g.predicate("R", [y, g.variable("v0")]))
|
|
60
|
+
assert g.decode(g.encode(changed)) == changed
|
|
61
|
+
|
|
62
|
+
p, q = g.predicate("P"), g.predicate("Q")
|
|
63
|
+
assumptions = [p, g.implication(p, q)]
|
|
64
|
+
answer = g.bounded_proof_search(q, assumptions, max_steps=8)
|
|
65
|
+
assert answer["status"] == "ESTABLISHED"
|
|
66
|
+
assert g.check_proof(answer["witness"], assumptions, conclusion=q)["status"] == "ESTABLISHED"
|
|
67
|
+
|
|
68
|
+
# A theory name does not silently assert its metamathematical properties.
|
|
69
|
+
assert g.check_applicability("rosser", g.theory_context("PA"))["status"] == "UNKNOWN"
|
|
70
|
+
variant = g.lookup_statement("rosser")
|
|
71
|
+
context = g.theory_context("T", {key: True for key in variant["requirements"]})
|
|
72
|
+
assert g.check_applicability("rosser", context)["status"] == "ESTABLISHED"
|
|
73
|
+
assert context["consistency_status"] == "NOT_ESTABLISHED"
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
An established applicability result is conditional on the supplied declarations.
|
|
77
|
+
It is not a proof that those declarations hold. A valid derivation trusts its
|
|
78
|
+
declared assumptions and closed axioms. An exhausted search does not demonstrate
|
|
79
|
+
unprovability. Syntax validation, finite computation, catalogue evidence and formal
|
|
80
|
+
kernel verification have different meanings; no formal kernel verification is
|
|
81
|
+
claimed by this release.
|
|
82
|
+
|
|
83
|
+
See [the guide](docs/GUIDE.md), [API reference](docs/API.md),
|
|
84
|
+
[arithmetic and finite semantics](docs/ARITHMETIC.md), [scoped proof rules](docs/SCOPED_PROOFS.md),
|
|
85
|
+
[wire and numbering specification](docs/WIRE.md), [arithmetic DAG coding](docs/ARITHMETIC_CODING.md),
|
|
86
|
+
[concrete fixed points](docs/FIXEDPOINT.md), [PA proof predicates](docs/PA_PROVABILITY.md), [register computations](docs/REGISTER_MACHINE.md), [typed catalogue inference](docs/INFERENCE.md), and
|
|
87
|
+
[release/testing notes](docs/DEVELOPMENT.md). Scientific sources and exact locators
|
|
88
|
+
are embedded in each relevant catalogue record and its source table.
|
|
89
|
+
|
|
90
|
+
Copyright 2026 RiskDataScience GmbH. Licensed under Apache-2.0. Maintainer:
|
|
91
|
+
Dr. Dimitrios Geromichalos, riskdatascience@web.de. The package itself makes no
|
|
92
|
+
network requests, performs no telemetry and reads its installed resources without
|
|
93
|
+
modifying them. Explicit caller serialization/exports are returned as values.
|
goedel-0.2.0/README.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# goedel
|
|
2
|
+
|
|
3
|
+
`goedel` is a native Python library for arithmetic syntax, finite first-order and
|
|
4
|
+
modal semantics, exact Goedel numbering, explicit proof checking, bounded proof search and a qualified catalogue
|
|
5
|
+
of metamathematical results. Python 3.10 or later is required. There are no runtime
|
|
6
|
+
dependencies and no dependency on R.
|
|
7
|
+
|
|
8
|
+
Install a local source tree with `python -m pip install .`, or install its built
|
|
9
|
+
wheel. The local 0.2.0 candidate extends the 0.1.0 syntax and encoding APIs with
|
|
10
|
+
concrete Q/PA theory objects, parameterized induction, scoped natural deduction
|
|
11
|
+
finite Kripke models, presentation-sensitive arithmetic DAG coding, concrete
|
|
12
|
+
conditional fixed points and typed catalogue inference. The R package implements
|
|
13
|
+
the same shared contracts.
|
|
14
|
+
|
|
15
|
+
```python
|
|
16
|
+
import goedel as g
|
|
17
|
+
|
|
18
|
+
x, y = g.variable("x"), g.variable("y")
|
|
19
|
+
formula = g.forall("y", g.predicate("R", [x, y]))
|
|
20
|
+
changed = g.substitute(formula, "x", y)
|
|
21
|
+
assert g.free_variables(changed) == ["y"]
|
|
22
|
+
assert changed == g.forall("v0", g.predicate("R", [y, g.variable("v0")]))
|
|
23
|
+
assert g.decode(g.encode(changed)) == changed
|
|
24
|
+
|
|
25
|
+
p, q = g.predicate("P"), g.predicate("Q")
|
|
26
|
+
assumptions = [p, g.implication(p, q)]
|
|
27
|
+
answer = g.bounded_proof_search(q, assumptions, max_steps=8)
|
|
28
|
+
assert answer["status"] == "ESTABLISHED"
|
|
29
|
+
assert g.check_proof(answer["witness"], assumptions, conclusion=q)["status"] == "ESTABLISHED"
|
|
30
|
+
|
|
31
|
+
# A theory name does not silently assert its metamathematical properties.
|
|
32
|
+
assert g.check_applicability("rosser", g.theory_context("PA"))["status"] == "UNKNOWN"
|
|
33
|
+
variant = g.lookup_statement("rosser")
|
|
34
|
+
context = g.theory_context("T", {key: True for key in variant["requirements"]})
|
|
35
|
+
assert g.check_applicability("rosser", context)["status"] == "ESTABLISHED"
|
|
36
|
+
assert context["consistency_status"] == "NOT_ESTABLISHED"
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
An established applicability result is conditional on the supplied declarations.
|
|
40
|
+
It is not a proof that those declarations hold. A valid derivation trusts its
|
|
41
|
+
declared assumptions and closed axioms. An exhausted search does not demonstrate
|
|
42
|
+
unprovability. Syntax validation, finite computation, catalogue evidence and formal
|
|
43
|
+
kernel verification have different meanings; no formal kernel verification is
|
|
44
|
+
claimed by this release.
|
|
45
|
+
|
|
46
|
+
See [the guide](docs/GUIDE.md), [API reference](docs/API.md),
|
|
47
|
+
[arithmetic and finite semantics](docs/ARITHMETIC.md), [scoped proof rules](docs/SCOPED_PROOFS.md),
|
|
48
|
+
[wire and numbering specification](docs/WIRE.md), [arithmetic DAG coding](docs/ARITHMETIC_CODING.md),
|
|
49
|
+
[concrete fixed points](docs/FIXEDPOINT.md), [PA proof predicates](docs/PA_PROVABILITY.md), [register computations](docs/REGISTER_MACHINE.md), [typed catalogue inference](docs/INFERENCE.md), and
|
|
50
|
+
[release/testing notes](docs/DEVELOPMENT.md). Scientific sources and exact locators
|
|
51
|
+
are embedded in each relevant catalogue record and its source table.
|
|
52
|
+
|
|
53
|
+
Copyright 2026 RiskDataScience GmbH. Licensed under Apache-2.0. Maintainer:
|
|
54
|
+
Dr. Dimitrios Geromichalos, riskdatascience@web.de. The package itself makes no
|
|
55
|
+
network requests, performs no telemetry and reads its installed resources without
|
|
56
|
+
modifying them. Explicit caller serialization/exports are returned as values.
|
goedel-0.2.0/SECURITY.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Reporting problems
|
|
2
|
+
|
|
3
|
+
Report suspected parser, resource-limit or proof-checking defects to
|
|
4
|
+
riskdatascience@web.de. Include a minimal input and package version. Do not send
|
|
5
|
+
credentials or private research material. Malformed inputs must produce explicit
|
|
6
|
+
errors; they must never silently become mathematical success results.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Sources and dependencies
|
|
2
|
+
|
|
3
|
+
The core runtime uses the Python standard library only. Optional NetworkX graph
|
|
4
|
+
exports use NetworkX under its own BSD license; NetworkX is not bundled. Mathematical explanations and
|
|
5
|
+
examples are independently written. The catalogue contains bibliographic citations
|
|
6
|
+
and precise locators for the mathematical literature; no source-book extracts or
|
|
7
|
+
third-party formal proof code are distributed. Development tools retain their
|
|
8
|
+
respective licenses and are not bundled with the package.
|
|
9
|
+
|
|
10
|
+
Arithmetic representation resources are generated from this project's explicit
|
|
11
|
+
register programs and compiler. Their source hashes and mathematical review records
|
|
12
|
+
are included for provenance. A reported external formalization is not a claim that
|
|
13
|
+
its proof assistant has been replayed by this package.
|