Skip to content

A parser for the pq-System by Douglas R. Hofstadter

License

Notifications You must be signed in to change notification settings

hirigaray/pq-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

pq-system

This is a simple parser for the pq-system as described in Chapter 2 of Gödel, Escher, Bach by Douglas R. Hofstadter.

Examples

These should evaluate to true
(valid-theorem? '(- - p - - q - - - -))
(valid-theorem? '(- - p - - - q - - - - -))
These should evaluate to false
(valid-theorem? '(- - p - - q - - - - -))
(valid-theorem? '(- p - - - q -))
These should produce
(produce-theorem 2 3) -> '(- - p - - - q - - - - -)
(produce-theorem 4 5) -> '(- - - - p - - - - - q - - - - - - - - -)

About

A parser for the pq-System by Douglas R. Hofstadter

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages