Skip to content

Instantly share code, notes, and snippets.

@m-yac
m-yac / color_formula.md
Last active August 2, 2021 03:30
Formula for converting from a color name
@m-yac
m-yac / Hurkens.sawcore
Created February 23, 2021 22:23
Hurken's paradox in SAWCore
-- Adapted from:
-- - https://github.com/agda/agda/blob/4a93aa6ffbcc55df5e4f65ecb4dc1d6215501a79/test/Fail/Issue3327.agda
-- - https://github.com/dhall-lang/dhall-lang/issues/250
module Hurkens where
import Prelude;
-- This should not be allowed
data Sort : sort 0 where {
{-# OPTIONS --cubical --safe #-}
module Dedekind where
open import Cubical.Foundations.Everything
open import Cubical.Data.Sigma
open import Cubical.Data.Nat as Nat
open import Cubical.Data.Bool as Bool
elimBool : ∀ {ℓ} {P : Bool → Type ℓ} (a0 : P true) (a1 : P false)