Skip to content

Instantly share code, notes, and snippets.

@louisswarren
Created September 28, 2018 19:07
Show Gist options
  • Save louisswarren/a122ef4200137e931173480cc6738231 to your computer and use it in GitHub Desktop.
Save louisswarren/a122ef4200137e931173480cc6738231 to your computer and use it in GitHub Desktop.
Axiom of choice in Agda
open import Agda.Builtin.Sigma
ac : {X Y : Set} → (ρ : X → Y → Set) → (∀ x → Σ Y (ρ x)) → Σ (X → Y) (λ φ → ∀ x → ρ x (φ x))
fst (ac ρ rel) x = fst (rel x)
snd (ac ρ rel) x = snd (rel x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment