Last active
August 29, 2015 08:00
-
-
Save mietek/630ea60b0f2dedaeec2e to your computer and use it in GitHub Desktop.
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
{- | |
A Hilbert presentation of minimal implication logic (⊃Hm), or simply-typed λ-calculus (λ⊃). | |
Basic proof theory | |
A.S. Troelstra, H. Schwichtenberg, 2000 | |
-} | |
module IHm | |
infixr 5 >> | |
syntax "!-" [a] = Theorem a | |
data Formula : Type where | |
(>>) : Formula -> Formula -> Formula | |
data Theorem : Formula -> Type where | |
MP : Theorem (a >> b) -> Theorem a | |
-> Theorem b | |
K : Theorem (a >> b >> a) | |
S : Theorem ((a >> b >> c) >> (a >> b) >> a >> c) | |
I : !- a >> a | |
I {a} = MP (MP (S {b = a >> a}) | |
K) | |
K | |
I' : !- a >> a | |
I' = MP (MP f K) | |
K | |
where | |
f : Theorem ((a >> (a >> a) >> a) >> (a >> a >> a) >> a >> a) | |
f = S |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment