curry-howard Questions
3
Solved
When I asked this question, one of the answers, now deleted, was suggesting that the type Either corresponds to XOR, rather than OR, in the Curry-Howard correspondence, because it cannot be Left an...
Supervise asked 16/10, 2020 at 18:23
1
Solved
At the end of Category Theory 8.2, Bartosz Milewski shows some examples of the correspondence between logic, category theory, and type systems.
I was wandering what corresponds to the logical xor o...
Thecla asked 15/10, 2020 at 21:44
1
Solved
Curry's paradox (named after the same person as the present programming language) is a construction possible in a faulty logic that allows one to prove anything.
I know nothing about logic, but ho...
Wallace asked 12/10, 2019 at 8:18
2
Solved
How do I show that anything follows from a value of a type with no constructors in Scala? I would like to do a pattern match on the value and have Scala tell me that no patterns can match, but I am...
Malvia asked 22/10, 2018 at 21:15
1
Solved
In wikipedia, the bottom type is simply defined as "the type that has no values". However, if b is this empty type, then the product type (b,b) has no values either, but seems different from b. I a...
Cobia asked 6/3, 2017 at 10:50
6
Solved
The absurd function in Data.Void has the following signature, where Void is the logically uninhabited type exported by that package:
-- | Since 'Void' values logically don't exist, this witnesses ...
Telegraphy asked 3/1, 2013 at 1:25
1
Solved
Edit: By Void, I mean Haskell's Void type, i.e. empty type that cannot have values but undefined.
There is an ongoing discussion on Swift Evolution whether to replace noreturn function attribute w...
Villainy asked 24/6, 2016 at 13:13
3
If I understand Curry-Howard's isomorphism correctly, every dependent type correspond to a theorem, for which a program implementing it is a proof. That means that any mathematical problem, such as...
Chroma asked 20/4, 2016 at 17:26
3
Solved
Which is the Curry-Howard correspondent of double negation of a; (a -> r) -> r or (a -> ⊥) -> ⊥, or both?
Both types can be encoded in Haskell as follows, where ⊥ is encoded as forall...
Brag asked 3/5, 2015 at 0:14
3
Solved
I am trying to understand "Löb and möb: strange loops in Haskell", but right now the meaning is sleaping away from me, I just don't see why it could be useful. Just to recall function loeb is defin...
Brimstone asked 16/3, 2014 at 17:7
6
Solved
I've been studying dependent types and I understand the following:
Why universal quantification is represented as a dependent function type. ∀(x:A).B(x) means “for all x of type A there is ...
Dichromatism asked 24/10, 2014 at 6:2
1
Solved
I want to prove or falsify forall (P Q : Prop), (P -> Q) -> (Q -> P) -> P = Q. in Coq. Here is my approach.
Inductive True2 : Prop :=
| One : True2
| Two : True2.
Lemma True_has_one...
Guarneri asked 26/10, 2014 at 10:39
1
Intuitionistic logic, being constructive, is the basis for type systems in functional programming. The classical logic is not constructive, in particular the law of excluded middle A ∨ ¬A (or its e...
Tyndareus asked 12/7, 2014 at 9:39
4
Solved
Set, similarly to [] has a perfectly defined monadic operations. The problem is that they require that the values satisfy Ord constraint, and so it's impossible to define return and >>= witho...
Hadley asked 29/8, 2012 at 17:49
10
Solved
I came upon the Curry-Howard Isomorphism relatively late in my programming life, and perhaps this contributes to my being utterly fascinated by it. It implies that for every programming concept the...
Hooky asked 3/6, 2010 at 19:31
2
Solved
So, in my ongoing attempts to half-understand Curry-Howard through small Haskell exercises, I've gotten stuck at this point:
{-# LANGUAGE GADTs #-}
import Data.Void
type Not a = a -> Void
--...
Corney asked 11/1, 2013 at 6:58
1
Solved
So in order to help me understand some of the more advanced Haskell/GHC features and concepts, I decided to take a working GADT-based implementation of dynamically typed data and extend it to cover...
Chesna asked 11/6, 2012 at 18:9
3
Solved
I've searched around the Internet, and I can't find any explanations of CHI which don't rapidly degenerate into a lecture on logic theory which is drastically over my head. (These people talk as if...
Roof asked 18/4, 2012 at 15:24
2
Solved
Could you please explain me what is the basic connection between the fundamentals of logical programming and the phenomenon of syntactic similarity between type systems and conventional logic?
Asa asked 13/5, 2010 at 18:38
1
© 2022 - 2024 — McMap. All rights reserved.