Skip to content

Encodes and decodes "Gödel Numbers" as described in the book "Gödel's Proof" by Ernest Nagel and James R. Newman.

Notifications You must be signed in to change notification settings

jackolantern/godel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Encodes and decodes "Gödel Numbers" as described in the book "Gödel's Proof" by Ernest Nagel and James R. Newman.

Example

import godel

gnum = godel.encode("(∃x)(x=sy)")

self.assertEqual(gnum, 172225505803959398742621651659678877886965404082311908389214945877004912002249920215937500000000)

string = godel.decode(172225505803959398742621651659678877886965404082311908389214945877004912002249920215937500000000)

self.assertEqual(string, "(∃x)(x=sy)")

About

Encodes and decodes "Gödel Numbers" as described in the book "Gödel's Proof" by Ernest Nagel and James R. Newman.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages