MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  setsstruct Structured version   Visualization version   GIF version

Theorem setsstruct 16092
Description: An extensible structure with a replaced slot is an extensible structure. (Contributed by AV, 9-Jun-2021.) (Revised by AV, 14-Nov-2021.)
Assertion
Ref Expression
setsstruct ((𝐸𝑉𝐼 ∈ (ℤ𝑀) ∧ 𝐺 Struct ⟨𝑀, 𝑁⟩) → (𝐺 sSet ⟨𝐼, 𝐸⟩) Struct ⟨𝑀, if(𝐼𝑁, 𝑁, 𝐼)⟩)

Proof of Theorem setsstruct
StepHypRef Expression
1 isstruct 16064 . . . . . 6 (𝐺 Struct ⟨𝑀, 𝑁⟩ ↔ ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) ∧ Fun (𝐺 ∖ {∅}) ∧ dom 𝐺 ⊆ (𝑀...𝑁)))
2 simp2 1131 . . . . . . . . . 10 (((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) ∧ 𝐺 Struct ⟨𝑀, 𝑁⟩ ∧ (𝐸𝑉𝐼 ∈ (ℤ𝑀))) → 𝐺 Struct ⟨𝑀, 𝑁⟩)
3 simp3l 1241 . . . . . . . . . 10 (((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) ∧ 𝐺 Struct ⟨𝑀, 𝑁⟩ ∧ (𝐸𝑉𝐼 ∈ (ℤ𝑀))) → 𝐸𝑉)
4 1z 11591 . . . . . . . . . . . . . . . 16 1 ∈ ℤ
5 nnge1 11230 . . . . . . . . . . . . . . . 16 (𝑀 ∈ ℕ → 1 ≤ 𝑀)
6 eluzuzle 11880 . . . . . . . . . . . . . . . 16 ((1 ∈ ℤ ∧ 1 ≤ 𝑀) → (𝐼 ∈ (ℤ𝑀) → 𝐼 ∈ (ℤ‘1)))
74, 5, 6sylancr 698 . . . . . . . . . . . . . . 15 (𝑀 ∈ ℕ → (𝐼 ∈ (ℤ𝑀) → 𝐼 ∈ (ℤ‘1)))
8 elnnuz 11909 . . . . . . . . . . . . . . 15 (𝐼 ∈ ℕ ↔ 𝐼 ∈ (ℤ‘1))
97, 8syl6ibr 242 . . . . . . . . . . . . . 14 (𝑀 ∈ ℕ → (𝐼 ∈ (ℤ𝑀) → 𝐼 ∈ ℕ))
109adantld 484 . . . . . . . . . . . . 13 (𝑀 ∈ ℕ → ((𝐸𝑉𝐼 ∈ (ℤ𝑀)) → 𝐼 ∈ ℕ))
11103ad2ant1 1127 . . . . . . . . . . . 12 ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) → ((𝐸𝑉𝐼 ∈ (ℤ𝑀)) → 𝐼 ∈ ℕ))
1211a1d 25 . . . . . . . . . . 11 ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) → (𝐺 Struct ⟨𝑀, 𝑁⟩ → ((𝐸𝑉𝐼 ∈ (ℤ𝑀)) → 𝐼 ∈ ℕ)))
13123imp 1101 . . . . . . . . . 10 (((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) ∧ 𝐺 Struct ⟨𝑀, 𝑁⟩ ∧ (𝐸𝑉𝐼 ∈ (ℤ𝑀))) → 𝐼 ∈ ℕ)
142, 3, 133jca 1122 . . . . . . . . 9 (((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) ∧ 𝐺 Struct ⟨𝑀, 𝑁⟩ ∧ (𝐸𝑉𝐼 ∈ (ℤ𝑀))) → (𝐺 Struct ⟨𝑀, 𝑁⟩ ∧ 𝐸𝑉𝐼 ∈ ℕ))
15 op1stg 7337 . . . . . . . . . . . . . . . 16 ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (1st ‘⟨𝑀, 𝑁⟩) = 𝑀)
1615breq2d 4808 . . . . . . . . . . . . . . 15 ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝐼 ≤ (1st ‘⟨𝑀, 𝑁⟩) ↔ 𝐼𝑀))
17 eqidd 2753 . . . . . . . . . . . . . . 15 ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝐼 = 𝐼)
1816, 17, 15ifbieq12d 4249 . . . . . . . . . . . . . 14 ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → if(𝐼 ≤ (1st ‘⟨𝑀, 𝑁⟩), 𝐼, (1st ‘⟨𝑀, 𝑁⟩)) = if(𝐼𝑀, 𝐼, 𝑀))
19183adant3 1126 . . . . . . . . . . . . 13 ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) → if(𝐼 ≤ (1st ‘⟨𝑀, 𝑁⟩), 𝐼, (1st ‘⟨𝑀, 𝑁⟩)) = if(𝐼𝑀, 𝐼, 𝑀))
2019adantr 472 . . . . . . . . . . . 12 (((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) ∧ (𝐸𝑉𝐼 ∈ (ℤ𝑀))) → if(𝐼 ≤ (1st ‘⟨𝑀, 𝑁⟩), 𝐼, (1st ‘⟨𝑀, 𝑁⟩)) = if(𝐼𝑀, 𝐼, 𝑀))
21 eluz2 11877 . . . . . . . . . . . . . . . 16 (𝐼 ∈ (ℤ𝑀) ↔ (𝑀 ∈ ℤ ∧ 𝐼 ∈ ℤ ∧ 𝑀𝐼))
22 zre 11565 . . . . . . . . . . . . . . . . . . . 20 (𝐼 ∈ ℤ → 𝐼 ∈ ℝ)
2322rexrd 10273 . . . . . . . . . . . . . . . . . . 19 (𝐼 ∈ ℤ → 𝐼 ∈ ℝ*)
24233ad2ant2 1128 . . . . . . . . . . . . . . . . . 18 ((𝑀 ∈ ℤ ∧ 𝐼 ∈ ℤ ∧ 𝑀𝐼) → 𝐼 ∈ ℝ*)
25 zre 11565 . . . . . . . . . . . . . . . . . . . 20 (𝑀 ∈ ℤ → 𝑀 ∈ ℝ)
2625rexrd 10273 . . . . . . . . . . . . . . . . . . 19 (𝑀 ∈ ℤ → 𝑀 ∈ ℝ*)
27263ad2ant1 1127 . . . . . . . . . . . . . . . . . 18 ((𝑀 ∈ ℤ ∧ 𝐼 ∈ ℤ ∧ 𝑀𝐼) → 𝑀 ∈ ℝ*)
28 simp3 1132 . . . . . . . . . . . . . . . . . 18 ((𝑀 ∈ ℤ ∧ 𝐼 ∈ ℤ ∧ 𝑀𝐼) → 𝑀𝐼)
2924, 27, 283jca 1122 . . . . . . . . . . . . . . . . 17 ((𝑀 ∈ ℤ ∧ 𝐼 ∈ ℤ ∧ 𝑀𝐼) → (𝐼 ∈ ℝ*𝑀 ∈ ℝ*𝑀𝐼))
3029a1d 25 . . . . . . . . . . . . . . . 16 ((𝑀 ∈ ℤ ∧ 𝐼 ∈ ℤ ∧ 𝑀𝐼) → ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) → (𝐼 ∈ ℝ*𝑀 ∈ ℝ*𝑀𝐼)))
3121, 30sylbi 207 . . . . . . . . . . . . . . 15 (𝐼 ∈ (ℤ𝑀) → ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) → (𝐼 ∈ ℝ*𝑀 ∈ ℝ*𝑀𝐼)))
3231adantl 473 . . . . . . . . . . . . . 14 ((𝐸𝑉𝐼 ∈ (ℤ𝑀)) → ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) → (𝐼 ∈ ℝ*𝑀 ∈ ℝ*𝑀𝐼)))
3332impcom 445 . . . . . . . . . . . . 13 (((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) ∧ (𝐸𝑉𝐼 ∈ (ℤ𝑀))) → (𝐼 ∈ ℝ*𝑀 ∈ ℝ*𝑀𝐼))
34 xrmineq 12196 . . . . . . . . . . . . 13 ((𝐼 ∈ ℝ*𝑀 ∈ ℝ*𝑀𝐼) → if(𝐼𝑀, 𝐼, 𝑀) = 𝑀)
3533, 34syl 17 . . . . . . . . . . . 12 (((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) ∧ (𝐸𝑉𝐼 ∈ (ℤ𝑀))) → if(𝐼𝑀, 𝐼, 𝑀) = 𝑀)
3620, 35eqtr2d 2787 . . . . . . . . . . 11 (((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) ∧ (𝐸𝑉𝐼 ∈ (ℤ𝑀))) → 𝑀 = if(𝐼 ≤ (1st ‘⟨𝑀, 𝑁⟩), 𝐼, (1st ‘⟨𝑀, 𝑁⟩)))
37363adant2 1125 . . . . . . . . . 10 (((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) ∧ 𝐺 Struct ⟨𝑀, 𝑁⟩ ∧ (𝐸𝑉𝐼 ∈ (ℤ𝑀))) → 𝑀 = if(𝐼 ≤ (1st ‘⟨𝑀, 𝑁⟩), 𝐼, (1st ‘⟨𝑀, 𝑁⟩)))
38 op2ndg 7338 . . . . . . . . . . . . . . 15 ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (2nd ‘⟨𝑀, 𝑁⟩) = 𝑁)
3938eqcomd 2758 . . . . . . . . . . . . . 14 ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → 𝑁 = (2nd ‘⟨𝑀, 𝑁⟩))
4039breq2d 4808 . . . . . . . . . . . . 13 ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝐼𝑁𝐼 ≤ (2nd ‘⟨𝑀, 𝑁⟩)))
4140, 39, 17ifbieq12d 4249 . . . . . . . . . . . 12 ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → if(𝐼𝑁, 𝑁, 𝐼) = if(𝐼 ≤ (2nd ‘⟨𝑀, 𝑁⟩), (2nd ‘⟨𝑀, 𝑁⟩), 𝐼))
42413adant3 1126 . . . . . . . . . . 11 ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) → if(𝐼𝑁, 𝑁, 𝐼) = if(𝐼 ≤ (2nd ‘⟨𝑀, 𝑁⟩), (2nd ‘⟨𝑀, 𝑁⟩), 𝐼))
43423ad2ant1 1127 . . . . . . . . . 10 (((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) ∧ 𝐺 Struct ⟨𝑀, 𝑁⟩ ∧ (𝐸𝑉𝐼 ∈ (ℤ𝑀))) → if(𝐼𝑁, 𝑁, 𝐼) = if(𝐼 ≤ (2nd ‘⟨𝑀, 𝑁⟩), (2nd ‘⟨𝑀, 𝑁⟩), 𝐼))
4437, 43opeq12d 4553 . . . . . . . . 9 (((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) ∧ 𝐺 Struct ⟨𝑀, 𝑁⟩ ∧ (𝐸𝑉𝐼 ∈ (ℤ𝑀))) → ⟨𝑀, if(𝐼𝑁, 𝑁, 𝐼)⟩ = ⟨if(𝐼 ≤ (1st ‘⟨𝑀, 𝑁⟩), 𝐼, (1st ‘⟨𝑀, 𝑁⟩)), if(𝐼 ≤ (2nd ‘⟨𝑀, 𝑁⟩), (2nd ‘⟨𝑀, 𝑁⟩), 𝐼)⟩)
4514, 44jca 555 . . . . . . . 8 (((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) ∧ 𝐺 Struct ⟨𝑀, 𝑁⟩ ∧ (𝐸𝑉𝐼 ∈ (ℤ𝑀))) → ((𝐺 Struct ⟨𝑀, 𝑁⟩ ∧ 𝐸𝑉𝐼 ∈ ℕ) ∧ ⟨𝑀, if(𝐼𝑁, 𝑁, 𝐼)⟩ = ⟨if(𝐼 ≤ (1st ‘⟨𝑀, 𝑁⟩), 𝐼, (1st ‘⟨𝑀, 𝑁⟩)), if(𝐼 ≤ (2nd ‘⟨𝑀, 𝑁⟩), (2nd ‘⟨𝑀, 𝑁⟩), 𝐼)⟩))
46453exp 1112 . . . . . . 7 ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) → (𝐺 Struct ⟨𝑀, 𝑁⟩ → ((𝐸𝑉𝐼 ∈ (ℤ𝑀)) → ((𝐺 Struct ⟨𝑀, 𝑁⟩ ∧ 𝐸𝑉𝐼 ∈ ℕ) ∧ ⟨𝑀, if(𝐼𝑁, 𝑁, 𝐼)⟩ = ⟨if(𝐼 ≤ (1st ‘⟨𝑀, 𝑁⟩), 𝐼, (1st ‘⟨𝑀, 𝑁⟩)), if(𝐼 ≤ (2nd ‘⟨𝑀, 𝑁⟩), (2nd ‘⟨𝑀, 𝑁⟩), 𝐼)⟩))))
47463ad2ant1 1127 . . . . . 6 (((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ ∧ 𝑀𝑁) ∧ Fun (𝐺 ∖ {∅}) ∧ dom 𝐺 ⊆ (𝑀...𝑁)) → (𝐺 Struct ⟨𝑀, 𝑁⟩ → ((𝐸𝑉𝐼 ∈ (ℤ𝑀)) → ((𝐺 Struct ⟨𝑀, 𝑁⟩ ∧ 𝐸𝑉𝐼 ∈ ℕ) ∧ ⟨𝑀, if(𝐼𝑁, 𝑁, 𝐼)⟩ = ⟨if(𝐼 ≤ (1st ‘⟨𝑀, 𝑁⟩), 𝐼, (1st ‘⟨𝑀, 𝑁⟩)), if(𝐼 ≤ (2nd ‘⟨𝑀, 𝑁⟩), (2nd ‘⟨𝑀, 𝑁⟩), 𝐼)⟩))))
481, 47sylbi 207 . . . . 5 (𝐺 Struct ⟨𝑀, 𝑁⟩ → (𝐺 Struct ⟨𝑀, 𝑁⟩ → ((𝐸𝑉𝐼 ∈ (ℤ𝑀)) → ((𝐺 Struct ⟨𝑀, 𝑁⟩ ∧ 𝐸𝑉𝐼 ∈ ℕ) ∧ ⟨𝑀, if(𝐼𝑁, 𝑁, 𝐼)⟩ = ⟨if(𝐼 ≤ (1st ‘⟨𝑀, 𝑁⟩), 𝐼, (1st ‘⟨𝑀, 𝑁⟩)), if(𝐼 ≤ (2nd ‘⟨𝑀, 𝑁⟩), (2nd ‘⟨𝑀, 𝑁⟩), 𝐼)⟩))))
4948pm2.43i 52 . . . 4 (𝐺 Struct ⟨𝑀, 𝑁⟩ → ((𝐸𝑉𝐼 ∈ (ℤ𝑀)) → ((𝐺 Struct ⟨𝑀, 𝑁⟩ ∧ 𝐸𝑉𝐼 ∈ ℕ) ∧ ⟨𝑀, if(𝐼𝑁, 𝑁, 𝐼)⟩ = ⟨if(𝐼 ≤ (1st ‘⟨𝑀, 𝑁⟩), 𝐼, (1st ‘⟨𝑀, 𝑁⟩)), if(𝐼 ≤ (2nd ‘⟨𝑀, 𝑁⟩), (2nd ‘⟨𝑀, 𝑁⟩), 𝐼)⟩)))
5049expdcom 454 . . 3 (𝐸𝑉 → (𝐼 ∈ (ℤ𝑀) → (𝐺 Struct ⟨𝑀, 𝑁⟩ → ((𝐺 Struct ⟨𝑀, 𝑁⟩ ∧ 𝐸𝑉𝐼 ∈ ℕ) ∧ ⟨𝑀, if(𝐼𝑁, 𝑁, 𝐼)⟩ = ⟨if(𝐼 ≤ (1st ‘⟨𝑀, 𝑁⟩), 𝐼, (1st ‘⟨𝑀, 𝑁⟩)), if(𝐼 ≤ (2nd ‘⟨𝑀, 𝑁⟩), (2nd ‘⟨𝑀, 𝑁⟩), 𝐼)⟩))))
51503imp 1101 . 2 ((𝐸𝑉𝐼 ∈ (ℤ𝑀) ∧ 𝐺 Struct ⟨𝑀, 𝑁⟩) → ((𝐺 Struct ⟨𝑀, 𝑁⟩ ∧ 𝐸𝑉𝐼 ∈ ℕ) ∧ ⟨𝑀, if(𝐼𝑁, 𝑁, 𝐼)⟩ = ⟨if(𝐼 ≤ (1st ‘⟨𝑀, 𝑁⟩), 𝐼, (1st ‘⟨𝑀, 𝑁⟩)), if(𝐼 ≤ (2nd ‘⟨𝑀, 𝑁⟩), (2nd ‘⟨𝑀, 𝑁⟩), 𝐼)⟩))
52 setsstruct2 16090 . 2 (((𝐺 Struct ⟨𝑀, 𝑁⟩ ∧ 𝐸𝑉𝐼 ∈ ℕ) ∧ ⟨𝑀, if(𝐼𝑁, 𝑁, 𝐼)⟩ = ⟨if(𝐼 ≤ (1st ‘⟨𝑀, 𝑁⟩), 𝐼, (1st ‘⟨𝑀, 𝑁⟩)), if(𝐼 ≤ (2nd ‘⟨𝑀, 𝑁⟩), (2nd ‘⟨𝑀, 𝑁⟩), 𝐼)⟩) → (𝐺 sSet ⟨𝐼, 𝐸⟩) Struct ⟨𝑀, if(𝐼𝑁, 𝑁, 𝐼)⟩)
5351, 52syl 17 1 ((𝐸𝑉𝐼 ∈ (ℤ𝑀) ∧ 𝐺 Struct ⟨𝑀, 𝑁⟩) → (𝐺 sSet ⟨𝐼, 𝐸⟩) Struct ⟨𝑀, if(𝐼𝑁, 𝑁, 𝐼)⟩)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 383  w3a 1072   = wceq 1624  wcel 2131  cdif 3704  wss 3707  c0 4050  ifcif 4222  {csn 4313  cop 4319   class class class wbr 4796  dom cdm 5258  Fun wfun 6035  cfv 6041  (class class class)co 6805  1st c1st 7323  2nd c2nd 7324  1c1 10121  *cxr 10257  cle 10259  cn 11204  cz 11561  cuz 11871  ...cfz 12511   Struct cstr 16047   sSet csts 16049
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1863  ax-4 1878  ax-5 1980  ax-6 2046  ax-7 2082  ax-8 2133  ax-9 2140  ax-10 2160  ax-11 2175  ax-12 2188  ax-13 2383  ax-ext 2732  ax-sep 4925  ax-nul 4933  ax-pow 4984  ax-pr 5047  ax-un 7106  ax-cnex 10176  ax-resscn 10177  ax-1cn 10178  ax-icn 10179  ax-addcl 10180  ax-addrcl 10181  ax-mulcl 10182  ax-mulrcl 10183  ax-mulcom 10184  ax-addass 10185  ax-mulass 10186  ax-distr 10187  ax-i2m1 10188  ax-1ne0 10189  ax-1rid 10190  ax-rnegex 10191  ax-rrecex 10192  ax-cnre 10193  ax-pre-lttri 10194  ax-pre-lttrn 10195  ax-pre-ltadd 10196  ax-pre-mulgt0 10197
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3or 1073  df-3an 1074  df-tru 1627  df-ex 1846  df-nf 1851  df-sb 2039  df-eu 2603  df-mo 2604  df-clab 2739  df-cleq 2745  df-clel 2748  df-nfc 2883  df-ne 2925  df-nel 3028  df-ral 3047  df-rex 3048  df-reu 3049  df-rab 3051  df-v 3334  df-sbc 3569  df-csb 3667  df-dif 3710  df-un 3712  df-in 3714  df-ss 3721  df-pss 3723  df-nul 4051  df-if 4223  df-pw 4296  df-sn 4314  df-pr 4316  df-tp 4318  df-op 4320  df-uni 4581  df-int 4620  df-iun 4666  df-br 4797  df-opab 4857  df-mpt 4874  df-tr 4897  df-id 5166  df-eprel 5171  df-po 5179  df-so 5180  df-fr 5217  df-we 5219  df-xp 5264  df-rel 5265  df-cnv 5266  df-co 5267  df-dm 5268  df-rn 5269  df-res 5270  df-ima 5271  df-pred 5833  df-ord 5879  df-on 5880  df-lim 5881  df-suc 5882  df-iota 6004  df-fun 6043  df-fn 6044  df-f 6045  df-f1 6046  df-fo 6047  df-f1o 6048  df-fv 6049  df-riota 6766  df-ov 6808  df-oprab 6809  df-mpt2 6810  df-om 7223  df-1st 7325  df-2nd 7326  df-wrecs 7568  df-recs 7629  df-rdg 7667  df-1o 7721  df-oadd 7725  df-er 7903  df-en 8114  df-dom 8115  df-sdom 8116  df-fin 8117  df-pnf 10260  df-mnf 10261  df-xr 10262  df-ltxr 10263  df-le 10264  df-sub 10452  df-neg 10453  df-nn 11205  df-n0 11477  df-z 11562  df-uz 11872  df-fz 12512  df-struct 16053  df-sets 16058
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator