2014-07-02 15:36:05 +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-22 16:49:54 +00:00
|
|
|
import bool
|
|
|
|
using bool
|
2014-07-02 15:36:05 +00:00
|
|
|
|
|
|
|
namespace string
|
|
|
|
inductive char : Type :=
|
2014-07-22 16:49:54 +00:00
|
|
|
| ascii : bool → bool → bool → bool → bool → bool → bool → bool → char
|
2014-07-02 15:36:05 +00:00
|
|
|
|
|
|
|
inductive string : Type :=
|
|
|
|
| empty : string
|
|
|
|
| str : char → string → string
|
2014-07-04 21:25:44 +00:00
|
|
|
|
|
|
|
theorem inhabited_char [instance] : inhabited char
|
|
|
|
:= inhabited_intro (ascii b0 b0 b0 b0 b0 b0 b0 b0)
|
|
|
|
|
|
|
|
theorem inhabited_string [instance] : inhabited string
|
|
|
|
:= inhabited_intro empty
|
2014-07-02 15:36:05 +00:00
|
|
|
end
|