Metamath Proof Explorer


Theorem rabssnn0fi

Description: A subset of the nonnegative integers defined by a restricted class abstraction is finite if there is a nonnegative integer so that for all integers greater than this integer the condition of the class abstraction is not fulfilled. (Contributed by AV, 3-Oct-2019)

Ref Expression
Assertion rabssnn0fi ⊢ x ∈ ℕ 0 | φ ∈ Fin ↔ ∃ s ∈ ℕ 0 ∀ x ∈ ℕ 0 s < x → ¬ φ

Proof

Step Hyp Ref Expression
1 ssrab2 ⊢ x ∈ ℕ 0 | φ ⊆ ℕ 0
2 ssnn0fi ⊢ x ∈ ℕ 0 | φ ⊆ ℕ 0 → x ∈ ℕ 0 | φ ∈ Fin ↔ ∃ s ∈ ℕ 0 ∀ y ∈ ℕ 0 s < y → y ∉ x ∈ ℕ 0 | φ
3 nnel ⊢ ¬ y ∉ x ∈ ℕ 0 | φ ↔ y ∈ x ∈ ℕ 0 | φ
4 nfcv ⊢ Ⅎ _ x y
5 nfcv ⊢ Ⅎ _ x ℕ 0
6 nfsbc1v ⊢ Ⅎ x [˙y / x]˙ ¬ φ
7 6 nfn ⊢ Ⅎ x ¬ [˙y / x]˙ ¬ φ
8 sbceq2a ⊢ y = x → [˙y / x]˙ ¬ φ ↔ ¬ φ
9 8 equcoms ⊢ x = y → [˙y / x]˙ ¬ φ ↔ ¬ φ
10 9 con2bid ⊢ x = y → φ ↔ ¬ [˙y / x]˙ ¬ φ
11 4 5 7 10 elrabf ⊢ y ∈ x ∈ ℕ 0 | φ ↔ y ∈ ℕ 0 ∧ ¬ [˙y / x]˙ ¬ φ
12 11 baib ⊢ y ∈ ℕ 0 → y ∈ x ∈ ℕ 0 | φ ↔ ¬ [˙y / x]˙ ¬ φ
13 3 12 bitrid ⊢ y ∈ ℕ 0 → ¬ y ∉ x ∈ ℕ 0 | φ ↔ ¬ [˙y / x]˙ ¬ φ
14 13 con4bid ⊢ y ∈ ℕ 0 → y ∉ x ∈ ℕ 0 | φ ↔ [˙y / x]˙ ¬ φ
15 14 imbi2d ⊢ y ∈ ℕ 0 → s < y → y ∉ x ∈ ℕ 0 | φ ↔ s < y → [˙y / x]˙ ¬ φ
16 15 ralbiia ⊢ ∀ y ∈ ℕ 0 s < y → y ∉ x ∈ ℕ 0 | φ ↔ ∀ y ∈ ℕ 0 s < y → [˙y / x]˙ ¬ φ
17 nfv ⊢ Ⅎ x s < y
18 17 6 nfim ⊢ Ⅎ x s < y → [˙y / x]˙ ¬ φ
19 nfv ⊢ Ⅎ y s < x → ¬ φ
20 breq2 ⊢ y = x → s < y ↔ s < x
21 20 8 imbi12d ⊢ y = x → s < y → [˙y / x]˙ ¬ φ ↔ s < x → ¬ φ
22 18 19 21 cbvralw ⊢ ∀ y ∈ ℕ 0 s < y → [˙y / x]˙ ¬ φ ↔ ∀ x ∈ ℕ 0 s < x → ¬ φ
23 16 22 bitri ⊢ ∀ y ∈ ℕ 0 s < y → y ∉ x ∈ ℕ 0 | φ ↔ ∀ x ∈ ℕ 0 s < x → ¬ φ
24 23 a1i ⊢ x ∈ ℕ 0 | φ ⊆ ℕ 0 ∧ s ∈ ℕ 0 → ∀ y ∈ ℕ 0 s < y → y ∉ x ∈ ℕ 0 | φ ↔ ∀ x ∈ ℕ 0 s < x → ¬ φ
25 24 rexbidva ⊢ x ∈ ℕ 0 | φ ⊆ ℕ 0 → ∃ s ∈ ℕ 0 ∀ y ∈ ℕ 0 s < y → y ∉ x ∈ ℕ 0 | φ ↔ ∃ s ∈ ℕ 0 ∀ x ∈ ℕ 0 s < x → ¬ φ
26 2 25 bitrd ⊢ x ∈ ℕ 0 | φ ⊆ ℕ 0 → x ∈ ℕ 0 | φ ∈ Fin ↔ ∃ s ∈ ℕ 0 ∀ x ∈ ℕ 0 s < x → ¬ φ
27 1 26 ax-mp ⊢ x ∈ ℕ 0 | φ ∈ Fin ↔ ∃ s ∈ ℕ 0 ∀ x ∈ ℕ 0 s < x → ¬ φ