1a67e69678
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
24 lines
805 B
Text
24 lines
805 B
Text
----------------------------------------------------------------------------------------------------
|
|
-- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
|
|
-- Released under Apache 2.0 license as described in the file LICENSE.
|
|
-- Author: Leonardo de Moura
|
|
----------------------------------------------------------------------------------------------------
|
|
|
|
import data.bool
|
|
using bool
|
|
|
|
namespace string
|
|
inductive char : Type :=
|
|
| ascii : bool → bool → bool → bool → bool → bool → bool → bool → char
|
|
|
|
inductive string : Type :=
|
|
| empty : string
|
|
| str : char → string → string
|
|
|
|
theorem inhabited_char [instance] : inhabited char :=
|
|
inhabited_intro (ascii ff ff ff ff ff ff ff ff)
|
|
|
|
theorem inhabited_string [instance] : inhabited string :=
|
|
inhabited_intro empty
|
|
|
|
end string
|