-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
185 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- Quentin Garchery | ||
- Quentin Buzet | ||
- Frédéric Blanqui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/). | ||
|
||
## 1.1.0 (2024-06-21) | ||
|
||
- Add classical logic | ||
- Rename top into ⊤ᵢ | ||
- Declare more arguments of ∃ᵢ and ∃ₑ implicit | ||
|
||
## 1.0.0 (2023-10-19) | ||
|
||
- Add integers (Quentin Garchery) | ||
|
||
## 0.0.0 (2022-01-27) | ||
|
||
- Add natural numbers and lists (Quentin Buzet) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// classical logic | ||
|
||
require open Stdlib.Set Stdlib.Prop Stdlib.FOL; | ||
|
||
symbol em p : π (p ∨ ¬ p); // excluded middle | ||
|
||
opaque symbol ¬¬ₑ p : π (¬ ¬ p) → π p ≔ | ||
begin | ||
assume p nnp; apply ∨ₑ (em p) | ||
{ assume h; refine h } | ||
{ assume np; apply ⊥ₑ; refine nnp np } | ||
end; | ||
|
||
opaque symbol ∨¬ᵢ p q : π (p ⇒ q) → π (¬ p ∨ q) ≔ | ||
begin | ||
assume p q pq; apply ∨ₑ (em p) | ||
{ assume hp; refine ∨ᵢ₂ _; refine pq hp } | ||
{ assume np; refine ∨ᵢ₁ np } | ||
end; | ||
|
||
opaque symbol ∃¬ᵢ a p : π (¬ (∀ p)) → π (`∃ x : τ a, ¬ (p x)) ≔ | ||
begin | ||
assume a p not_all_p; apply ∨ₑ (em (`∃ x, ¬ (p x))) | ||
{ assume h; apply h } | ||
{ assume not_ex_not_p; apply ⊥ₑ; apply not_all_p; | ||
have h: π (`∀ x, ¬ ¬ (p x)) | ||
{ refine ¬∃ (λ x, ¬ (p x)) _; refine not_ex_not_p}; | ||
assume x; apply ¬¬ₑ; refine h x | ||
} | ||
end; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.