跳到正文

个人记录

离散数学基础

KellyFrog约 34 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2026年3月16日
篇幅
约 34 分钟

版本

  1. v2当前
  2. v1

Set Theory & Logic

Naive Set Theory

The cardinality of a (finite and infinite) set SS is written as ∣S∣|S|.

Definition. Given 2 sets SS and TT, the comparison of cardinalities of sets are defined as follow:

  • ∣S∣≤∣T∣|S|\le |T| iff there exists an injection f:S↪Tf:S\hookrightarrow T
  • ∣S∣=∣T∣|S|=|T| iff there exists an bijection f:S→Tf:S\to T
  • ∣S∣<∣T∣|S|<|T| iff ∣S∣≤∣T∣|S|\le |T| and ∣S∣≠∣T∣|S|\neq |T| (that is, does not exists a bijection from SS to TT)

Property. Given a set SS, ∣S∣<∣2S∣|S|<|2^S| holds where ∣2S∣|2^S| is defined as {f:S→{0,1}}\{f:S\to\{0,1\}\}.

Obviously S↪2SS\hookrightarrow 2^S, s↦δss\mapsto\delta_s gives a injection.

If there exists a bijection, then there exists a surjection f:S↠2Sf:S\twoheadrightarrow 2^S as bijections are surjections.

Consider the projection g:S→{0,1}g:S\to\{0,1\} mapping s↦1−f(s)(s)s\mapsto 1-f(s)(s), then gg differs from any f(s)f(s) and lands in 2S2^S. Therefore there does not exist such bijection. That is, ∣S∣<∣2S∣|S|<|2^S| holds.

Theorem. Given 2 sets SS and TT that holds both ∣S∣≤∣T∣|S|\le |T| and ∣T∣≤∣S∣|T|\le |S|, ∣S∣=∣T∣|S|=|T| holds.

Consider injections as edges, then for each s∈Ss\in S and t∈Tt\in T, the out degree of each node is exactly 1 while the in degree is at most 1.

Consider all paths of the graph. There are 2 types of paths:

  • Those with a starting point. We pick the edges with the same direction as the first edge.
  • Those without a starting point. We pick all edges from SS to TT.

Each node is paired exactly once, hence there exists a bijection.

Here are some examples:

  • ∣2N∣=∣R∣|2^\N|=|\R|
  • ∣N∣=∣N2∣=∣Q∣|\N|=|\N^2|=|\mathbb Q|
  • ∣RN∣=∣R∣|\R^\N|=|\R|

Theorem (Continuum Hypothesis). The following statement is independent from ZFC:

  • There exists a set SS holding ∣N∣<∣S∣<∣R∣|\N|<|S|<|\R|.

There are some non-trival proporties of cardinities over infinite sets. By acknowledging the Axiom of Choise (AC), the following statements all holds.

Definition: A set SS is called Dedekind-finite iff all of its subsets T⊊ST\subsetneq S have cardinality strictly smaller than SS (that is, ∣T∣<∣S∣|T|<|S|).

Poposition. A non-empty set is Dedekind-finite iff it is finite.

Poposition. For 2 arbitary sets SS and TT, either ∣S∣≤∣T∣|S|\le |T| or ∣T∣≤∣S∣|T|\le |S| holds.

Poposition. For an infinite set SS, ∣S∣=∣S∣×∣S∣|S|=|S|\times |S|.

Many of the statments above are equivlant to the Well-Ordering Theorem, which is equivlant to the Axiom of Choise.

Theorem (Well-Ordering Theorem): Every set SS can be well-ordered. That is, exists a well-order (binary relation) ≤\le over SS such that the following holds:

  • a≤aa\le a
  • a≤ba\le b, b≤cb\le c   ⟹  \implies a≤ca\le c
  • a≤ba\le b, b≤ab\le a   ⟹  \implies a=ba=b
  • either a≤ba\le b or b≤ab\le a holds
  • for all non-empty set T⊆ST\subseteq S, there exists a∈Sa\in S such that ∀b∈S\forall b\in S, a≤ba\le b

Well-order is kind of like the order of natural numbers. A well-order over R\R cannot be constructed without using the Axiom of Choise.

Proposition Logic (谓词逻辑)

Sementics

Proposition ≈\approx Sentence ≈\approx Statement.

Alphabets in proposition logic:

  • Propositions: P,Q,P1,P2,…P,Q,P_1,P_2,\ldots
  • Connectivities: →\rightarrow (implies), ∧\land (and), ∨\lor (or), ↔\leftrightarrow (iff), ¬\lnot (not), ⊥\perp (false)
  • Auxiliaries: ( and ) (brackets)
  • Σ∗\Sigma^*: the set of all finite proposition sentence.
  • PROP ⊆Σ∗\subseteq\Sigma^*: the set of all valide sentences defined recursively as follow:
    • Any atomic propositions Pi,⊥∈P_i, \perp\in PROP
    • Valied sentences connected by connectivities, like (ψ∨φ)(\psi\lor \varphi), ¬φ\lnot \varphi, (φ→ψ)∈(\varphi\rightarrow\psi)\in PROP, where φ,ψ∈\varphi, \psi\in PROP

We can define some kind of “isomorphism” F:F: PROP →Ω\to\Omega over PROP by giving its value on atomic propositions, and on operations as PROP can be written as a infix notation (中缀表达) by looking at brackets.

Now we can define an evaluation as a “isomorphism” v:v: PROP →{0,1}\to\{0,1\} over PROP:

  • v((φ∧ψ))=min⁡{v(φ),v(ψ)}v((\varphi\land\psi))=\min\{v(\varphi), v(\psi)\}
  • v((φ∨ψ))=max⁡{v(φ),v(ψ)}v((\varphi\lor\psi))=\max\{v(\varphi), v(\psi)\}
  • v((φ→ψ))=1−v(φ)(1−v(ψ))v((\varphi\rightarrow\psi))=1-v(\varphi)(1-v(\psi))
  • v((φ←ψ))=1−v(ψ)(1−v(φ))v((\varphi\leftarrow\psi))=1-v(\psi)(1-v(\varphi))
  • v(¬φ)=1−v(φ)v(\lnot\varphi)=1-v(\varphi)
  • v(⊥)=0v(\perp)=0

v(φ)v(\varphi) is also written as [[φ]]v[[\varphi]]_v.

Note that v(Pi)v(P_i) is not limited.

If all evaluations vv satisfying [[ψ]]v=1[[\psi]]_v=1 for all ψ∈Γ\psi\in\Gamma, holds [[φ]]v=1[[\varphi]]_v=1, then we say Γ⊨φ\Gamma\vDash\varphi, that is, in human language, .

If [[φ]]v=1[[\varphi]]_v=1 holds for all vv, (that is, ∅⊨φ\emptyset\vDash\varphi), we call φ\varphi a tautology (重言式).

Many propositions are “equivlant”, which means they has the same behavior over evaluations. φ\varphi and ψ\psi are called equivlant iff φ⊨ψ\varphi\vDash\psi and ψ⊨φ\psi\vDash\varphi.

A trival propoty is that if ⊨φ\vDash\varphi then ⊨φ[ψ/P]\vDash\varphi[\psi/P] (replacing all P with ψ\psi).

Syntax

Natural Deduction

The character ⊢\vdash stands for some deduction, or some logistic steps.

We can reduce ∨\lor to ¬\lnot and ∧\land and reduce ¬φ\lnot\varphi to φ→⊥\varphi\rightarrow\perp

The following are some appearent rules.

  • φ φ→ψψ(→E)\dfrac{\varphi\,\varphi\rightarrow\psi}{\psi}(\to E)
  • [φ]ψφ→ψ(→I)\dfrac{\frac{[\varphi]}{\psi}}{\varphi\rightarrow\psi}(\to I) (here [φ][\varphi] means an assumption)
  • φ∧ψφ(→E)\dfrac{\varphi\land\psi}{\varphi}(\to E)
  • [φ̸]⊥φ(→RAA)\dfrac{\frac{[\not\varphi]}{\perp}}{\varphi}(\to RAA)

Example. Proof ⊢(P→Q)→(¬Q→¬P)\vdash (P\rightarrow Q)\rightarrow(\lnot Q\rightarrow\lnot P).

System K

A different system.

System K is based on “possibility”. The syntax φ1,…,φk  ⟹  ψ1,…,ψm\varphi_1,\ldots,\varphi_k\implies \psi_1,\ldots,\psi_m is the base unit of the system. Semantically it means “if all φi\varphi_i holds, at least one of ψi\psi_i holds”. The axioms are defined based on it. (See textbook).

The system is “better” than natural deduction because it no longer depend on big steps (as natural deduction uses deduction itself as steps), in the contrary, it can store mass information on ψi\psi_i.

Another important proporty is that by applying axioms in the system, the length of the statement only increases. Therefore there exists an algorithm that only use finite time to decide whether a statement holds.

