refactor(library/data/string): put is_inhabited theorems on the toplevel

This commit is contained in:
Leonardo de Moura 2015-01-10 14:07:20 -08:00
parent f053330755
commit 08a7997a97

View file

@ -5,16 +5,11 @@ Released under Apache 2.0 license as described in the file LICENSE.
Module: data.string
Author: Leonardo de Moura
-/
import data.bool
open bool inhabited
open bool
namespace char
protected definition is_inhabited [instance] : inhabited char :=
inhabited.mk (mk ff ff ff ff ff ff ff ff)
end char
protected definition char.is_inhabited [instance] : inhabited char :=
inhabited.mk (char.mk ff ff ff ff ff ff ff ff)
namespace string
protected definition is_inhabited [instance] : inhabited string :=
inhabited.mk empty
end string
protected definition string.is_inhabited [instance] : inhabited string :=
inhabited.mk string.empty