Zulip Chat Archive
Stream: new members
Topic: Haskell
edklencl (Dec 09 2024 at 16:03):
it is me again,what is the difference between lean and haskell
Martin Dvořák (Dec 09 2024 at 16:32):
(1) Haskell writes ::
for type and :
for list construction. Lean writes :
for type and ::
for list construction.
(2) Haskell writes =
for declaration and ==
for equality. Lean writes :=
for declaration and =
for Prop
-valued equality.
(3) Lean has dependent types, which Haskell doesn't.
(4) Haskell is for programming. Lean is for programming and theorem proving.
Martin Dvořák (Dec 09 2024 at 16:39):
[this comment is obsolete]
Notification Bot (Dec 09 2024 at 17:15):
This topic was moved here from #mathlib4 > Haskell by Eric Wieser.
Arthur Paulino (Dec 09 2024 at 18:30):
inductive
constructors are namespaced in Lean 4. data
constructors, in Haskell, aren't
In fact, namespacing in general can be considered a new feature wrt Haskell
Last updated: May 02 2025 at 03:31 UTC