Syntax and Semantic

One can observe the similarity between Γ⊨φ\Gamma\vDash\varphi and Γ⊢φ\Gamma\vdash\varphi.

We care about 2 things between the systems:

  • Soundness. This is to say Γ⊢φ  ⟹  Γ⊨φ\Gamma\vdash\varphi\implies\Gamma\vDash\varphi.
  • Completeness. This is to say Γ⊨φ  ⟹  Γ⊢φ\Gamma\vDash\varphi\implies\Gamma\vdash\varphi.

Soundness is trival while completeness is more interesting.

Lemma. if Γ,ψ⊢φ\Gamma, \psi\vdash\varphi and Γ,¬ψ⊢φ\Gamma,\lnot\psi\vdash\varphi, then Γ⊢φ\Gamma\vdash\varphi.

By applying the lemma recursively over all atomic propositions. We need to prove Γ,(¬)P1,(¬)P2,…,(¬)Pn⊢φ\Gamma, (\lnot)P_1,(\lnot)P_2,\ldots,(\lnot)P_n\vdash\varphi. This gives a unique valuation [[⋅]]v[[\cdot]]_v.

If [[ψ]]v=0[[\psi]]_v=0 holds for some ψ∈Γ\psi\in\Gamma, we would have to prove v⊢¬φv\vdash\lnot\varphi. By doing this, we get ⊥\perp, thus implying φ\varphi.

If [[ψ]]v=1[[\psi]]_v=1 holds for all ψ∈Γ\psi\in\Gamma, we need to prove V⊢φV\vdash\varphi.

It all boils down to “evaluate” a proposition in proposition logic.

Lemma. Let P1,…,PnP_1,\ldots,P_n be atomoc proposition sympols in φ\varphi. Let vv be a evalueation and Pi∈VP_i\in V iff [[Pi]]v=1[[P_i]]_v=1, ¬Pi∈V\lnot P_i\in V iff [[Pi]]v=0[[P_i]]_v=0. Then [[φ]]v=1[[\varphi]]_v=1 iff V⊢φV\vdash\varphi.

We proof this using reduction.

Appearentally the statement holds for all atomic propositions (including ⊥\perp).

φ\varphi can be written as ψ1→ψ2\psi_1\rightarrow\psi_2. By discussing whether ψ1\psi_1 and ψ2\psi_2 holds(according to reductive assumption, they fit there evaluation values), one can say ψ1→ψ2\psi_1\rightarrow\psi_2 syntaxally iff ψ1→ψ2\psi_1\rightarrow\psi_2 semantically.

Note that the length of the proposition ∣ψ1∣,∣ψ2∣<∣φ∣|\psi_1|,|\psi_2|<|\varphi|. The mathmatical induction gives the correctness of the lemma. □\square

As semantics are consistant, Natural Deduction is also consistant.

In the section above we treat ors (∨\lor) as combinations of nots(¬\lnot) and ands(∧\land). We can also introduce axioms involving ∨\lor as if the way we introduce ∧\land.

Intuitionistic Logic and Kripke model

Intuitionistic Logic, or Constructive Logic, is a different system that does not acknowledge RAA (or its equivlent form, such as law of excluded middle).

It is not easy to prove that some propositions cannot be applied without RAA until the emergence of Pripke model.

Definition. A Kripke model is a partially-ordered set (W,≤)(W,\le) paired with a evaluation V:W×V:W\times Atomic Prop. →{0,1}\to\{0,1\} satisfying the following:

  • For w1,w0∈Ww_1,w_0\in W, w1≥w0w_1\ge w_0 holds iff V(w1,Pi)≥V(w0,Pi)V(w_1,P_i)\ge V(w_0,P_i) for all atomic proposition PiP_i.
  • V(w,⊥)=0V(w,\perp)=0

The evaluation of a statement ψ→φ\psi\to\varphi is defined as:

