Metamath Proof Explorer


Axiom ax-rep

Description: Axiom of Replacement. An axiom scheme of Zermelo-Fraenkel set theory. Axiom 5 of TakeutiZaring p. 19. It tells us that the image of any set under a function is also a set (see the variant funimaex ). Although ph may be any wff whatsoever, this axiom is useful (i.e. its antecedent is satisfied) when we are given some function and ph encodes the predicate "the value of the function at w is z ". Thus, ph will ordinarily have free variables w and z - think of it informally as ph ( w , z ) . We prefix ph with the quantifier A. y in order to "protect" the axiom from any ph containing y , thus allowing us to eliminate any restrictions on ph . Another common variant is derived as axrep5 , where you can find some further remarks. A slightly more compact version is shown as axrep2 . A quite different variant is zfrep6 , which if used in place of ax-rep would also require that the Separation Scheme axsep be stated as a separate axiom.

There is a very strong generalization of Replacement that doesn't demand function-like behavior of ph . Two versions of this generalization are called the Collection Principle cp and the Boundedness Axiom bnd .

Many developments of set theory distinguish the uses of Replacement from uses of the weaker axioms of Separation axsep , Null Set axnul , and Pairing axpr , all of which we derive from Replacement. In order to make it easier to identify the uses of those redundant axioms, we restate them as Axioms ax-sep , ax-nul , and ax-pr below the theorems that prove them. (Contributed by NM, 23-Dec-1993)

Ref Expression
Assertion ax-rep ( ∀ 𝑤𝑦𝑧 ( ∀ 𝑦 𝜑𝑧 = 𝑦 ) → ∃ 𝑦𝑧 ( 𝑧𝑦 ↔ ∃ 𝑤 ( 𝑤𝑥 ∧ ∀ 𝑦 𝜑 ) ) )

Detailed syntax breakdown

Step Hyp Ref Expression
0 vw 𝑤
1 vy 𝑦
2 vz 𝑧
3 wph 𝜑
4 3 1 wal 𝑦 𝜑
5 2 cv 𝑧
6 1 cv 𝑦
7 5 6 wceq 𝑧 = 𝑦
8 4 7 wi ( ∀ 𝑦 𝜑𝑧 = 𝑦 )
9 8 2 wal 𝑧 ( ∀ 𝑦 𝜑𝑧 = 𝑦 )
10 9 1 wex 𝑦𝑧 ( ∀ 𝑦 𝜑𝑧 = 𝑦 )
11 10 0 wal 𝑤𝑦𝑧 ( ∀ 𝑦 𝜑𝑧 = 𝑦 )
12 5 6 wcel 𝑧𝑦
13 0 cv 𝑤
14 vx 𝑥
15 14 cv 𝑥
16 13 15 wcel 𝑤𝑥
17 16 4 wa ( 𝑤𝑥 ∧ ∀ 𝑦 𝜑 )
18 17 0 wex 𝑤 ( 𝑤𝑥 ∧ ∀ 𝑦 𝜑 )
19 12 18 wb ( 𝑧𝑦 ↔ ∃ 𝑤 ( 𝑤𝑥 ∧ ∀ 𝑦 𝜑 ) )
20 19 2 wal 𝑧 ( 𝑧𝑦 ↔ ∃ 𝑤 ( 𝑤𝑥 ∧ ∀ 𝑦 𝜑 ) )
21 20 1 wex 𝑦𝑧 ( 𝑧𝑦 ↔ ∃ 𝑤 ( 𝑤𝑥 ∧ ∀ 𝑦 𝜑 ) )
22 11 21 wi ( ∀ 𝑤𝑦𝑧 ( ∀ 𝑦 𝜑𝑧 = 𝑦 ) → ∃ 𝑦𝑧 ( 𝑧𝑦 ↔ ∃ 𝑤 ( 𝑤𝑥 ∧ ∀ 𝑦 𝜑 ) ) )