https://github.com/ahmedkhalf/theproofistrivial
Python port of TheProofIsTrivial
https://github.com/ahmedkhalf/theproofistrivial
Last synced: 2 months ago
JSON representation
Python port of TheProofIsTrivial
- Host: GitHub
- URL: https://github.com/ahmedkhalf/theproofistrivial
- Owner: ahmedkhalf
- License: mit
- Created: 2021-07-30T20:13:31.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-31T10:52:45.000Z (almost 4 years ago)
- Last Synced: 2025-02-19T01:48:49.587Z (3 months ago)
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TheProofIsTrivial
Python port of the javascript based website
[TheProofIsTrivial](http://www.theproofistrivial.com/).## Installation
```bash
pip install theproofistrivial
```## Usage
### Python Library
```python
import theproofistrivialquote = theproofistrivial.QuoteGenerator()
output = quote.create()print(output)
```The result is a list:
```
['The proof is trivial! Just biject it to a',
'combinatorial',
'field',
'whose elements are',
'associative',
'linear transformations']
```You can then process the list to make a single string or leave as is:
```python
# Single line string
output = " ".join(output)# Multi line string
output = "\n".join(output)
```### Command Line
```bash
theproofistrivial -h
``````
usage: __main__.py [-h] [-o]optional arguments:
-h, --help show this help message and exit
-o, --oneline show output as a single line
``````bash
theproofistrivial
``````
The proof is trivial! Just view the problem as a
computable
hypergraph
whose elements are
total
unbounded-fan-in circuits
``````bash
theproofistrivial -o
``````
The proof is trivial! Just biject it to an associative semigroup whose elements are perfect manifolds
```