Created
November 7, 2011 05:12
-
-
Save ikedaisuke/1344227 to your computer and use it in GitHub Desktop.
Thierry's proof of the principle of infinite descent (a part) in Agda2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
infiniteDescent : ∀ {a l} -> (A : Set a) -> (R : Rel A l) -> | |
(P : Pred A l) -> Noether A R -> | |
((x : A) -> P x -> ∃ (λ y -> R y x × P y)) -> | |
(z : A) -> ¬ (P z) | |
infiniteDescent A R P noe f | |
= noe (λ w → ¬ P w) g | |
where g : (x : A) → ((y : A) → R y x → ¬ P y) → ¬ P x | |
g x h px with f x px | |
... | (v , k) = h v (proj₁ k) (proj₂ k) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment