Metamath Proof Explorer


Theorem eln0zs

Description: Non-negative surreal integer property expressed in terms of integers. (Contributed by Scott Fenton, 25-Jul-2025)

Ref Expression
Assertion eln0zs ⊢ N ∈ ℕ 0s ↔ N ∈ ℤ s ∧ 0 s ≤ s N

Proof

Step Hyp Ref Expression
1 n0zs ⊢ N ∈ ℕ 0s → N ∈ ℤ s
2 n0sge0 ⊢ N ∈ ℕ 0s → 0 s ≤ s N
3 1 2 jca ⊢ N ∈ ℕ 0s → N ∈ ℤ s ∧ 0 s ≤ s N
4 elzs ⊢ N ∈ ℤ s ↔ ∃ x ∈ ℕ s ∃ y ∈ ℕ s N = x - s y
5 nnno ⊢ x ∈ ℕ s → x ∈ No
6 5 adantr ⊢ x ∈ ℕ s ∧ y ∈ ℕ s → x ∈ No
7 nnno ⊢ y ∈ ℕ s → y ∈ No
8 7 adantl ⊢ x ∈ ℕ s ∧ y ∈ ℕ s → y ∈ No
9 6 8 subsge0d ⊢ x ∈ ℕ s ∧ y ∈ ℕ s → 0 s ≤ s x - s y ↔ y ≤ s x
10 nnn0s ⊢ y ∈ ℕ s → y ∈ ℕ 0s
11 nnn0s ⊢ x ∈ ℕ s → x ∈ ℕ 0s
12 n0subs ⊢ y ∈ ℕ 0s ∧ x ∈ ℕ 0s → y ≤ s x ↔ x - s y ∈ ℕ 0s
13 10 11 12 syl2anr ⊢ x ∈ ℕ s ∧ y ∈ ℕ s → y ≤ s x ↔ x - s y ∈ ℕ 0s
14 9 13 bitrd ⊢ x ∈ ℕ s ∧ y ∈ ℕ s → 0 s ≤ s x - s y ↔ x - s y ∈ ℕ 0s
15 14 biimpd ⊢ x ∈ ℕ s ∧ y ∈ ℕ s → 0 s ≤ s x - s y → x - s y ∈ ℕ 0s
16 breq2 ⊢ N = x - s y → 0 s ≤ s N ↔ 0 s ≤ s x - s y
17 eleq1 ⊢ N = x - s y → N ∈ ℕ 0s ↔ x - s y ∈ ℕ 0s
18 16 17 imbi12d ⊢ N = x - s y → 0 s ≤ s N → N ∈ ℕ 0s ↔ 0 s ≤ s x - s y → x - s y ∈ ℕ 0s
19 15 18 syl5ibrcom ⊢ x ∈ ℕ s ∧ y ∈ ℕ s → N = x - s y → 0 s ≤ s N → N ∈ ℕ 0s
20 19 rexlimivv ⊢ ∃ x ∈ ℕ s ∃ y ∈ ℕ s N = x - s y → 0 s ≤ s N → N ∈ ℕ 0s
21 4 20 sylbi ⊢ N ∈ ℤ s → 0 s ≤ s N → N ∈ ℕ 0s
22 21 imp ⊢ N ∈ ℤ s ∧ 0 s ≤ s N → N ∈ ℕ 0s
23 3 22 impbii ⊢ N ∈ ℕ 0s ↔ N ∈ ℤ s ∧ 0 s ≤ s N