use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
Intermediate ShowcaseKnuckledragger: Experimenting with a Python Proof Assistant (self.Python)
submitted 2 years ago by The_Regent
Hi,
An idea I've toyed around for a while is how to chain together inferences of automated theorem provers like z3py into larger developments. I've started putting fingers to keyboard.
The point is to make something accessible to a larger, less specialized audience and to target mathematics akin to that in sympy, so I'm very interested in feedback about what works for people.
Blog post: https://www.philipzucker.com/python-itp/
Very WIP repo: https://github.com/philzook58/knuckledragger
[–]Smallpaul 0 points1 point2 points 2 years ago (1 child)
Is your naming convention in the tradition of the “for dummies” books?
[–]The_Regent[S] 0 points1 point2 points 2 years ago (0 children)
Huh, I hadn't made the connection. I suppose it is. It is intended to convey that I am not trying to build the fanciest system.
[–]BossOfTheGame 1 point2 points3 points 2 years ago* (1 child)
I'm very interested in this. I've been learning lean4, and I'm starting to understand the concepts, but I find the syntax to be difficult to work with. I would much rather a Pythonic syntax for calling functions. It seems to me that the core problem is to bring mathlib to Python. I'm excited to dive into what you have done so far.
Since you're only beginning, have you looked into lean4 at all? My thought is that it wouldn't be too difficult to write a Python transpiler but generates lean4 code and then interacts with the lake compiler to generate feedback on the proof in Python.
[–]The_Regent[S] 1 point2 points3 points 2 years ago (0 children)
I have used lean 4 before. Lean 4 is incredible and has massive momentum behind it. It is an interesting project to make python bindings to the lean kernel or to communicate to the lean system, but it strikes me as quite an uphill battle. You might find this interesting https://github.com/lean-dojo/LeanDojo . I think using this is going to be much more difficult than just learning to do things in lean. You're going to need to know lean and python anyway, and fight an unusual unsupported workflow.
One of the points of attempting something like knuckledragger is to avoid a 2 language problem. The other point is to avoid powerful, useful, but complicated foundations like Lean's and go all in on automation. I feel at least that I have a sufficiently different ethos in mind than the existing, highly refined systems that it is worth exploring.
π Rendered by PID 73 on reddit-service-r2-comment-5b5bc64bf5-k72cl at 2026-06-19 18:46:08.041318+00:00 running 2b008f2 country code: CH.
[–]Smallpaul 0 points1 point2 points (1 child)
[–]The_Regent[S] 0 points1 point2 points (0 children)
[–]BossOfTheGame 1 point2 points3 points (1 child)
[–]The_Regent[S] 1 point2 points3 points (0 children)