Skip to content

Binary for Windows

Compare
Choose a tag to compare
@KonjacSource KonjacSource released this 09 Sep 08:18
· 36 commits to main since this release

Add keywords unmatchable, axiom.

data Bool : U where 
| true : ... 
| false : ...

unmatchable data Interval : U where 
| i0 : ... 
| i1 : ...

axiom def max (i j : Interval) : Interval 
| i0 i0 = i0
| _  _  = i1

#eval max i0 i1

-- This is ok
def reflTrue (i : Interval) : Bool 
| i = true

-- -- This is an error
-- def trueToFalse (i : Interval) : Bool
-- | i0 = true 
-- | i1 = false

higher inductive S1 : U where 
| base : ... 
| loop : (i : Interval) -> ... 
    when 
    | i0 = base 
    | i1 = base