/* * Copyright 2020 Magnus Madsen * * Use of this source code is governed by the Apache 2.0 license * that can be found in the LICENSE.md file. */instanceLowerBound[Bool] {pubdefminValue(): Bool = false}instanceUpperBound[Bool] {pubdefmaxValue(): Bool = true}pubmod Bool {////// Returns `true` if `x` implies `y` logically holds.///pubdef==>(x: Bool, y: Bool): Bool = notxory////// Returns true if `x` implies `y` and vise versa.///pubdef<==>(x: Bool, y: Bool): Bool = x==y////// Calls `f` if `cond` is true.///pubdefrunIf(f: Unit -> Unit \ ef, cond: Bool): Unit \ ef = if (cond) { f() }}