Giter Site home page Giter Site logo

gpevnev / math-logic Goto Github PK

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

Practice tasks for Mathematical logic course at ITMO University spring 2018

License: BSD 3-Clause "New" or "Revised" License

Makefile 2.89% Haskell 97.11%
mathematical-logic haskell-exercises haskell parsing

math-logic's Introduction

Mathlogic ITMO 2018 course practice tasks

Page at Yandex.Contest

Statement for tasks in russian

Task 0:

Parse logical expressions and print them in prefix form.

Examples:

!A&!B->!(A|B)

should be

(->,(&,(!A),(!B)),(!(|,A,B)))

P->!QQ->!R10&S|!T&U&V

should be

(->,P,(->,(!QQ),(|,(&,(!R10),S),(&,(&,(!T),U),V))))

Task 1:

Check and annotate proof of classical propositional calculus.

Example:

A,B|-A&B
A
B
A->B->A&B
B->A&B
A->A
A&B

should be

(1) A (Предп. 1)
(2) B (Предп. 2)
(3) (A->(B->(A&B))) (Сх. акс. 3)
(4) (B->(A&B)) (M.P. 3, 1)
(5) (A->A) (Не доказано)
(6) (A&B) (M.P. 4, 2)

Task 2:

Deduction theorem constrictive proof.

Example:

A|-B->A
A->B->A
A
B->A

should be

|-(A->(B->A))
((A->(B->A))->(A->(A->(B->A))))
(A->(B->A))
(A->(A->(B->A)))
(A->(A->A))
(A->((A->A)->A))
((A->(A->A))->((A->((A->A)->A))->(A->A)))
((A->((A->A)->A))->(A->A))
(A->A)
((A->A)->((A->(A->(B->A)))->(A->(B->A))))
((A->(A->(B->A)))->(A->(B->A)))
(A->(B->A))

math-logic's People

Contributors

gpevnev avatar

Watchers

 avatar

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.