Skip to content

Instantly share code, notes, and snippets.

View domandlj's full-sized avatar
🧉

Juan Domandl domandlj

🧉
View GitHub Profile
module FilterProof where
open import Data.List hiding (filter; concat)
open import Data.Bool
import Relation.Binary.PropositionalEquality as Eq
open Eq using (_≡_; refl; trans; sym; cong; cong-app; subst)
open Eq.≡-Reasoning using (begin_; _≡⟨⟩_; step-≡; _∎)
private variable
A : Set
B : Set
@domandlj
domandlj / Lem.agda
Created June 19, 2023 16:51
Law of excluded middle and decision procedures.
module LEM where
open import Data.Nat
open import Data.Bool
open import Relation.Nullary using (¬_)
open import Data.Sum using (inj₁; inj₂) renaming (_⊎_ to _∨_)
open import Relation.Nullary using (Dec; yes; no)
-- A predicate about if nat is even.
data Even : Set where