Giter Club home page Giter Club logo

logic-lean4's Introduction

Lean Logic Proofs

SOURCE: https://hrmacbeth.github.io/math2001/05_Logic.html

This repository contains a series of logical proofs written in Lean 4. Each proof demonstrates fundamental concepts in propositional logic and predicate logic. The proofs use various Lean tactics to establish equivalences, implications, and other logical relationships.

Proofs Included

1. Disjunction from Conjunction

Given hypotheses $P$ and $Q$, the proof shows that $P \lor Q$ holds.

2. Conjunction from Implications

This proof demonstrates that if $P \to Q$ and $P \to R$, and $P$ holds, then $Q \land R$ both hold.

3. Negation of a Conjunction

The proof shows that $\neg (P \land \neg P)$ holds, which is a demonstration of the law of non-contradiction.

4. Negation of an Implication

Given that $P \leftrightarrow \neg Q$ and $Q$ holds, the proof shows that $\neg P$ must hold.

5. Deriving a Proposition from a Disjunction

The proof demonstrates that if $P \lor Q$ holds and $Q \to P$, then $P$ holds.

6. Conjunction with an Equivalence

This proof shows that $(P \land R) \leftrightarrow (Q \land R)$ given that $P \leftrightarrow Q$.

7. Idempotence of Conjunction

The proof demonstrates that $P \land P \leftrightarrow P$.

8. Commutativity of Disjunction

This proof establishes that $P \lor Q \leftrightarrow Q \lor P$.

9. De Morgan's Law for Disjunction

The proof shows that $\neg (P \lor Q) \leftrightarrow (\neg P \land \neg Q)$.

10. Double Negation

This proof demonstrates that $\neg (\neg P) \leftrightarrow P$.

11. Negation of an Implication

The proof shows that $\neg (P \to Q) \leftrightarrow (P \land \neg Q)$.

12. Universal Quantifier and Implication

The proof demonstrates that if $\forall x, (P x \to Q x)$ and $\forall x, P x$, then $\forall x, Q x$.

13. Equivalence with Existential Quantifier

The proof establishes that $(\exists x, P x) \leftrightarrow (\exists x, Q x)$ given that $\forall x, (P x \leftrightarrow Q x)$.

14. Swapping Existential Quantifiers

The proof shows that $(\exists x y, P x y) \leftrightarrow (\exists y x, P x y)$.

15. Swapping Universal Quantifiers

This proof demonstrates that $(\forall x y, P x y) \leftrightarrow (\forall y x, P x y)$.

16. Existential Quantifier and Conjunction

The proof shows that $(\exists x, P x) \land Q \leftrightarrow \exists x, (P x \land Q)$.

17. Negation of a Universal Quantifier

The proof establishes that $\neg (\forall x, P x) \leftrightarrow \exists x, \neg P x$.

logic-lean4's People

Contributors

fpiedrah 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.