Giter Site home page Giter Site logo

manuelkappler / rubylogic Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 191 KB

A (not yet, but hopefully eventually) fully fledged logic tool written in ruby as an exercise while TAing Columbia's Symbolic Logic course

License: GNU General Public License v3.0

Ruby 77.37% JavaScript 14.48% CSS 0.51% HTML 7.64%

rubylogic's Introduction

Introduction

RubyLogic aims to do a slate of things helpful for students and teachers of logic, at least for those following Haim Gaifmann's idiosyncratic approach to it. Among them are:

  • Generate truth tables for arbitrary formulas
  • Work through deduction proofs and generate counterexamples to claims
  • Work through simplifications with equivalence laws

Current State

The program relies on Sinatra to open up a web interface that allows for proving implication claims

TODO

Listed in decreasing order of importance

  • Re-enable the sentential logic component of the program on a joint web interface
    • Implement syntax_sentential, semantics_sentential, parse_string_sentential, and proof_sentential
    • Move logic-specific web code to a different app file and let the main app only control routes and basic interface
    • Cleanly separate all syntax-specific code from ProofTree helper class
  • Allow for printing of proofs as TeX file (proofs can now be displayed as a raw LaTeX-Tabular environment (A counterexample is given below if necessary)
  • Implement checking for premises including conclusion
  • Implement simplification via equivalence laws
  • Rewrite codebase from sentential logic to predicate logic
  • Fully implement all implication laws
    • Full list:
      • Conditional conclusion law
      • Conjunction premise law
      • Disjunction conclusion law
      • Substitution of equivalents
      • Disjoining of premises
      • Monotonicity
      • Disjunction premise law
      • Conjunction conclusion law
      • Conjunction premise law
      • Biconditional laws (premise/conclusion)
      • Contradictory conclusion law (required for proofs by contradiction)
  • Allow for automated proofs (this is not really relevant, although it would be cool)

rubylogic's People

Contributors

manuelkappler avatar

Stargazers

Alexander Richey avatar

Watchers

 avatar

rubylogic's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.