Skip to content

mertdumenci/system-lk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

system-lk

system-lk is a propositional theorem prover in Swift, based on Wang's Algorithm. I wrote system-lk to better understand the inference rules in sequent calculus after reading @joom's WangsAlgorithm.

Author

Mert Dumenci mert@dumenci.me

Usage

// Construct a `Sequent`.
let lawOfTheExcludedMiddle = Sequent(
    antecedents: [],
    consequents: [
        .Disjunction(
            .Atomic("x"),
            .Negation(.Atomic("x"))
        )
    ]
)

// Prove it using `prove`.
let proof = prove(sequent: lawOfTheExcludedMiddle)

Notes

Check out WangsAlgorithm for a much more complete version of this project. system-lk is heavily inspired by WangsAlgorithm, and doesn't implement half of its features: LaTeX proof output, parser for sequents, etc.

About

A propositional theorem prover in Swift.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages