2014-06-30 18:44:47 +00:00
|
|
|
-- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
|
|
|
|
-- Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
-- Author: Leonardo de Moura
|
2014-10-25 21:57:33 +00:00
|
|
|
import data.unit.decl data.unit.thms logic.decidable logic.inhabited
|
2014-09-03 23:00:38 +00:00
|
|
|
open decidable
|
2014-06-30 02:30:38 +00:00
|
|
|
|
2014-09-04 23:36:06 +00:00
|
|
|
namespace unit
|
2014-10-09 01:41:18 +00:00
|
|
|
protected theorem subsingleton [instance] : subsingleton unit :=
|
|
|
|
subsingleton.intro (λ a b, equal a b)
|
|
|
|
|
2014-10-02 16:00:34 +00:00
|
|
|
protected definition is_inhabited [instance] : inhabited unit :=
|
2014-09-05 05:31:52 +00:00
|
|
|
inhabited.mk ⋆
|
2014-08-20 22:49:44 +00:00
|
|
|
|
2014-09-30 16:02:37 +00:00
|
|
|
protected definition has_decidable_eq [instance] : decidable_eq unit :=
|
2014-09-09 23:07:07 +00:00
|
|
|
take (a b : unit), inl (equal a b)
|
2014-08-20 02:32:44 +00:00
|
|
|
end unit
|