lean4-htt/library/Init/System/Platform.lean
Leonardo de Moura c3e9ac73e2 refactor: default ==> arbitrary
Make sure it is opaque, and avoid `irreducible`
2019-11-05 14:42:42 -08:00

26 lines
641 B
Text

/-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.Nat.Basic
namespace System
namespace Platform
@[extern "lean_system_platform_nbits"]
constant getNumBits : Unit → Nat := arbitrary _
@[extern "lean_system_platform_windows"]
constant getIsWindows : Unit → Bool := arbitrary _
@[extern "lean_system_platform_osx"]
constant getIsOSX : Unit → Bool := arbitrary _
def numBits : Nat := getNumBits ()
def isWindows : Bool := getIsWindows ()
def isOSX : Bool := getIsOSX ()
end Platform
end System