ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  difinfsnlem GIF version

Theorem difinfsnlem 7064
Description: Lemma for difinfsn 7065. The case where we need to swap 𝐵 and (inr‘∅) in building the mapping 𝐺. (Contributed by Jim Kingdon, 9-Aug-2023.)
Hypotheses
Ref Expression
difinfsnlem.dc (𝜑 → ∀𝑥𝐴𝑦𝐴 DECID 𝑥 = 𝑦)
difinfsnlem.b (𝜑𝐵𝐴)
difinfsnlem.f (𝜑𝐹:(ω ⊔ 1o)–1-1𝐴)
difinfsnlem.fb (𝜑 → (𝐹‘(inr‘∅)) ≠ 𝐵)
difinfsnlem.g 𝐺 = (𝑛 ∈ ω ↦ if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))))
Assertion
Ref Expression
difinfsnlem (𝜑𝐺:ω–1-1→(𝐴 ∖ {𝐵}))
Distinct variable groups:   𝐴,𝑛,𝑥,𝑦   𝐵,𝑛,𝑥,𝑦   𝑛,𝐹,𝑥,𝑦   𝜑,𝑛
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝐺(𝑥,𝑦,𝑛)

Proof of Theorem difinfsnlem
Dummy variable 𝑚 is distinct from all other variables.
StepHypRef Expression
1 difinfsnlem.f . . . . . . . 8 (𝜑𝐹:(ω ⊔ 1o)–1-1𝐴)
2 f1f 5393 . . . . . . . 8 (𝐹:(ω ⊔ 1o)–1-1𝐴𝐹:(ω ⊔ 1o)⟶𝐴)
31, 2syl 14 . . . . . . 7 (𝜑𝐹:(ω ⊔ 1o)⟶𝐴)
4 0lt1o 6408 . . . . . . . 8 ∅ ∈ 1o
5 djurcl 7017 . . . . . . . 8 (∅ ∈ 1o → (inr‘∅) ∈ (ω ⊔ 1o))
64, 5mp1i 10 . . . . . . 7 (𝜑 → (inr‘∅) ∈ (ω ⊔ 1o))
73, 6ffvelrnd 5621 . . . . . 6 (𝜑 → (𝐹‘(inr‘∅)) ∈ 𝐴)
8 difinfsnlem.fb . . . . . . 7 (𝜑 → (𝐹‘(inr‘∅)) ≠ 𝐵)
9 elsni 3594 . . . . . . . 8 ((𝐹‘(inr‘∅)) ∈ {𝐵} → (𝐹‘(inr‘∅)) = 𝐵)
109necon3ai 2385 . . . . . . 7 ((𝐹‘(inr‘∅)) ≠ 𝐵 → ¬ (𝐹‘(inr‘∅)) ∈ {𝐵})
118, 10syl 14 . . . . . 6 (𝜑 → ¬ (𝐹‘(inr‘∅)) ∈ {𝐵})
127, 11eldifd 3126 . . . . 5 (𝜑 → (𝐹‘(inr‘∅)) ∈ (𝐴 ∖ {𝐵}))
1312ad2antrr 480 . . . 4 (((𝜑𝑛 ∈ ω) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) → (𝐹‘(inr‘∅)) ∈ (𝐴 ∖ {𝐵}))
143adantr 274 . . . . . . 7 ((𝜑𝑛 ∈ ω) → 𝐹:(ω ⊔ 1o)⟶𝐴)
15 djulcl 7016 . . . . . . . 8 (𝑛 ∈ ω → (inl‘𝑛) ∈ (ω ⊔ 1o))
1615adantl 275 . . . . . . 7 ((𝜑𝑛 ∈ ω) → (inl‘𝑛) ∈ (ω ⊔ 1o))
1714, 16ffvelrnd 5621 . . . . . 6 ((𝜑𝑛 ∈ ω) → (𝐹‘(inl‘𝑛)) ∈ 𝐴)
1817adantr 274 . . . . 5 (((𝜑𝑛 ∈ ω) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) → (𝐹‘(inl‘𝑛)) ∈ 𝐴)
19 elsni 3594 . . . . . . 7 ((𝐹‘(inl‘𝑛)) ∈ {𝐵} → (𝐹‘(inl‘𝑛)) = 𝐵)
2019con3i 622 . . . . . 6 (¬ (𝐹‘(inl‘𝑛)) = 𝐵 → ¬ (𝐹‘(inl‘𝑛)) ∈ {𝐵})
2120adantl 275 . . . . 5 (((𝜑𝑛 ∈ ω) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) → ¬ (𝐹‘(inl‘𝑛)) ∈ {𝐵})
2218, 21eldifd 3126 . . . 4 (((𝜑𝑛 ∈ ω) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) → (𝐹‘(inl‘𝑛)) ∈ (𝐴 ∖ {𝐵}))
23 difinfsnlem.dc . . . . . 6 (𝜑 → ∀𝑥𝐴𝑦𝐴 DECID 𝑥 = 𝑦)
2423adantr 274 . . . . 5 ((𝜑𝑛 ∈ ω) → ∀𝑥𝐴𝑦𝐴 DECID 𝑥 = 𝑦)
25 difinfsnlem.b . . . . . . 7 (𝜑𝐵𝐴)
2625adantr 274 . . . . . 6 ((𝜑𝑛 ∈ ω) → 𝐵𝐴)
27 eqeq12 2178 . . . . . . . 8 ((𝑥 = (𝐹‘(inl‘𝑛)) ∧ 𝑦 = 𝐵) → (𝑥 = 𝑦 ↔ (𝐹‘(inl‘𝑛)) = 𝐵))
2827dcbid 828 . . . . . . 7 ((𝑥 = (𝐹‘(inl‘𝑛)) ∧ 𝑦 = 𝐵) → (DECID 𝑥 = 𝑦DECID (𝐹‘(inl‘𝑛)) = 𝐵))
2928rspc2gv 2842 . . . . . 6 (((𝐹‘(inl‘𝑛)) ∈ 𝐴𝐵𝐴) → (∀𝑥𝐴𝑦𝐴 DECID 𝑥 = 𝑦DECID (𝐹‘(inl‘𝑛)) = 𝐵))
3017, 26, 29syl2anc 409 . . . . 5 ((𝜑𝑛 ∈ ω) → (∀𝑥𝐴𝑦𝐴 DECID 𝑥 = 𝑦DECID (𝐹‘(inl‘𝑛)) = 𝐵))
3124, 30mpd 13 . . . 4 ((𝜑𝑛 ∈ ω) → DECID (𝐹‘(inl‘𝑛)) = 𝐵)
3213, 22, 31ifcldadc 3549 . . 3 ((𝜑𝑛 ∈ ω) → if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) ∈ (𝐴 ∖ {𝐵}))
3332ralrimiva 2539 . 2 (𝜑 → ∀𝑛 ∈ ω if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) ∈ (𝐴 ∖ {𝐵}))
34 simplr 520 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → (𝐹‘(inl‘𝑛)) = 𝐵)
35 simpr 109 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → (𝐹‘(inl‘𝑚)) = 𝐵)
3634, 35eqtr4d 2201 . . . . . . . 8 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → (𝐹‘(inl‘𝑛)) = (𝐹‘(inl‘𝑚)))
371ad3antrrr 484 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → 𝐹:(ω ⊔ 1o)–1-1𝐴)
3815ad2antrl 482 . . . . . . . . . 10 ((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) → (inl‘𝑛) ∈ (ω ⊔ 1o))
3938ad2antrr 480 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → (inl‘𝑛) ∈ (ω ⊔ 1o))
40 simprr 522 . . . . . . . . . . 11 ((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) → 𝑚 ∈ ω)
4140ad2antrr 480 . . . . . . . . . 10 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → 𝑚 ∈ ω)
42 djulcl 7016 . . . . . . . . . 10 (𝑚 ∈ ω → (inl‘𝑚) ∈ (ω ⊔ 1o))
4341, 42syl 14 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → (inl‘𝑚) ∈ (ω ⊔ 1o))
44 f1veqaeq 5737 . . . . . . . . 9 ((𝐹:(ω ⊔ 1o)–1-1𝐴 ∧ ((inl‘𝑛) ∈ (ω ⊔ 1o) ∧ (inl‘𝑚) ∈ (ω ⊔ 1o))) → ((𝐹‘(inl‘𝑛)) = (𝐹‘(inl‘𝑚)) → (inl‘𝑛) = (inl‘𝑚)))
4537, 39, 43, 44syl12anc 1226 . . . . . . . 8 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → ((𝐹‘(inl‘𝑛)) = (𝐹‘(inl‘𝑚)) → (inl‘𝑛) = (inl‘𝑚)))
4636, 45mpd 13 . . . . . . 7 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → (inl‘𝑛) = (inl‘𝑚))
47 inl11 7030 . . . . . . . 8 ((𝑛 ∈ ω ∧ 𝑚 ∈ ω) → ((inl‘𝑛) = (inl‘𝑚) ↔ 𝑛 = 𝑚))
4847ad3antlr 485 . . . . . . 7 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → ((inl‘𝑛) = (inl‘𝑚) ↔ 𝑛 = 𝑚))
4946, 48mpbid 146 . . . . . 6 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → 𝑛 = 𝑚)
5049a1d 22 . . . . 5 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → (if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) = if((𝐹‘(inl‘𝑚)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑚))) → 𝑛 = 𝑚))
5140ad2antrr 480 . . . . . . . . . 10 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → 𝑚 ∈ ω)
52 djune 7043 . . . . . . . . . . 11 ((𝑚 ∈ ω ∧ ∅ ∈ 1o) → (inl‘𝑚) ≠ (inr‘∅))
5352necomd 2422 . . . . . . . . . 10 ((𝑚 ∈ ω ∧ ∅ ∈ 1o) → (inr‘∅) ≠ (inl‘𝑚))
5451, 4, 53sylancl 410 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → (inr‘∅) ≠ (inl‘𝑚))
5554neneqd 2357 . . . . . . . 8 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → ¬ (inr‘∅) = (inl‘𝑚))
561ad3antrrr 484 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → 𝐹:(ω ⊔ 1o)–1-1𝐴)
574, 5mp1i 10 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → (inr‘∅) ∈ (ω ⊔ 1o))
5840, 42syl 14 . . . . . . . . . 10 ((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) → (inl‘𝑚) ∈ (ω ⊔ 1o))
5958ad2antrr 480 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → (inl‘𝑚) ∈ (ω ⊔ 1o))
60 f1veqaeq 5737 . . . . . . . . 9 ((𝐹:(ω ⊔ 1o)–1-1𝐴 ∧ ((inr‘∅) ∈ (ω ⊔ 1o) ∧ (inl‘𝑚) ∈ (ω ⊔ 1o))) → ((𝐹‘(inr‘∅)) = (𝐹‘(inl‘𝑚)) → (inr‘∅) = (inl‘𝑚)))
6156, 57, 59, 60syl12anc 1226 . . . . . . . 8 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → ((𝐹‘(inr‘∅)) = (𝐹‘(inl‘𝑚)) → (inr‘∅) = (inl‘𝑚)))
6255, 61mtod 653 . . . . . . 7 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → ¬ (𝐹‘(inr‘∅)) = (𝐹‘(inl‘𝑚)))
63 simplr 520 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → (𝐹‘(inl‘𝑛)) = 𝐵)
6463iftrued 3527 . . . . . . . 8 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) = (𝐹‘(inr‘∅)))
65 simpr 109 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → ¬ (𝐹‘(inl‘𝑚)) = 𝐵)
6665iffalsed 3530 . . . . . . . 8 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → if((𝐹‘(inl‘𝑚)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑚))) = (𝐹‘(inl‘𝑚)))
6764, 66eqeq12d 2180 . . . . . . 7 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → (if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) = if((𝐹‘(inl‘𝑚)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑚))) ↔ (𝐹‘(inr‘∅)) = (𝐹‘(inl‘𝑚))))
6862, 67mtbird 663 . . . . . 6 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → ¬ if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) = if((𝐹‘(inl‘𝑚)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑚))))
6968pm2.21d 609 . . . . 5 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → (if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) = if((𝐹‘(inl‘𝑚)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑚))) → 𝑛 = 𝑚))
7023adantr 274 . . . . . . . 8 ((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) → ∀𝑥𝐴𝑦𝐴 DECID 𝑥 = 𝑦)
713adantr 274 . . . . . . . . . 10 ((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) → 𝐹:(ω ⊔ 1o)⟶𝐴)
7271, 58ffvelrnd 5621 . . . . . . . . 9 ((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) → (𝐹‘(inl‘𝑚)) ∈ 𝐴)
7325adantr 274 . . . . . . . . 9 ((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) → 𝐵𝐴)
74 eqeq12 2178 . . . . . . . . . . 11 ((𝑥 = (𝐹‘(inl‘𝑚)) ∧ 𝑦 = 𝐵) → (𝑥 = 𝑦 ↔ (𝐹‘(inl‘𝑚)) = 𝐵))
7574dcbid 828 . . . . . . . . . 10 ((𝑥 = (𝐹‘(inl‘𝑚)) ∧ 𝑦 = 𝐵) → (DECID 𝑥 = 𝑦DECID (𝐹‘(inl‘𝑚)) = 𝐵))
7675rspc2gv 2842 . . . . . . . . 9 (((𝐹‘(inl‘𝑚)) ∈ 𝐴𝐵𝐴) → (∀𝑥𝐴𝑦𝐴 DECID 𝑥 = 𝑦DECID (𝐹‘(inl‘𝑚)) = 𝐵))
7772, 73, 76syl2anc 409 . . . . . . . 8 ((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) → (∀𝑥𝐴𝑦𝐴 DECID 𝑥 = 𝑦DECID (𝐹‘(inl‘𝑚)) = 𝐵))
7870, 77mpd 13 . . . . . . 7 ((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) → DECID (𝐹‘(inl‘𝑚)) = 𝐵)
79 exmiddc 826 . . . . . . 7 (DECID (𝐹‘(inl‘𝑚)) = 𝐵 → ((𝐹‘(inl‘𝑚)) = 𝐵 ∨ ¬ (𝐹‘(inl‘𝑚)) = 𝐵))
8078, 79syl 14 . . . . . 6 ((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) → ((𝐹‘(inl‘𝑚)) = 𝐵 ∨ ¬ (𝐹‘(inl‘𝑚)) = 𝐵))
8180adantr 274 . . . . 5 (((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) → ((𝐹‘(inl‘𝑚)) = 𝐵 ∨ ¬ (𝐹‘(inl‘𝑚)) = 𝐵))
8250, 69, 81mpjaodan 788 . . . 4 (((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ (𝐹‘(inl‘𝑛)) = 𝐵) → (if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) = if((𝐹‘(inl‘𝑚)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑚))) → 𝑛 = 𝑚))
83 simprl 521 . . . . . . . . . . 11 ((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) → 𝑛 ∈ ω)
8483ad2antrr 480 . . . . . . . . . 10 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → 𝑛 ∈ ω)
85 djune 7043 . . . . . . . . . 10 ((𝑛 ∈ ω ∧ ∅ ∈ 1o) → (inl‘𝑛) ≠ (inr‘∅))
8684, 4, 85sylancl 410 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → (inl‘𝑛) ≠ (inr‘∅))
8786neneqd 2357 . . . . . . . 8 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → ¬ (inl‘𝑛) = (inr‘∅))
881ad3antrrr 484 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → 𝐹:(ω ⊔ 1o)–1-1𝐴)
8938ad2antrr 480 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → (inl‘𝑛) ∈ (ω ⊔ 1o))
904, 5mp1i 10 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → (inr‘∅) ∈ (ω ⊔ 1o))
91 f1veqaeq 5737 . . . . . . . . 9 ((𝐹:(ω ⊔ 1o)–1-1𝐴 ∧ ((inl‘𝑛) ∈ (ω ⊔ 1o) ∧ (inr‘∅) ∈ (ω ⊔ 1o))) → ((𝐹‘(inl‘𝑛)) = (𝐹‘(inr‘∅)) → (inl‘𝑛) = (inr‘∅)))
9288, 89, 90, 91syl12anc 1226 . . . . . . . 8 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → ((𝐹‘(inl‘𝑛)) = (𝐹‘(inr‘∅)) → (inl‘𝑛) = (inr‘∅)))
9387, 92mtod 653 . . . . . . 7 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → ¬ (𝐹‘(inl‘𝑛)) = (𝐹‘(inr‘∅)))
94 simplr 520 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → ¬ (𝐹‘(inl‘𝑛)) = 𝐵)
9594iffalsed 3530 . . . . . . . 8 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) = (𝐹‘(inl‘𝑛)))
96 simpr 109 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → (𝐹‘(inl‘𝑚)) = 𝐵)
9796iftrued 3527 . . . . . . . 8 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → if((𝐹‘(inl‘𝑚)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑚))) = (𝐹‘(inr‘∅)))
9895, 97eqeq12d 2180 . . . . . . 7 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → (if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) = if((𝐹‘(inl‘𝑚)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑚))) ↔ (𝐹‘(inl‘𝑛)) = (𝐹‘(inr‘∅))))
9993, 98mtbird 663 . . . . . 6 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → ¬ if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) = if((𝐹‘(inl‘𝑚)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑚))))
10099pm2.21d 609 . . . . 5 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ (𝐹‘(inl‘𝑚)) = 𝐵) → (if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) = if((𝐹‘(inl‘𝑚)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑚))) → 𝑛 = 𝑚))
101 simplr 520 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → ¬ (𝐹‘(inl‘𝑛)) = 𝐵)
102101iffalsed 3530 . . . . . . . 8 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) = (𝐹‘(inl‘𝑛)))
103 simpr 109 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → ¬ (𝐹‘(inl‘𝑚)) = 𝐵)
104103iffalsed 3530 . . . . . . . 8 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → if((𝐹‘(inl‘𝑚)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑚))) = (𝐹‘(inl‘𝑚)))
105102, 104eqeq12d 2180 . . . . . . 7 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → (if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) = if((𝐹‘(inl‘𝑚)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑚))) ↔ (𝐹‘(inl‘𝑛)) = (𝐹‘(inl‘𝑚))))
1061ad3antrrr 484 . . . . . . . 8 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → 𝐹:(ω ⊔ 1o)–1-1𝐴)
10738ad2antrr 480 . . . . . . . 8 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → (inl‘𝑛) ∈ (ω ⊔ 1o))
10858ad2antrr 480 . . . . . . . 8 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → (inl‘𝑚) ∈ (ω ⊔ 1o))
109106, 107, 108, 44syl12anc 1226 . . . . . . 7 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → ((𝐹‘(inl‘𝑛)) = (𝐹‘(inl‘𝑚)) → (inl‘𝑛) = (inl‘𝑚)))
110105, 109sylbid 149 . . . . . 6 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → (if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) = if((𝐹‘(inl‘𝑚)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑚))) → (inl‘𝑛) = (inl‘𝑚)))
11147ad3antlr 485 . . . . . 6 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → ((inl‘𝑛) = (inl‘𝑚) ↔ 𝑛 = 𝑚))
112110, 111sylibd 148 . . . . 5 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) ∧ ¬ (𝐹‘(inl‘𝑚)) = 𝐵) → (if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) = if((𝐹‘(inl‘𝑚)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑚))) → 𝑛 = 𝑚))
11380adantr 274 . . . . 5 (((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) → ((𝐹‘(inl‘𝑚)) = 𝐵 ∨ ¬ (𝐹‘(inl‘𝑚)) = 𝐵))
114100, 112, 113mpjaodan 788 . . . 4 (((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) ∧ ¬ (𝐹‘(inl‘𝑛)) = 𝐵) → (if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) = if((𝐹‘(inl‘𝑚)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑚))) → 𝑛 = 𝑚))
115 exmiddc 826 . . . . . 6 (DECID (𝐹‘(inl‘𝑛)) = 𝐵 → ((𝐹‘(inl‘𝑛)) = 𝐵 ∨ ¬ (𝐹‘(inl‘𝑛)) = 𝐵))
11631, 115syl 14 . . . . 5 ((𝜑𝑛 ∈ ω) → ((𝐹‘(inl‘𝑛)) = 𝐵 ∨ ¬ (𝐹‘(inl‘𝑛)) = 𝐵))
117116adantrr 471 . . . 4 ((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) → ((𝐹‘(inl‘𝑛)) = 𝐵 ∨ ¬ (𝐹‘(inl‘𝑛)) = 𝐵))
11882, 114, 117mpjaodan 788 . . 3 ((𝜑 ∧ (𝑛 ∈ ω ∧ 𝑚 ∈ ω)) → (if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) = if((𝐹‘(inl‘𝑚)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑚))) → 𝑛 = 𝑚))
119118ralrimivva 2548 . 2 (𝜑 → ∀𝑛 ∈ ω ∀𝑚 ∈ ω (if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) = if((𝐹‘(inl‘𝑚)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑚))) → 𝑛 = 𝑚))
120 difinfsnlem.g . . 3 𝐺 = (𝑛 ∈ ω ↦ if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))))
121 2fveq3 5491 . . . . 5 (𝑛 = 𝑚 → (𝐹‘(inl‘𝑛)) = (𝐹‘(inl‘𝑚)))
122121eqeq1d 2174 . . . 4 (𝑛 = 𝑚 → ((𝐹‘(inl‘𝑛)) = 𝐵 ↔ (𝐹‘(inl‘𝑚)) = 𝐵))
123122, 121ifbieq2d 3544 . . 3 (𝑛 = 𝑚 → if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) = if((𝐹‘(inl‘𝑚)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑚))))
124120, 123f1mpt 5739 . 2 (𝐺:ω–1-1→(𝐴 ∖ {𝐵}) ↔ (∀𝑛 ∈ ω if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) ∈ (𝐴 ∖ {𝐵}) ∧ ∀𝑛 ∈ ω ∀𝑚 ∈ ω (if((𝐹‘(inl‘𝑛)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑛))) = if((𝐹‘(inl‘𝑚)) = 𝐵, (𝐹‘(inr‘∅)), (𝐹‘(inl‘𝑚))) → 𝑛 = 𝑚)))
12533, 119, 124sylanbrc 414 1 (𝜑𝐺:ω–1-1→(𝐴 ∖ {𝐵}))
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 103  wb 104  wo 698  DECID wdc 824   = wceq 1343  wcel 2136  wne 2336  wral 2444  cdif 3113  c0 3409  ifcif 3520  {csn 3576  cmpt 4043  ωcom 4567  wf 5184  1-1wf1 5185  cfv 5188  1oc1o 6377  cdju 7002  inlcinl 7010  inrcinr 7011
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 604  ax-in2 605  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-13 2138  ax-14 2139  ax-ext 2147  ax-sep 4100  ax-nul 4108  ax-pow 4153  ax-pr 4187  ax-un 4411
This theorem depends on definitions:  df-bi 116  df-dc 825  df-3an 970  df-tru 1346  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ne 2337  df-ral 2449  df-rex 2450  df-rab 2453  df-v 2728  df-sbc 2952  df-csb 3046  df-dif 3118  df-un 3120  df-in 3122  df-ss 3129  df-nul 3410  df-if 3521  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-br 3983  df-opab 4044  df-mpt 4045  df-tr 4081  df-id 4271  df-iord 4344  df-on 4346  df-suc 4349  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-rn 4615  df-res 4616  df-ima 4617  df-iota 5153  df-fun 5190  df-fn 5191  df-f 5192  df-f1 5193  df-fv 5196  df-1st 6108  df-1o 6384  df-dju 7003  df-inl 7012  df-inr 7013
This theorem is referenced by:  difinfsn  7065
  Copyright terms: Public domain W3C validator