Парадокс Рассела: реализация на Агде
May. 26th, 2013 02:29 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
К вопросу о заселении ⊥ при включенном type-in-type. Делается прямой реализацией парадокса Рассела
http://www.reddit.com/r/compsci/comments/1a7g6q/a_question_on_set_classes_and_dependent_types/
http://article.gmane.org/gmane.comp.lang.agda/5002
http://hpaste.org/84029
{-# OPTIONS --type-in-type --without-K #-} module russell where open import Data.Product open import Relation.Binary.PropositionalEquality open import Relation.Nullary open import Data.Empty -- a model of set theory data U : Set where set : (I : Set) → (I → U) → U -- a set is regular if it doesn't contain itself regular : U → Set regular (set I f) = (i : I) → ¬ (f i ≡ set I f) -- Russell's set: the set of all regular sets R : U R = set (Σ U regular) proj₁ -- R is not regular R-nonreg : ¬ (regular R) R-nonreg reg = reg (R , reg) refl -- R is regular R-reg : regular R R-reg (x , reg) p = subst regular p reg (x , reg) p -- contradiction absurd : ⊥ absurd = R-nonreg R-regВзято отсюда:
http://www.reddit.com/r/compsci/comments/1a7g6q/a_question_on_set_classes_and_dependent_types/
http://article.gmane.org/gmane.comp.lang.agda/5002
http://hpaste.org/84029
no subject
Date: 2013-05-25 10:20 pm (UTC)https://gist.github.com/copumpkin/2631136
no subject
Date: 2013-05-25 10:26 pm (UTC)no subject
Date: 2013-05-27 06:23 pm (UTC)no subject
Date: 2013-05-27 08:18 pm (UTC)no subject
Date: 2013-05-27 10:42 pm (UTC)прикольно, да. invert - это типа axiom of choice applied.
no subject
Date: 2013-05-26 04:35 am (UTC)Элементарные топосы, например.
no subject
Date: 2013-05-26 06:17 am (UTC)no subject
Date: 2013-05-26 06:20 am (UTC)no subject
Date: 2013-05-26 06:23 am (UTC)no subject
Date: 2013-05-28 09:09 pm (UTC)no subject
Date: 2013-05-29 04:43 am (UTC)Можно посмотреть
http://ncatlab.org/nlab/show/fully+formal+ETCS
и пофтыкать в power object'ы.