Code Monkey home page Code Monkey logo

zfc's Introduction

                             Contribution Rocq/ZF
                             ====================

This directory contains:

        - An encoding of Zermelo-Fraenkel Set Theory in Coq

Author & Date:  Benjamin WERNER
                INRIA-Rocquencourt
                October 1996


Installation procedure:
-----------------------

  To get this contribution compiled, type

    make 

  or

    make opt

Which will compile the proof file.


Description:
------------

  The encoding of Zermelo-Fraenkel Set Theory is largely inspired by
Peter Aczel's work dating back to the eighties. A type Ens is defined,
which represents sets. Two predicates IN and EQ stand for membership
and extensional equality between sets. The axioms of ZFC are then
proved and thus appear as theorems in the development.

  A main motivation for this work is the comparison of the respective
expressive power of Coq and ZFC.

  A non-computational type-theoretical axiom of choice is necessary to
prove the replacement schemata and the set-theoretical AC.

  The main difference between this work and Peter Aczel's, is that
propositions are defined on the impredicative level Prop. Since the
definition of Ens is, however, still unchanged, I also added most of
Peter Aczel's definition. The main advantage of Aczel's approach, is a
more constructive vision of the existential quantifier (which gives
the set-theoretical axiom of choice for free).


Further information on this contribution:
-----------------------------------------

See "The encoding of Zermelo-Fraenkel Set Theory in Coq", in the Proceedings
of TACS'97.


zfc's People

Contributors

herbelin avatar letouzey avatar palmskog avatar ppedrot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

zfc's Issues

Add classes as records

Due to uncertainty in using the raw (Ens->Prop) expression as a type of classes, I propose the next definition of the class with built-in soundness proof:

(* 'class' is the type of well-defined classes. *)
Record class := {
 prty :> Ens->Prop;
 sound : forall (a b : Ens), EQ a b -> (prty a <-> prty b);
}.

Definition EQC (A B:class) := forall z:Ens, A z <-> B z.

(* set to class *)
Definition stoc : Ens -> class.
Proof.
intro x.
unshelve eapply Build_class.
+ intro y. exact (IN y x).
+ intros a b aeqb. split.
  - apply IN_sound_left. exact aeqb.
  - apply IN_sound_left. apply EQ_sym. exact aeqb.
Defined.

Coercion stoc : Ens >-> class.

Updating Make

According to

https://stackoverflow.com/questions/53114522/development-of-the-coq-library-add-loadpath-solution-is-not-good-enough

it is good practice to add "From ZFC " to every "Require Import", rename filename "Make" to "_CoqProject" everywhere, and deleting the first line "-R . ZFC".

By the way, usual name is "zfc", not "ZFC".
I think we may
a)change the name of github repository to "ZFC" (which is more reasonable variant, but something may go wrong, for example for my fork. Or may not.)
b)or change everywhere name to "zfc". "From zfc Require ...". (not very good solution, (a) is better).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.