Users' Mathboxes Mathbox for Scott Fenton < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  nosupcbv Structured version   Visualization version   GIF version

Theorem nosupcbv 33884
Description: Lemma to change bound variables in a surreal supremum. (Contributed by Scott Fenton, 9-Aug-2024.)
Hypothesis
Ref Expression
nosupcbv.1 𝑆 = if(∃𝑥𝐴𝑦𝐴 ¬ 𝑥 <s 𝑦, ((𝑥𝐴𝑦𝐴 ¬ 𝑥 <s 𝑦) ∪ {⟨dom (𝑥𝐴𝑦𝐴 ¬ 𝑥 <s 𝑦), 2o⟩}), (𝑔 ∈ {𝑦 ∣ ∃𝑢𝐴 (𝑦 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑦) = (𝑣 ↾ suc 𝑦)))} ↦ (℩𝑥𝑢𝐴 (𝑔 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑔) = (𝑣 ↾ suc 𝑔)) ∧ (𝑢𝑔) = 𝑥))))
Assertion
Ref Expression
nosupcbv 𝑆 = if(∃𝑎𝐴𝑏𝐴 ¬ 𝑎 <s 𝑏, ((𝑎𝐴𝑏𝐴 ¬ 𝑎 <s 𝑏) ∪ {⟨dom (𝑎𝐴𝑏𝐴 ¬ 𝑎 <s 𝑏), 2o⟩}), (𝑐 ∈ {𝑑 ∣ ∃𝑒𝐴 (𝑑 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑑) = (𝑓 ↾ suc 𝑑)))} ↦ (℩𝑎𝑒𝐴 (𝑐 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑐) = (𝑓 ↾ suc 𝑐)) ∧ (𝑒𝑐) = 𝑎))))
Distinct variable groups:   𝐴,𝑎,𝑏   𝑎,𝑐,𝐴   𝐴,𝑑   𝑒,𝑎,𝐴   𝐴,𝑓   𝑔,𝑎,𝐴,𝑢,𝑣   𝑥,𝑎,𝐴,𝑦,𝑏   𝑐,𝑑,𝑒,𝑓   𝑔,𝑐,𝑢,𝑣   𝑥,𝑐,𝑦   𝑒,𝑑,𝑓,𝑢,𝑣,𝑦   𝑒,𝑔,𝑢,𝑣   𝑥,𝑒,𝑦   𝑓,𝑔,𝑢,𝑣   𝑥,𝑓,𝑦   𝑢,𝑔,𝑣   𝑥,𝑔,𝑦   𝑣,𝑢   𝑥,𝑢,𝑦   𝑦,𝑣   𝑥,𝑦
Allowed substitution hints:   𝑆(𝑥,𝑦,𝑣,𝑢,𝑒,𝑓,𝑔,𝑎,𝑏,𝑐,𝑑)

Proof of Theorem nosupcbv
StepHypRef Expression
1 nosupcbv.1 . 2 𝑆 = if(∃𝑥𝐴𝑦𝐴 ¬ 𝑥 <s 𝑦, ((𝑥𝐴𝑦𝐴 ¬ 𝑥 <s 𝑦) ∪ {⟨dom (𝑥𝐴𝑦𝐴 ¬ 𝑥 <s 𝑦), 2o⟩}), (𝑔 ∈ {𝑦 ∣ ∃𝑢𝐴 (𝑦 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑦) = (𝑣 ↾ suc 𝑦)))} ↦ (℩𝑥𝑢𝐴 (𝑔 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑔) = (𝑣 ↾ suc 𝑔)) ∧ (𝑢𝑔) = 𝑥))))
2 breq1 5081 . . . . . . 7 (𝑥 = 𝑎 → (𝑥 <s 𝑦𝑎 <s 𝑦))
32notbid 317 . . . . . 6 (𝑥 = 𝑎 → (¬ 𝑥 <s 𝑦 ↔ ¬ 𝑎 <s 𝑦))
43ralbidv 3122 . . . . 5 (𝑥 = 𝑎 → (∀𝑦𝐴 ¬ 𝑥 <s 𝑦 ↔ ∀𝑦𝐴 ¬ 𝑎 <s 𝑦))
5 breq2 5082 . . . . . . 7 (𝑦 = 𝑏 → (𝑎 <s 𝑦𝑎 <s 𝑏))
65notbid 317 . . . . . 6 (𝑦 = 𝑏 → (¬ 𝑎 <s 𝑦 ↔ ¬ 𝑎 <s 𝑏))
76cbvralvw 3380 . . . . 5 (∀𝑦𝐴 ¬ 𝑎 <s 𝑦 ↔ ∀𝑏𝐴 ¬ 𝑎 <s 𝑏)
84, 7bitrdi 286 . . . 4 (𝑥 = 𝑎 → (∀𝑦𝐴 ¬ 𝑥 <s 𝑦 ↔ ∀𝑏𝐴 ¬ 𝑎 <s 𝑏))
98cbvrexvw 3381 . . 3 (∃𝑥𝐴𝑦𝐴 ¬ 𝑥 <s 𝑦 ↔ ∃𝑎𝐴𝑏𝐴 ¬ 𝑎 <s 𝑏)
108cbvriotavw 7235 . . . 4 (𝑥𝐴𝑦𝐴 ¬ 𝑥 <s 𝑦) = (𝑎𝐴𝑏𝐴 ¬ 𝑎 <s 𝑏)
1110dmeqi 5810 . . . . . 6 dom (𝑥𝐴𝑦𝐴 ¬ 𝑥 <s 𝑦) = dom (𝑎𝐴𝑏𝐴 ¬ 𝑎 <s 𝑏)
1211opeq1i 4812 . . . . 5 ⟨dom (𝑥𝐴𝑦𝐴 ¬ 𝑥 <s 𝑦), 2o⟩ = ⟨dom (𝑎𝐴𝑏𝐴 ¬ 𝑎 <s 𝑏), 2o
1312sneqi 4577 . . . 4 {⟨dom (𝑥𝐴𝑦𝐴 ¬ 𝑥 <s 𝑦), 2o⟩} = {⟨dom (𝑎𝐴𝑏𝐴 ¬ 𝑎 <s 𝑏), 2o⟩}
1410, 13uneq12i 4099 . . 3 ((𝑥𝐴𝑦𝐴 ¬ 𝑥 <s 𝑦) ∪ {⟨dom (𝑥𝐴𝑦𝐴 ¬ 𝑥 <s 𝑦), 2o⟩}) = ((𝑎𝐴𝑏𝐴 ¬ 𝑎 <s 𝑏) ∪ {⟨dom (𝑎𝐴𝑏𝐴 ¬ 𝑎 <s 𝑏), 2o⟩})
15 eleq1w 2822 . . . . . . . . 9 (𝑔 = 𝑐 → (𝑔 ∈ dom 𝑢𝑐 ∈ dom 𝑢))
16 suceq 6328 . . . . . . . . . . . . 13 (𝑔 = 𝑐 → suc 𝑔 = suc 𝑐)
1716reseq2d 5888 . . . . . . . . . . . 12 (𝑔 = 𝑐 → (𝑢 ↾ suc 𝑔) = (𝑢 ↾ suc 𝑐))
1816reseq2d 5888 . . . . . . . . . . . 12 (𝑔 = 𝑐 → (𝑣 ↾ suc 𝑔) = (𝑣 ↾ suc 𝑐))
1917, 18eqeq12d 2755 . . . . . . . . . . 11 (𝑔 = 𝑐 → ((𝑢 ↾ suc 𝑔) = (𝑣 ↾ suc 𝑔) ↔ (𝑢 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐)))
2019imbi2d 340 . . . . . . . . . 10 (𝑔 = 𝑐 → ((¬ 𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑔) = (𝑣 ↾ suc 𝑔)) ↔ (¬ 𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐))))
2120ralbidv 3122 . . . . . . . . 9 (𝑔 = 𝑐 → (∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑔) = (𝑣 ↾ suc 𝑔)) ↔ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐))))
22 fveqeq2 6777 . . . . . . . . 9 (𝑔 = 𝑐 → ((𝑢𝑔) = 𝑥 ↔ (𝑢𝑐) = 𝑥))
2315, 21, 223anbi123d 1434 . . . . . . . 8 (𝑔 = 𝑐 → ((𝑔 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑔) = (𝑣 ↾ suc 𝑔)) ∧ (𝑢𝑔) = 𝑥) ↔ (𝑐 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐)) ∧ (𝑢𝑐) = 𝑥)))
2423rexbidv 3227 . . . . . . 7 (𝑔 = 𝑐 → (∃𝑢𝐴 (𝑔 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑔) = (𝑣 ↾ suc 𝑔)) ∧ (𝑢𝑔) = 𝑥) ↔ ∃𝑢𝐴 (𝑐 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐)) ∧ (𝑢𝑐) = 𝑥)))
2524iotabidv 6414 . . . . . 6 (𝑔 = 𝑐 → (℩𝑥𝑢𝐴 (𝑔 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑔) = (𝑣 ↾ suc 𝑔)) ∧ (𝑢𝑔) = 𝑥)) = (℩𝑥𝑢𝐴 (𝑐 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐)) ∧ (𝑢𝑐) = 𝑥)))
26 eqeq2 2751 . . . . . . . . . 10 (𝑥 = 𝑎 → ((𝑢𝑐) = 𝑥 ↔ (𝑢𝑐) = 𝑎))
27263anbi3d 1440 . . . . . . . . 9 (𝑥 = 𝑎 → ((𝑐 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐)) ∧ (𝑢𝑐) = 𝑥) ↔ (𝑐 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐)) ∧ (𝑢𝑐) = 𝑎)))
2827rexbidv 3227 . . . . . . . 8 (𝑥 = 𝑎 → (∃𝑢𝐴 (𝑐 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐)) ∧ (𝑢𝑐) = 𝑥) ↔ ∃𝑢𝐴 (𝑐 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐)) ∧ (𝑢𝑐) = 𝑎)))
29 dmeq 5809 . . . . . . . . . . 11 (𝑢 = 𝑒 → dom 𝑢 = dom 𝑒)
3029eleq2d 2825 . . . . . . . . . 10 (𝑢 = 𝑒 → (𝑐 ∈ dom 𝑢𝑐 ∈ dom 𝑒))
31 breq2 5082 . . . . . . . . . . . . . 14 (𝑢 = 𝑒 → (𝑣 <s 𝑢𝑣 <s 𝑒))
3231notbid 317 . . . . . . . . . . . . 13 (𝑢 = 𝑒 → (¬ 𝑣 <s 𝑢 ↔ ¬ 𝑣 <s 𝑒))
33 reseq1 5882 . . . . . . . . . . . . . 14 (𝑢 = 𝑒 → (𝑢 ↾ suc 𝑐) = (𝑒 ↾ suc 𝑐))
3433eqeq1d 2741 . . . . . . . . . . . . 13 (𝑢 = 𝑒 → ((𝑢 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐) ↔ (𝑒 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐)))
3532, 34imbi12d 344 . . . . . . . . . . . 12 (𝑢 = 𝑒 → ((¬ 𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐)) ↔ (¬ 𝑣 <s 𝑒 → (𝑒 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐))))
3635ralbidv 3122 . . . . . . . . . . 11 (𝑢 = 𝑒 → (∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐)) ↔ ∀𝑣𝐴𝑣 <s 𝑒 → (𝑒 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐))))
37 breq1 5081 . . . . . . . . . . . . . 14 (𝑣 = 𝑓 → (𝑣 <s 𝑒𝑓 <s 𝑒))
3837notbid 317 . . . . . . . . . . . . 13 (𝑣 = 𝑓 → (¬ 𝑣 <s 𝑒 ↔ ¬ 𝑓 <s 𝑒))
39 reseq1 5882 . . . . . . . . . . . . . 14 (𝑣 = 𝑓 → (𝑣 ↾ suc 𝑐) = (𝑓 ↾ suc 𝑐))
4039eqeq2d 2750 . . . . . . . . . . . . 13 (𝑣 = 𝑓 → ((𝑒 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐) ↔ (𝑒 ↾ suc 𝑐) = (𝑓 ↾ suc 𝑐)))
4138, 40imbi12d 344 . . . . . . . . . . . 12 (𝑣 = 𝑓 → ((¬ 𝑣 <s 𝑒 → (𝑒 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐)) ↔ (¬ 𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑐) = (𝑓 ↾ suc 𝑐))))
4241cbvralvw 3380 . . . . . . . . . . 11 (∀𝑣𝐴𝑣 <s 𝑒 → (𝑒 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐)) ↔ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑐) = (𝑓 ↾ suc 𝑐)))
4336, 42bitrdi 286 . . . . . . . . . 10 (𝑢 = 𝑒 → (∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐)) ↔ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑐) = (𝑓 ↾ suc 𝑐))))
44 fveq1 6767 . . . . . . . . . . 11 (𝑢 = 𝑒 → (𝑢𝑐) = (𝑒𝑐))
4544eqeq1d 2741 . . . . . . . . . 10 (𝑢 = 𝑒 → ((𝑢𝑐) = 𝑎 ↔ (𝑒𝑐) = 𝑎))
4630, 43, 453anbi123d 1434 . . . . . . . . 9 (𝑢 = 𝑒 → ((𝑐 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐)) ∧ (𝑢𝑐) = 𝑎) ↔ (𝑐 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑐) = (𝑓 ↾ suc 𝑐)) ∧ (𝑒𝑐) = 𝑎)))
4746cbvrexvw 3381 . . . . . . . 8 (∃𝑢𝐴 (𝑐 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐)) ∧ (𝑢𝑐) = 𝑎) ↔ ∃𝑒𝐴 (𝑐 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑐) = (𝑓 ↾ suc 𝑐)) ∧ (𝑒𝑐) = 𝑎))
4828, 47bitrdi 286 . . . . . . 7 (𝑥 = 𝑎 → (∃𝑢𝐴 (𝑐 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐)) ∧ (𝑢𝑐) = 𝑥) ↔ ∃𝑒𝐴 (𝑐 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑐) = (𝑓 ↾ suc 𝑐)) ∧ (𝑒𝑐) = 𝑎)))
4948cbviotavw 6396 . . . . . 6 (℩𝑥𝑢𝐴 (𝑐 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑐) = (𝑣 ↾ suc 𝑐)) ∧ (𝑢𝑐) = 𝑥)) = (℩𝑎𝑒𝐴 (𝑐 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑐) = (𝑓 ↾ suc 𝑐)) ∧ (𝑒𝑐) = 𝑎))
5025, 49eqtrdi 2795 . . . . 5 (𝑔 = 𝑐 → (℩𝑥𝑢𝐴 (𝑔 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑔) = (𝑣 ↾ suc 𝑔)) ∧ (𝑢𝑔) = 𝑥)) = (℩𝑎𝑒𝐴 (𝑐 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑐) = (𝑓 ↾ suc 𝑐)) ∧ (𝑒𝑐) = 𝑎)))
5150cbvmptv 5191 . . . 4 (𝑔 ∈ {𝑦 ∣ ∃𝑢𝐴 (𝑦 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑦) = (𝑣 ↾ suc 𝑦)))} ↦ (℩𝑥𝑢𝐴 (𝑔 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑔) = (𝑣 ↾ suc 𝑔)) ∧ (𝑢𝑔) = 𝑥))) = (𝑐 ∈ {𝑦 ∣ ∃𝑢𝐴 (𝑦 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑦) = (𝑣 ↾ suc 𝑦)))} ↦ (℩𝑎𝑒𝐴 (𝑐 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑐) = (𝑓 ↾ suc 𝑐)) ∧ (𝑒𝑐) = 𝑎)))
52 eleq1w 2822 . . . . . . . . 9 (𝑦 = 𝑑 → (𝑦 ∈ dom 𝑢𝑑 ∈ dom 𝑢))
53 suceq 6328 . . . . . . . . . . . . 13 (𝑦 = 𝑑 → suc 𝑦 = suc 𝑑)
5453reseq2d 5888 . . . . . . . . . . . 12 (𝑦 = 𝑑 → (𝑢 ↾ suc 𝑦) = (𝑢 ↾ suc 𝑑))
5553reseq2d 5888 . . . . . . . . . . . 12 (𝑦 = 𝑑 → (𝑣 ↾ suc 𝑦) = (𝑣 ↾ suc 𝑑))
5654, 55eqeq12d 2755 . . . . . . . . . . 11 (𝑦 = 𝑑 → ((𝑢 ↾ suc 𝑦) = (𝑣 ↾ suc 𝑦) ↔ (𝑢 ↾ suc 𝑑) = (𝑣 ↾ suc 𝑑)))
5756imbi2d 340 . . . . . . . . . 10 (𝑦 = 𝑑 → ((¬ 𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑦) = (𝑣 ↾ suc 𝑦)) ↔ (¬ 𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑑) = (𝑣 ↾ suc 𝑑))))
5857ralbidv 3122 . . . . . . . . 9 (𝑦 = 𝑑 → (∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑦) = (𝑣 ↾ suc 𝑦)) ↔ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑑) = (𝑣 ↾ suc 𝑑))))
5952, 58anbi12d 630 . . . . . . . 8 (𝑦 = 𝑑 → ((𝑦 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑦) = (𝑣 ↾ suc 𝑦))) ↔ (𝑑 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑑) = (𝑣 ↾ suc 𝑑)))))
6059rexbidv 3227 . . . . . . 7 (𝑦 = 𝑑 → (∃𝑢𝐴 (𝑦 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑦) = (𝑣 ↾ suc 𝑦))) ↔ ∃𝑢𝐴 (𝑑 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑑) = (𝑣 ↾ suc 𝑑)))))
6129eleq2d 2825 . . . . . . . . 9 (𝑢 = 𝑒 → (𝑑 ∈ dom 𝑢𝑑 ∈ dom 𝑒))
62 reseq1 5882 . . . . . . . . . . . . 13 (𝑢 = 𝑒 → (𝑢 ↾ suc 𝑑) = (𝑒 ↾ suc 𝑑))
6362eqeq1d 2741 . . . . . . . . . . . 12 (𝑢 = 𝑒 → ((𝑢 ↾ suc 𝑑) = (𝑣 ↾ suc 𝑑) ↔ (𝑒 ↾ suc 𝑑) = (𝑣 ↾ suc 𝑑)))
6432, 63imbi12d 344 . . . . . . . . . . 11 (𝑢 = 𝑒 → ((¬ 𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑑) = (𝑣 ↾ suc 𝑑)) ↔ (¬ 𝑣 <s 𝑒 → (𝑒 ↾ suc 𝑑) = (𝑣 ↾ suc 𝑑))))
6564ralbidv 3122 . . . . . . . . . 10 (𝑢 = 𝑒 → (∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑑) = (𝑣 ↾ suc 𝑑)) ↔ ∀𝑣𝐴𝑣 <s 𝑒 → (𝑒 ↾ suc 𝑑) = (𝑣 ↾ suc 𝑑))))
66 reseq1 5882 . . . . . . . . . . . . 13 (𝑣 = 𝑓 → (𝑣 ↾ suc 𝑑) = (𝑓 ↾ suc 𝑑))
6766eqeq2d 2750 . . . . . . . . . . . 12 (𝑣 = 𝑓 → ((𝑒 ↾ suc 𝑑) = (𝑣 ↾ suc 𝑑) ↔ (𝑒 ↾ suc 𝑑) = (𝑓 ↾ suc 𝑑)))
6838, 67imbi12d 344 . . . . . . . . . . 11 (𝑣 = 𝑓 → ((¬ 𝑣 <s 𝑒 → (𝑒 ↾ suc 𝑑) = (𝑣 ↾ suc 𝑑)) ↔ (¬ 𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑑) = (𝑓 ↾ suc 𝑑))))
6968cbvralvw 3380 . . . . . . . . . 10 (∀𝑣𝐴𝑣 <s 𝑒 → (𝑒 ↾ suc 𝑑) = (𝑣 ↾ suc 𝑑)) ↔ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑑) = (𝑓 ↾ suc 𝑑)))
7065, 69bitrdi 286 . . . . . . . . 9 (𝑢 = 𝑒 → (∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑑) = (𝑣 ↾ suc 𝑑)) ↔ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑑) = (𝑓 ↾ suc 𝑑))))
7161, 70anbi12d 630 . . . . . . . 8 (𝑢 = 𝑒 → ((𝑑 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑑) = (𝑣 ↾ suc 𝑑))) ↔ (𝑑 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑑) = (𝑓 ↾ suc 𝑑)))))
7271cbvrexvw 3381 . . . . . . 7 (∃𝑢𝐴 (𝑑 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑑) = (𝑣 ↾ suc 𝑑))) ↔ ∃𝑒𝐴 (𝑑 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑑) = (𝑓 ↾ suc 𝑑))))
7360, 72bitrdi 286 . . . . . 6 (𝑦 = 𝑑 → (∃𝑢𝐴 (𝑦 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑦) = (𝑣 ↾ suc 𝑦))) ↔ ∃𝑒𝐴 (𝑑 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑑) = (𝑓 ↾ suc 𝑑)))))
7473cbvabv 2812 . . . . 5 {𝑦 ∣ ∃𝑢𝐴 (𝑦 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑦) = (𝑣 ↾ suc 𝑦)))} = {𝑑 ∣ ∃𝑒𝐴 (𝑑 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑑) = (𝑓 ↾ suc 𝑑)))}
7574mpteq1i 5174 . . . 4 (𝑐 ∈ {𝑦 ∣ ∃𝑢𝐴 (𝑦 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑦) = (𝑣 ↾ suc 𝑦)))} ↦ (℩𝑎𝑒𝐴 (𝑐 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑐) = (𝑓 ↾ suc 𝑐)) ∧ (𝑒𝑐) = 𝑎))) = (𝑐 ∈ {𝑑 ∣ ∃𝑒𝐴 (𝑑 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑑) = (𝑓 ↾ suc 𝑑)))} ↦ (℩𝑎𝑒𝐴 (𝑐 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑐) = (𝑓 ↾ suc 𝑐)) ∧ (𝑒𝑐) = 𝑎)))
7651, 75eqtri 2767 . . 3 (𝑔 ∈ {𝑦 ∣ ∃𝑢𝐴 (𝑦 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑦) = (𝑣 ↾ suc 𝑦)))} ↦ (℩𝑥𝑢𝐴 (𝑔 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑔) = (𝑣 ↾ suc 𝑔)) ∧ (𝑢𝑔) = 𝑥))) = (𝑐 ∈ {𝑑 ∣ ∃𝑒𝐴 (𝑑 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑑) = (𝑓 ↾ suc 𝑑)))} ↦ (℩𝑎𝑒𝐴 (𝑐 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑐) = (𝑓 ↾ suc 𝑐)) ∧ (𝑒𝑐) = 𝑎)))
779, 14, 76ifbieq12i 4491 . 2 if(∃𝑥𝐴𝑦𝐴 ¬ 𝑥 <s 𝑦, ((𝑥𝐴𝑦𝐴 ¬ 𝑥 <s 𝑦) ∪ {⟨dom (𝑥𝐴𝑦𝐴 ¬ 𝑥 <s 𝑦), 2o⟩}), (𝑔 ∈ {𝑦 ∣ ∃𝑢𝐴 (𝑦 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑦) = (𝑣 ↾ suc 𝑦)))} ↦ (℩𝑥𝑢𝐴 (𝑔 ∈ dom 𝑢 ∧ ∀𝑣𝐴𝑣 <s 𝑢 → (𝑢 ↾ suc 𝑔) = (𝑣 ↾ suc 𝑔)) ∧ (𝑢𝑔) = 𝑥)))) = if(∃𝑎𝐴𝑏𝐴 ¬ 𝑎 <s 𝑏, ((𝑎𝐴𝑏𝐴 ¬ 𝑎 <s 𝑏) ∪ {⟨dom (𝑎𝐴𝑏𝐴 ¬ 𝑎 <s 𝑏), 2o⟩}), (𝑐 ∈ {𝑑 ∣ ∃𝑒𝐴 (𝑑 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑑) = (𝑓 ↾ suc 𝑑)))} ↦ (℩𝑎𝑒𝐴 (𝑐 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑐) = (𝑓 ↾ suc 𝑐)) ∧ (𝑒𝑐) = 𝑎))))
781, 77eqtri 2767 1 𝑆 = if(∃𝑎𝐴𝑏𝐴 ¬ 𝑎 <s 𝑏, ((𝑎𝐴𝑏𝐴 ¬ 𝑎 <s 𝑏) ∪ {⟨dom (𝑎𝐴𝑏𝐴 ¬ 𝑎 <s 𝑏), 2o⟩}), (𝑐 ∈ {𝑑 ∣ ∃𝑒𝐴 (𝑑 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑑) = (𝑓 ↾ suc 𝑑)))} ↦ (℩𝑎𝑒𝐴 (𝑐 ∈ dom 𝑒 ∧ ∀𝑓𝐴𝑓 <s 𝑒 → (𝑒 ↾ suc 𝑐) = (𝑓 ↾ suc 𝑐)) ∧ (𝑒𝑐) = 𝑎))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 395  w3a 1085   = wceq 1541  wcel 2109  {cab 2716  wral 3065  wrex 3066  cun 3889  ifcif 4464  {csn 4566  cop 4572   class class class wbr 5078  cmpt 5161  dom cdm 5588  cres 5590  suc csuc 6265  cio 6386  cfv 6430  crio 7224  2oc2o 8275   <s cslt 33823
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-ext 2710
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1544  df-fal 1554  df-ex 1786  df-sb 2071  df-clab 2717  df-cleq 2731  df-clel 2817  df-ral 3070  df-rex 3071  df-rab 3074  df-v 3432  df-dif 3894  df-un 3896  df-in 3898  df-ss 3908  df-nul 4262  df-if 4465  df-sn 4567  df-pr 4569  df-op 4573  df-uni 4845  df-br 5079  df-opab 5141  df-mpt 5162  df-xp 5594  df-dm 5598  df-res 5600  df-suc 6269  df-iota 6388  df-fv 6438  df-riota 7225
This theorem is referenced by:  noeta  33925
  Copyright terms: Public domain W3C validator