Step
*
2
of Lemma
priority-select-ff
1. [T] : Type
2. as : T List
3. f : T ā¶ š¹
4. g : T ā¶ š¹
5. T ār ā¤
6. āi:ā||as||. āj:āi. (as[j] ā¤ as[i])
7. (priority-select(f;g;as) = (inl ff) ā (š¹?))
ā (āi:ā||as||. ((ā(g as[i])) ā§ (āj:āi + 1. (Ā¬ā(f as[j])))))
8. (priority-select(f;g;as) = (inl ff) ā (š¹?))
ā āi:ā||as||. ((ā(g as[i])) ā§ (āj:āi + 1. (Ā¬ā(f as[j]))))
9. (āaāas. (ā(g a)) ā§ (āb:T. ((b ā as)
ā Ā¬ā(f b) supposing b ā¤ a)))
ā¢ āi:ā||as||. ((ā(g as[i])) ā§ (āj:āi + 1. (Ā¬ā(f as[j]))))
BY
{ (D (-1) THEN With āiā (D 0)ā
THEN Auto THEN (BHyp (-3)) THEN Auto) }
1
1. T : Type
2. as : T List
3. f : T ā¶ š¹
4. g : T ā¶ š¹
5. T ār ā¤
6. āi:ā||as||. āj:āi. (as[j] ā¤ as[i])
7. (priority-select(f;g;as) = (inl ff) ā (š¹?))
ā (āi:ā||as||. ((ā(g as[i])) ā§ (āj:āi + 1. (Ā¬ā(f as[j])))))
8. (priority-select(f;g;as) = (inl ff) ā (š¹?))
ā āi:ā||as||. ((ā(g as[i])) ā§ (āj:āi + 1. (Ā¬ā(f as[j]))))
9. i : ā||as||
10. ā(g as[i])
11. āb:T. ((b ā as)
ā Ā¬ā(f b) supposing b ā¤ as[i])
12. ā(g as[i])
13. j : āi + 1
ā¢ as[j] ā¤ as[i]
Latex:
Latex:
1. [T] : Type
2. as : T List
3. f : T {}\mrightarrow{} \mBbbB{}
4. g : T {}\mrightarrow{} \mBbbB{}
5. T \msubseteq{}r \mBbbZ{}
6. \mforall{}i:\mBbbN{}||as||. \mforall{}j:\mBbbN{}i. (as[j] \mleq{} as[i])
7. (priority-select(f;g;as) = (inl ff)) {}\mRightarrow{} (\mexists{}i:\mBbbN{}||as||. ((\muparrow{}(g as[i])) \mwedge{} (\mforall{}j:\mBbbN{}i + 1. (\mneg{}\muparrow{}(f as[j])))))
8. (priority-select(f;g;as) = (inl ff)) \mLeftarrow{}{} \mexists{}i:\mBbbN{}||as||. ((\muparrow{}(g as[i])) \mwedge{} (\mforall{}j:\mBbbN{}i + 1. (\mneg{}\muparrow{}(f as[j]))))
9. (\mexists{}a\mmember{}as. (\muparrow{}(g a)) \mwedge{} (\mforall{}b:T. ((b \mmember{} as) {}\mRightarrow{} \mneg{}\muparrow{}(f b) supposing b \mleq{} a)))
\mvdash{} \mexists{}i:\mBbbN{}||as||. ((\muparrow{}(g as[i])) \mwedge{} (\mforall{}j:\mBbbN{}i + 1. (\mneg{}\muparrow{}(f as[j]))))
By
Latex:
(D (-1) THEN With \mkleeneopen{}i\mkleeneclose{} (D 0)\mcdot{} THEN Auto THEN (BHyp (-3)) THEN Auto)
Home
Index