2014-08-07 18:36:44 +00:00
|
|
|
-- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
|
2014-07-02 15:36:05 +00:00
|
|
|
-- Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
-- Author: Leonardo de Moura
|
2014-08-01 00:48:51 +00:00
|
|
|
|
|
|
|
import data.bool
|
2014-08-20 02:32:44 +00:00
|
|
|
|
2014-09-03 23:00:38 +00:00
|
|
|
open bool inhabited
|
2014-07-02 15:36:05 +00:00
|
|
|
|
|
|
|
inductive char : Type :=
|
2014-09-05 05:31:52 +00:00
|
|
|
mk : bool → bool → bool → bool → bool → bool → bool → bool → char
|
2014-07-02 15:36:05 +00:00
|
|
|
|
2014-09-05 05:31:52 +00:00
|
|
|
namespace char
|
2014-10-02 16:00:34 +00:00
|
|
|
protected definition is_inhabited [instance] : inhabited char :=
|
2014-09-05 05:31:52 +00:00
|
|
|
inhabited.mk (mk ff ff ff ff ff ff ff ff)
|
|
|
|
end char
|
2014-07-04 21:25:44 +00:00
|
|
|
|
2014-09-05 05:31:52 +00:00
|
|
|
inductive string : Type :=
|
|
|
|
empty : string,
|
|
|
|
str : char → string → string
|
2014-07-04 21:25:44 +00:00
|
|
|
|
2014-09-05 05:31:52 +00:00
|
|
|
namespace string
|
2014-10-02 16:00:34 +00:00
|
|
|
protected definition is_inhabited [instance] : inhabited string :=
|
2014-09-05 05:31:52 +00:00
|
|
|
inhabited.mk empty
|
|
|
|
end string
|