V(w,ψ→φ)={1v(w′,φ)≥v(w′,ψ) ∀w′≥w0oth.V(w,\psi\to\varphi)= \begin{cases} 1 & v(w',\varphi)\ge v(w',\psi)\, \forall w'\ge w\\ 0 & \text{oth.} \end{cases}

Theorem. Intuitionistic logic is consistent with the Kripke model.

Type Theory

胡振江最喜欢的。

Dependent Type Theory 和程序性证明。

Preidcate Logic

Alphabet:

  • Constants
  • Variables: x,y,z,…x,y,z,\ldots or x1,x2,…x_1,x_2,\ldots
  • Functions: f,g,h,…f,g,h,\ldots or f1,f2,…f_1,f_2,\ldots
  • Predicates: ⊥\perp, ==, P,Q,…P,Q,\ldots or P1,P2,…P_1,P_2,\ldots
  • Connectives: ∧,∨,¬,→,↔\land, \lor, \lnot, \rightarrow, \leftrightarrow
  • Auxillaries: ((, )) and ,,
  • Quantifier: ∀,∃\forall, \exists

Definition: TERM is the set that describes all “valid” value sentences generated by the alphabet as the rules following:

  • for any constants cc and variable xx, c,x∈c,x\in TERM
  • if t1,t2,…,tn∈t_1,t_2,\ldots,t_n\in TERM, given any function ff that accepts nn variables, f(t1,t2,…,tn)∈f(t_1,t_2,\ldots,t_n)\in TERM

Definition: FORM is the set that describes all “valid” formulas generated by the following ruls:

  • for any nn terms t1,t2,…t_1,t_2,\ldots and any predicate PP that accepts nn terms, P(t1,…,tn)∈P(t_1,\ldots,t_n)\in FORM
  • for any φ,ψ∈\varphi, \psi\in FORM, ¬φ,φ∘ψ∈\lnot\varphi,\varphi\circ\psi\in FORM, where ∘\circ is a binary connective.
  • for any formula φ∈\varphi\in FORM any variable xx, ∀x φ∈\forall x\, \varphi\in FORM and ∃x φ∈\exists x\,\varphi\in FORM.

Note the subtle difference between the xx in ∀x,x=x\forall x,x=x and x=xx=x where the first one is “bounded” and the second one is “free”.

Note: a variable is free iff there is no quantifier to describe it.

Definition. A structure is a tuple of the following:

  • a universe (a set Ω\Omega),
  • functions (each defined over Ωn→Ω\Omega^n\to\Omega)
  • predicates (a nn-nary relationship P⊂ΩnP\subset\Omega^n)
  • constants (c1,…,cn∈Ωc_1,\ldots,c_n\in\Omega

A structure is written as A=<Ω;f1,…,fn;P1,…,Pm;c1,…,ck>\mathfrak A=\left<\Omega; f_1,\ldots,f_n; P_1,\ldots,P_m; c_1,\ldots,c_k\right>

In real life, one have to “fill in the blanks”, that is, use predicates, functions and variables with “real” meanings.

An example is the structure <R;×R,−1;=,<;{0,1}>\left<\R; \times_{\R}, -1; =,<; \{0,1\}\right> where one can do multiplications and -1, use 0 and 1 as constants.

Note: we use a overlined symbol to indicate the character in FOR and TERM like x1→x1‾x_1\to \overline{x_1}.

Definition: An evaluation of a structure A\mathfrak A is defined as follow:

  • for t∈t\in TERM:
    • [[c‾]]A=c[[\overline c]]_{\mathfrak A}=c
    • [[x‾]]A=x[[\overline x]]_{\mathfrak A}=x
    • [[f‾(t1,t2)]]=f([[t1]]A,[[t2]]A)[[\overline f(t_1,t_2)]]=f([[t_1]]_{\mathfrak A},[[t_2]]_{\mathfrak A})
  • for φ∈\varphi\in FOR:
    • [[P‾(t1,t2)]]=P([[t1]]A,[[t2]]A)[[\overline P(t_1,t_2)]]=P([[t_1]]_{\mathfrak A},[[t_2]]_{\mathfrak A})
    • [[φ→ψ]]A=max⁡{1−[[φ]]A,[[ψ]]A}[[\varphi\rightarrow\psi]]_{\mathfrak A}=\max\{1-[[\varphi]]_{\mathfrak A}, [[\psi]]_{\mathfrak A}\}
    • … (other connectives)
    • [[∀x φ(x)]]A=min⁡c∈Ω[[φ]]A∣x=c[[\forall x\,\varphi(x)]]_{\mathfrak A}=\min_{c\in\Omega}[[\varphi]]_{\mathfrak A|_{x=c}}
    • [[∃x φ(x)]]A=max⁡c∈Ω[[φ]]A∣x=c[[\exists x\,\varphi(x)]]_{\mathfrak A}=\max_{c\in\Omega}[[\varphi]]_{\mathfrak A|_{x=c}}

Definition. let x1,x2,…,xnx_1,x_2,\ldots,x_n be free variables in φ\varphi, A⊨φ\mathfrak A\vDash\varphi means ∀x1∀x2…∀xn φ\forall x_1\forall x_2\ldots\forall x_n\,\varphi; ⊨φ\vDash\varphi means A⊨φ\mathfrak A\vDash\varphi holds for all A\mathfrak A with the same type; Γ⊨φ\Gamma\vDash\varphi if A⊨Γ  ⟹  A⊨φ\mathfrak A\vDash\Gamma\implies\mathfrak A\vDash\varphi for all A\mathfrak A.

Natural Deduction over Predicate Logic

  • Dφ(x)∀xφ(x)\frac{\frac D{\varphi(x)}}{\forall x\varphi(x)} (∀I\forall I)
  • ∀xφ(x)φ(t)\frac{\forall x\varphi(x)}{\varphi(t)} (∀E\forall E)
  • x=x\frac{}{x=x} (IR1)
  • x=yy=x\frac{x=y}{y=x} (IR2)
  • x=y y=zx=z\frac{x=y\,y=z}{x=z} (IR3)
  • x1=y1 x2=y2 … xn=ynt(x1,…,xn)=t(y1,…,yn)\frac{x_1=y_1\,x_2=y_2\,\ldots\,x_n=y_n}{t(x_1,\ldots,x_n)=t(y_1,\ldots,y_n)} (IR4)

Peano Axioms

  • Functions: ++, ⋅\cdot, SS.
  • Constant: 0

Axioms:

  • ∀x\forall x ¬(S(x))=0\lnot(S(x))=0
  • ∀x∀y\forall x\forall y (S(x)=S(y))→(x=y)(S(x)=S(y))\to (x=y)
  • ∀x\forall x x+0=xx+0=x
  • x+S(y)=S(x+y)x+S(y)=S(x+y)
  • ∀x\forall x x⋅0=xx\cdot 0=x
  • ∀x∀y\forall x\forall y x⋅S(y)=xy+xx\cdot S(y)=xy+x
  • φ(0)∧(∀x\varphi(0)\land(\forall x (φ(x)→φ(S(x)))→∀x(\varphi(x)\to\varphi(S(x)))\to\forall x φ(x)\varphi(x)

Consistency

Given a set of axioms Γ\Gamma (like Peano Axioms). We call Γ\Gamma consistent iff Γ⊬⊥\Gamma\not\vdash\perp.

Theorems TT over Γ\Gamma are defined as all sentences φ\varphi that Γ⊢φ\Gamma\vdash\varphi.

TT is a Henkin theorem if for each sentence ”∃x\exist x φ(x)\varphi(x)”∈T\in T there exists constant symbol cc s.t. φ(c)∈T\varphi(c)\in T.

Let T′⊃TT'\supset T be an extension of TT (here Σ\Sigma is also extended). T′T' is a conservative extension over TT iff T′∩L=TT'\cap L=T (that is, new theorems contain new constants).

In the old system we sometimes cannot introduce a x0x_0 that satisfies ”∃x\exists x φ(x)\varphi(x)”. We can extende this by adding these x0x_0 into the constants’ set.

Formally, let T∗T^* be theorems over language L∗L^* where L∗L^* introduced constants cφc_\varphi for all ”∃x\exists x φ(x)\varphi(x)” ∈T\in T.

We claim T∗T^* is a conservative extension.

This is to say T,∃φ(x)→φ(cφ)⊢ψT,\exists\varphi(x)\to\varphi(c_\varphi)\vdash\psi and ψ∈L\psi\in L, then ψ∈T\psi\in T.

As there is no cφc_\varphi in ψ\psi, we can replace all cφc_\varphi with another variable yy, after which one can say:

  • T⊢(∃φ(x)→φ(cφ))→ψT\vdash (\exists\varphi(x)\to\varphi(c_\varphi))\to\psi
  • T⊢(∃φ(x)→φ(y))→ψT\vdash (\exists\varphi(x)\to\varphi(y))\to\psi
  • T⊢∀y(∃φ(x)→φ(y))→ψT\vdash\forall y(\exists\varphi(x)\to \varphi(y))\to\psi (∀\forall I)
  • T⊢∃y(∃φ(x)→φ(y))T\vdash\exists y(\exists\varphi(x)\to\varphi(y))
  • T⊢(∃xT\vdash(\exists x φ(x)→∃y\varphi(x)\to\exists y φ(y))\varphi(y)) (after some steps)

which appearentally holds.

Back to consistency. If Γ\Gamma is consistent, then there exists a model A\mathfrak A s.t. A⊨Γ\mathfrak A\vDash\Gamma.

Extend TT to TeT_e as above.

This can be given where Ω={\Omega=\{closed term t∈Le}t\in L_e\} (that is, a term that only contains constants and functions) and evaluations are given as [[f(t1,…,tn)]]=f(t1,…,tm)[[f(t_1,\ldots,t_n)]]=f(t_1,\ldots,t_m) and [[P(t1,t2)]]=[P(t1,t2)∈Te][[P(t_1,t_2)]]=[P(t_1,t_2)\in T_e].

This might cause problem when neither Γ⊢φ\Gamma\vdash\varphi nor Γ⊢¬φ\Gamma\vdash\lnot\varphi holds. But in this case adding one of them will not give ⊥\perp.

By applying Zorn’s Lemma or by lining up and examing sentences one at a time, one can get Te∗T^*_e where either φ\varphi or ¬φ\lnot\varphi holds.

There will be more problems with ”=”. We say t1∼t2t_1\sim t_2 iff t1=t2∈Te∗t_1=t_2\in T^*_e, by making Ω′=Ω/∼\Omega'=\Omega/\sim we solve the problem of ”=“s.

We mainly talk about countable sentences. An interesting fact about this is that almost all real numbers cannot be described(as languages are countable).

ZFC set theory

  • Axiom of extensionality(外延公理): ∀x∀y(∀z\forall x\forall y(\forall z z∈x↔z∈y)→x=yz\in x\leftrightarrow z\in y)\to x=y
  • Axiom of schema of specification(分离公理) ∀x,w1,…,wt\forall x,w_1,\ldots,w_t ∃y\exists y ∀z(z∈y↔(z∈x∧φ(z,w1,…,wt)))\forall z(z\in y\leftrightarrow (z\in x\land\varphi(z,w_1,\ldots,w_t))); This gives empty set and intersection of sets.
  • Axiom of pairing(配对公理): ∀x,y\forall x,y ∃z(x∈z∧y∈z)\exists z(x\in z\land y\in z)
  • Axiom of union(并集公理): ∀x∃y∀z,w(z∈x∧w∈z→w∈y)\forall x\exists y\forall z,w(z\in x\land w\in z\to w\in y)
  • Axiom of power set(幂集公理): ∀x∃y∀z(z⊂x→z∈y)\forall x\exists y\forall z(z\subset x\to z\in y) (here x⊂y  ⟺  ∀z(z∈x→z∈y)x\subset y\iff \forall z(z\in x\to z\in y))
  • Axiom of infinity(无穷公理): ∃N\exists N (∅∈N∧(∃y,y∈N→y∪{y}∈N)(\emptyset\in N\land(\exists y,y\in N\to y\cup\{y\}\in N)
  • Axiom schema of replacement(替换公理): ∀A,w1,…,wt(∀x\forall A, w_1,\ldots,w_t(\forall x x∈A→∃!yx\in A\to\exists!y φ(y,x,w1,…,wt))→∃y(∀x\varphi(y,x,w_1,\ldots,w_t))\to\exists y(\forall x (x∈A)→∃y(x\in A)\to\exists y φ(y,x,w1,…,wt)∧y∈B\varphi(y,x,w_1,\ldots,w_t)\land y\in B
  • Axiom of regularity(正则公理): ∀x\forall x (x≠∅→∃y(y∈x∧x∩y=∅))(x\neq\emptyset\to\exists y(y\in x\land x\cap y=\emptyset))
  • Axiom of choise(选择公理): For any set of sets SS, there exists a projection f:S→∪Sf:S\to\cup S where f(a)∈af(a)\in a holds for all a∈Sa\in S

Cartesian product: for all sets S,TS,T there exists a set S×T:={(x,y):x∈S,y∈T}S\times T:=\{(x,y):x\in S,y\in T\} where (x,y):={{x},{x,y}}(x,y):=\{\{x\}, \{x,y\}\}. This is because S×T⊂2S∪TS\times T\subset 2^{S\cup T}.

Given the cartesian product, we can define a relationship R⊂S×TR\subset S\times T where aRb  ⟺  (a,b)∈RaRb\iff (a,b)\in R. A function if defined as a relationship where ∀a\forall a ∃!b\exists !b aRbaRb

However, ZFC is incomplete, meaning some true statements cannot be proved.

Imcomplete theorem

We can encode statements (which are finite strings) into integers as there will only be finite variables in a statement.

Note that ZFC is strong enough to hold natural numbers(or Peano Axioms).

Consider a statement that decides whether a encoded sentence is a TERM

原文