~/bend-docscommunity

PROOF.bend checks

raw source on the hub · import 0x0e024c0379406f469e12da1d8267c06e/PROOF.bend as PROOF

Formal Proofs for the WhiteMagic & Mandala Governance Laws in Bend 2. Run: BEND_NO_TELEMETRY=1 bend PROOF.bend

4 imports
import Base
import ./main.bend as WM
import ./SPEC.bend as Spec
import ./LAWS.bend as Laws

Definitions

def and_implies_left source · line 9 · raw

@a:Bool -> @b:Bool -> {0x0e024c0379406f469e12da1d8267c06e/SPEC.implies(Bool.and(a, b), a) == True{} : Bool}

def and_idem source · line 20 · raw

@b:Bool -> {Bool.and(b, b) == b : Bool}

def not_not source · line 66 · raw

@b:Bool -> {0x0e024c0379406f469e12da1d8267c06e/main.flip_line(0x0e024c0379406f469e12da1d8267c06e/main.flip_line(b)) == b : Bool}

def or_idem source · line 84 · raw

@a:Bool -> @b:Bool -> {Bool.or(a, Bool.or(a, b)) == Bool.or(a, b) : Bool}

def or_comm source · line 102 · raw

@a:Bool -> @b:Bool -> {Bool.or(a, b) == Bool.or(b, a) : Bool}