lean4-htt/library/init/unit.lean
2016-09-24 16:38:39 -07:00

19 lines
417 B
Text

/-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.logic
lemma unit_eq (a b : unit) : a = b :=
unit.rec_on a (unit.rec_on b rfl)
lemma unit_eq_unit (a : unit) : a = () :=
unit_eq a ()
instance : subsingleton unit :=
subsingleton.intro unit_eq
instance : inhabited unit :=
⟨()⟩