Metamath Proof Explorer


Theorem wfisg

Description: Well-Ordered Induction Schema. If a property passes from all elements less than y of a well-ordered class A to y itself (induction hypothesis), then the property holds for all elements of A . (Contributed by Scott Fenton, 11-Feb-2011)

Ref Expression
Hypothesis wfisg.1 ( 𝑦𝐴 → ( ∀ 𝑧 ∈ Pred ( 𝑅 , 𝐴 , 𝑦 ) [ 𝑧 / 𝑦 ] 𝜑𝜑 ) )
Assertion wfisg ( ( 𝑅 We 𝐴𝑅 Se 𝐴 ) → ∀ 𝑦𝐴 𝜑 )

Proof

Step Hyp Ref Expression
1 wfisg.1 ( 𝑦𝐴 → ( ∀ 𝑧 ∈ Pred ( 𝑅 , 𝐴 , 𝑦 ) [ 𝑧 / 𝑦 ] 𝜑𝜑 ) )
2 ssrab2 { 𝑦𝐴𝜑 } ⊆ 𝐴
3 dfss3 ( Pred ( 𝑅 , 𝐴 , 𝑤 ) ⊆ { 𝑦𝐴𝜑 } ↔ ∀ 𝑧 ∈ Pred ( 𝑅 , 𝐴 , 𝑤 ) 𝑧 ∈ { 𝑦𝐴𝜑 } )
4 nfcv 𝑦 𝐴
5 4 elrabsf ( 𝑧 ∈ { 𝑦𝐴𝜑 } ↔ ( 𝑧𝐴[ 𝑧 / 𝑦 ] 𝜑 ) )
6 5 simprbi ( 𝑧 ∈ { 𝑦𝐴𝜑 } → [ 𝑧 / 𝑦 ] 𝜑 )
7 6 ralimi ( ∀ 𝑧 ∈ Pred ( 𝑅 , 𝐴 , 𝑤 ) 𝑧 ∈ { 𝑦𝐴𝜑 } → ∀ 𝑧 ∈ Pred ( 𝑅 , 𝐴 , 𝑤 ) [ 𝑧 / 𝑦 ] 𝜑 )
8 3 7 sylbi ( Pred ( 𝑅 , 𝐴 , 𝑤 ) ⊆ { 𝑦𝐴𝜑 } → ∀ 𝑧 ∈ Pred ( 𝑅 , 𝐴 , 𝑤 ) [ 𝑧 / 𝑦 ] 𝜑 )
9 nfv 𝑦 𝑤𝐴
10 nfcv 𝑦 Pred ( 𝑅 , 𝐴 , 𝑤 )
11 nfsbc1v 𝑦 [ 𝑧 / 𝑦 ] 𝜑
12 10 11 nfralw 𝑦𝑧 ∈ Pred ( 𝑅 , 𝐴 , 𝑤 ) [ 𝑧 / 𝑦 ] 𝜑
13 nfsbc1v 𝑦 [ 𝑤 / 𝑦 ] 𝜑
14 12 13 nfim 𝑦 ( ∀ 𝑧 ∈ Pred ( 𝑅 , 𝐴 , 𝑤 ) [ 𝑧 / 𝑦 ] 𝜑[ 𝑤 / 𝑦 ] 𝜑 )
15 9 14 nfim 𝑦 ( 𝑤𝐴 → ( ∀ 𝑧 ∈ Pred ( 𝑅 , 𝐴 , 𝑤 ) [ 𝑧 / 𝑦 ] 𝜑[ 𝑤 / 𝑦 ] 𝜑 ) )
16 eleq1w ( 𝑦 = 𝑤 → ( 𝑦𝐴𝑤𝐴 ) )
17 predeq3 ( 𝑦 = 𝑤 → Pred ( 𝑅 , 𝐴 , 𝑦 ) = Pred ( 𝑅 , 𝐴 , 𝑤 ) )
18 17 raleqdv ( 𝑦 = 𝑤 → ( ∀ 𝑧 ∈ Pred ( 𝑅 , 𝐴 , 𝑦 ) [ 𝑧 / 𝑦 ] 𝜑 ↔ ∀ 𝑧 ∈ Pred ( 𝑅 , 𝐴 , 𝑤 ) [ 𝑧 / 𝑦 ] 𝜑 ) )
19 sbceq1a ( 𝑦 = 𝑤 → ( 𝜑[ 𝑤 / 𝑦 ] 𝜑 ) )
20 18 19 imbi12d ( 𝑦 = 𝑤 → ( ( ∀ 𝑧 ∈ Pred ( 𝑅 , 𝐴 , 𝑦 ) [ 𝑧 / 𝑦 ] 𝜑𝜑 ) ↔ ( ∀ 𝑧 ∈ Pred ( 𝑅 , 𝐴 , 𝑤 ) [ 𝑧 / 𝑦 ] 𝜑[ 𝑤 / 𝑦 ] 𝜑 ) ) )
21 16 20 imbi12d ( 𝑦 = 𝑤 → ( ( 𝑦𝐴 → ( ∀ 𝑧 ∈ Pred ( 𝑅 , 𝐴 , 𝑦 ) [ 𝑧 / 𝑦 ] 𝜑𝜑 ) ) ↔ ( 𝑤𝐴 → ( ∀ 𝑧 ∈ Pred ( 𝑅 , 𝐴 , 𝑤 ) [ 𝑧 / 𝑦 ] 𝜑[ 𝑤 / 𝑦 ] 𝜑 ) ) ) )
22 15 21 1 chvarfv ( 𝑤𝐴 → ( ∀ 𝑧 ∈ Pred ( 𝑅 , 𝐴 , 𝑤 ) [ 𝑧 / 𝑦 ] 𝜑[ 𝑤 / 𝑦 ] 𝜑 ) )
23 8 22 syl5 ( 𝑤𝐴 → ( Pred ( 𝑅 , 𝐴 , 𝑤 ) ⊆ { 𝑦𝐴𝜑 } → [ 𝑤 / 𝑦 ] 𝜑 ) )
24 23 anc2li ( 𝑤𝐴 → ( Pred ( 𝑅 , 𝐴 , 𝑤 ) ⊆ { 𝑦𝐴𝜑 } → ( 𝑤𝐴[ 𝑤 / 𝑦 ] 𝜑 ) ) )
25 4 elrabsf ( 𝑤 ∈ { 𝑦𝐴𝜑 } ↔ ( 𝑤𝐴[ 𝑤 / 𝑦 ] 𝜑 ) )
26 24 25 syl6ibr ( 𝑤𝐴 → ( Pred ( 𝑅 , 𝐴 , 𝑤 ) ⊆ { 𝑦𝐴𝜑 } → 𝑤 ∈ { 𝑦𝐴𝜑 } ) )
27 26 rgen 𝑤𝐴 ( Pred ( 𝑅 , 𝐴 , 𝑤 ) ⊆ { 𝑦𝐴𝜑 } → 𝑤 ∈ { 𝑦𝐴𝜑 } )
28 wfi ( ( ( 𝑅 We 𝐴𝑅 Se 𝐴 ) ∧ ( { 𝑦𝐴𝜑 } ⊆ 𝐴 ∧ ∀ 𝑤𝐴 ( Pred ( 𝑅 , 𝐴 , 𝑤 ) ⊆ { 𝑦𝐴𝜑 } → 𝑤 ∈ { 𝑦𝐴𝜑 } ) ) ) → 𝐴 = { 𝑦𝐴𝜑 } )
29 2 27 28 mpanr12 ( ( 𝑅 We 𝐴𝑅 Se 𝐴 ) → 𝐴 = { 𝑦𝐴𝜑 } )
30 rabid2 ( 𝐴 = { 𝑦𝐴𝜑 } ↔ ∀ 𝑦𝐴 𝜑 )
31 29 30 sylib ( ( 𝑅 We 𝐴𝑅 Se 𝐴 ) → ∀ 𝑦𝐴 𝜑 )