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-07-19 19:09:47 +00:00
|
|
|
import logic decidable
|
|
|
|
using decidable
|
2014-06-30 02:30:38 +00:00
|
|
|
|
2014-07-19 19:09:47 +00:00
|
|
|
namespace unit
|
2014-06-30 02:30:38 +00:00
|
|
|
inductive unit : Type :=
|
|
|
|
| tt : unit
|
|
|
|
|
2014-07-19 19:09:47 +00:00
|
|
|
theorem unit_eq (a b : unit) : a = b
|
|
|
|
:= unit_rec (unit_rec (refl tt) b) a
|
|
|
|
|
2014-07-04 21:25:44 +00:00
|
|
|
theorem inhabited_unit [instance] : inhabited unit
|
2014-06-30 02:30:38 +00:00
|
|
|
:= inhabited_intro tt
|
2014-07-19 19:09:47 +00:00
|
|
|
|
|
|
|
using decidable
|
|
|
|
theorem decidable_eq [instance] (a b : unit) : decidable (a = b)
|
|
|
|
:= inl (unit_eq a b)
|
|
|
|
end
|