8000 GitHub - masashi-y/ljt
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

masashi-y/ljt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LJT OCaml

Requirements

  • OCaml (newer version)

Usage

$ echo "(a /\ b) => (b /\ a)" | ocaml ljt.ml

==========================
stdin
((a ∧ b) ⊃ (b ∧ a))
success!

 •   ---->  ((a ∧ b) ⊃ (b ∧ a)) by ⊃R
 • (a ∧ b)  ---->  (b ∧ a) by ∧R

  • (a ∧ b)  ---->  b by ∧L
   • b, a  ---->  b by init

  • (a ∧ b)  ---->  a by ∧L
   • a, b  ---->  a by init

Some interesting unit tests:

$ ocaml ljt.ml test

Issue

  • The implementation of the formula parser is very naive and does not consider precedence and associativity. Please add parentheses(, ) to specify them!

Acknowledgement

Standard ML implementation: https://github.com/ayberkt/sequents

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0