Ramsey-Problems

1 - OG-Ramsey Theorem

let, m,nN and mn2. Define R(m,n) to be the smallest number R for which any coloring of the edges of K[R] with the set {r,b} (denoting red and blue), contains Kr[m] or Kb[n] .

Ramsey Theorem: R(m,n) is finite, and is at most (n+m2m1).

(lemma 1.1): If R(m+1,n)(n+m1m), and R(m,n+1)(n+m1m1), then R(m+1,n+1)(n+mm).

Proof:

Suppose R(m+1,n)(n+m1m) and R(m,n+1)(n+m1m1). we will show that R(m+1,n+1)(n+mm). Indeed, (n+mm)=(n+m1m1)+(n+m1m). So, construct an arbitrary coloring of K[(n+mm)] with the set {r,b}.

First, suppose vK[(n+mm)] such that #b(v)(n+m1m). then v is adjacent to some K[(n+m1m)] via all blue edges. By our hypothesis, K[(n+m1m)] either contains Kr[m+1] (in which case we are done), or Kb[n] which forms a Kb[n+1] with v.

Otherwise, vK[(n+mm)], we have #b(v)<(n+m1m). Therefore, it must be the case that#r(v)>(n+mm)(n+m1m)1. Equivalently, #r(v)(n+m1m1). Hence any v is adjacent to some K[(n+m1m1)] via all red edges. By our hypothesis, K[(n+m1m1)] either contains Kb[n+1] (in which case we are done), or Kr[m] which forms a Kr[m+1] with v.

(lemma 1.2): If R(m,2)(mm1)=m, and R(2,n)(n1)=n. In particular R(2,2)=2.

Proof:

Color K[m] with {r,b}. We either have a blue edge (Kb[2] ), or Kr[m] . Similarly, Color K[n] with {r,b}. We either have a red edge (Kr[2] ), or Kb[n] .

lemma 1.2 acts as the base case of the induction, with lemma 1.1 acting as the inductive step, which together prove Ramsey’s theorem.

for 1in , let C={ci} be a color set, and (ai) be an n-tuple of natural numbers (ai2).

denote R(ai) to be the smallest number R for which in any coloring of the edges of K[R] with C,

at least one of Kci[ai] is in K[R].

Multicolor Ramsey Theorem: R(ai) is finite.

proof, we induct on n (the base case n=2 is the Ramsey theorem). suppose for some n, R(ai) is finite. then, we claim that R(a1,a2,...an,an+1)R(R(ai),an+1) (which is itself a two color Ramsey number and hence finite).

let C=C{cn+1}. construct an arbitrary coloring of the edges K[R(R(ai),an+1)] with the color set C. Now, transform this coloring in the following way: whenever the color of an edge is in C, color it with a rouge color c instead. now, in this Transformed coloring of K[R(R(ai),an+1)], there are only two colors, namely c and cn+1. if we find Kcn+1[an+1], we are done. So, suppose we find Kc[R(ai)]. In that case, reverse the transformation such that all edges in Kc[R(ai)] are colored as per the initial coloring with the color set C. By our induction hypothesis, Kc[R(ai)] contains at least one of Kci[ai].

Wikipedia has a funny proof about going color blind initially and then recovering our sight (and a better upper bound) of R(a1,a2,...an,an+1)R(R(a1,a2,..an1),R(an,an+1)).

(essentially repeat the same argument with any ci- colored edge with c if and only if 1in1. and replaces any cn or cn+1 - colored edge with c, henceK[R(R(a1,a2,..an1),R(an,an+1))] either contains Kc[R(a1,a2,..an1)] or Kc[R(an,an+1)]).

let n2 define (n)=R(3,3,..n times,3) that is, (n) is the smallest number R for which any coloring of the edges of K[R] with an n-set contains a monochromatic K[3].

Consider K[((n+1)(n))+2]. Color it arbitrarily with an n+1 set. the degree of v0 in this graph is ((n+1)(n))+1. hence at least (n)+1/(n+1)=(n) edges out of v0 are all colored c. hence, v0 is adjacent to some K[(n)] via all c edges. if some edge in K[(n)] is colored c, we have a monochromatic triangle Kc[3]. Else, all edges of K[(n)] are colored with at most n colors. hence for some color c, Kc[3] exists in K[(n)].

Hence we get the following bound: (n+1)(n+1)(n)+2. And (2)=6.

by looking at the above relation, we could guess that (n)a(n!) could work. Indeed, from our guess we have (n+1)a(n+1)!a(n+1)!+2 (the rightmost part of this inequality shows that a(n!) does satisfy our recurrence inequality given above). however, (2)=6 hence a=3. So finally, (n)3(n!)

2 : Schur’s Theorem

let C be an n-set of colors. Then, n,  T(n)N such that if T={1,...T(n)} is colored with C, then x<y<zT such that x+y=z and x,y,z are all the same color.

proof:

construct an arbitrary coloring of T with C. Now, construct a complete graph K[T(n)] whose vertex set is T. color the edge ab with the color of |ab| for each a,bT. Suppose we find a monochromatic triangle i,j,k then, (WLOG suppose i<j<k). then x=ji, y=kj and z=ki all have the same color. Indeed x+y=z. Therefore, T(n)(n)3(n!).

3 : Anti-Fermat’s Theorem

let p be a prime, and \boldCp1 b e the cyclic (commutative) group of order p1. Depict the elements of \boldCp1 as {0,1,...p2}, where each number t co-responds to the anti-clockwise rotation by 2πt of a regular p1 gon. a,b\boldCp1, define ab=a+b modulo p1 to be the group operator.

now, let 0mp2. Define \boldCp1m={xm|x\boldCp1} (where xm is x composed on itself m times). Indeed, if m=0, then \boldCp1m={mx (mod p1) |x\boldCp1} is subgroup of \boldCp1. Intuitively, we can imagine \boldCp1m as a regular polygon whose vertices is the subset of {0,1,...p2} which contains 0 and all multiples of m in {0,1,...p2}. ie, \boldCp1m covers the congruence class of 0 modulo m contained in {0,1,...p2}. if we rotated \boldCp1m by 1 unit anti-clockwise, then now it covers the congruence class of 1 modulo m, and so on. So the entire set {0,1,...p2} can be covered by disjoint subsets, each co-responding to a rotation of \boldCp1m.

Hence, we have the following beautiful result: Let rm be the number of congruence classes modulo m contained in {0,1,...p2}. Let (ai) be elements of \boldCp1, and let ai\boldCp1m denote the congruence class modulo m, obtained by the orbit of Cp1m under the rotative action of ai. Then \boldCp1=i=1rai\boldCp1m

Now, let Zp denote the multiplicative group obtained by removing 0 from the congruence classes modulo p. Zp is isomorphic to \boldCp1 by the bijection induced by trt1. Moreover, the subgroup Gm={xm|xZp} is isomorphic to \boldCp1m by the same bijection (m=0).

Hence, there are elements (ti)Zp such that Zp=i=1rtiGm is a partition of Zp. Color the ith block in the partition entirely with color ci for each 1ir. since rm, we need at most m colors to do so. And, for a particular choice of m, the prime p can be made sufficiently large. In particular, if pT(m) as defined in Schur’s theorem, there is a monochromatic solution to a+b=c where a<b<c are in Zp. Indeed, then a,b,c must all colored cj and hence must all be in the block tjGm. Hence, a=tjxm, b=tjym, c+tjzm for some x,y,zZp.

Therefore, (given that gcd(tj,p)=1) we have xm+ym=zm in Zp.

Anti-Fermat’s Theorem: m3, there exists a prime p(m) such that the Fermat equation xm+ym=zm has a solution modulo p. In particular, it’s sufficient to choose a prime p3(m!).

One way to eliminate integer solutions to a polynomial equation is to eliminate solutions modulo all primes. In particular, if an equation has no solutions modulo any prime, then it has no solutions at all. The above theorem clearly shows that such an approach would not work on Fermat’s equation.

define ρ(t,n)=R(t,t,..n times..t). That is, ρ(t,n) is the smallest number ρ for which any coloring of the edges K[ρ] with an n-set, contains Kc[t] for some color c.

notice that (n)=ρ(3,n)3(n!). This might make us conjecture something like ρ(k,n)k(n)!, which is utter nonsense. put n=2, and we get ρ(t,2)=R(t,t)2t. (garbage, false, untrue).

the best (upper) bound on R(t,t) is proportional (for a constant factor smaller than 1) to 4s1.

so we stop here.

Fat Schur’s Theorem

t,nN, There exists N(t,n) such that if the set [N]={1,...N} is colored with an n-set, there exists a monochromatic set {a1,a2,...at1,i=1t1ai}.

Proof:

We show that N(t,n)ρ(t,n). Consider an arbitrary coloring of the set [ρ]. Construct a coloring of the edges of K[ρ] such that the color of the edge xy is the color of |xy|[ρ]. Then, for some color c we can find Kc[t]. Then, let V(Kc[t])={v1,v2,...vt}. where vi<vi+1.

consider the set V={vi+1vi}, then each vV has color c. but vV=vtv1. Which is an edge in Kc[t], and therefore also has color c. Hence V{vV} produces the desired set.

Erdos Discrepancy Problem, Van-Der Warden Theorem

It seems that Hilbert spaces are generalizations of Finite dimensional Vector spaces into infinite dimensional ones while preserving some properties. For whatever definition of 1, The unit sphere in a Hilbert space is the set of all infinite dimensional vectors, whose norm/modulus is 1. Tao recently proved that for any arbitrary point on the unit sphere of a Hilbert space, There must subsequence obtained by choosing indices from some homogenous arithmetic progression d,2d,3d,... such that the partial sums can be made arbitrarily large.

In particular, let <f(1),f(2),.....> be an arbitrary infinite sequence of vectors that lives on the unit sphere. Then, For every C>0 we have a d and k for which |i=0kf(di)|>C.

Erdos particularly conjectured that for f(i){1,1} we have d,k for each integer C such that |i=0kf(di)|>C.

In fact, if we relax and allow for indices not in homogenous AP, but rather in any AP, then the result becomes elementary:

Consider a finite set of vectors on the unit sphere Vn={v1,v2,..vn: |vi|=1}. Construct an arbitrary infinite sequence F=<f(1),f(2),....> where f(i)Vn . We want to know if for every Integer C, does there exist an arithmetic progression (defined by some triple (t,d,k) integers a for the base point ,d for the common difference, k for the number of terms) A={t+(i1)d | 1ik} such that |aAf(a)|>C?

Indeed, color the index x of F ci if and only if f(x)=vi

Van-der-warden Theorem :

n,kN W(n,k) so that if [W]={1,2,...,W} is colored by an nset, we have a monochromatic arithmetic progression of length k. ie, there exists a subset A={t+(i1)d | 1ik} whose all elements are colored with a color c.

Indeed, The wan-der Warden Theorem implies that aA f(a)=v for some vVn (because the color of an index co-responds to a unique vector in our coloring of F).

hence |aAf(a)|=|kv|=k|v|=k. In particular, it is sufficient to set k=C+1.

From now on, an arithmetic progression a+rd,a+(r+1)d,..,a+(k)d will be denoted by a+[r,k]d.

define a fan of radius k, degree d, focused at a, to be the dtuple F=<a+[0,k]rj>, for 1jd.

The arithmetic progression a+[1,k]rj is the jth Spoke of the fan F.

The defined fan F is called polychromatic each of its $d $ spokes are monochromatic AP’s (of length  k) for different colors c1,c2,..cd and its focus a is colored c=c1,c2,..cd.

The x -shift of a fan F is the d-tuple <x+a+[0,k]rj>. Suppose for the common difference D, we have fully disjoint series of shifted fans F1,F1+D,F1+2D,....F1+kD (no two fans have even a single common point). Moreover suppose each fan in the series is polychromatic, and has the exact same coloring pattern! (the picture below should illustrate what we mean).

(indeed the picture should look like the exact same, EXACTLY SAME colored fan, shifted k times in such a way that the base point’s form a k-length AP)

Then the series of fans can be written as 0D+F, 1D+F, 2D+F, ..., kD+F. (The entirety of each of these fans live in completely disjoint blocks of N).

Now, for a particular j, select the kth element of the jth spoke of the first fan, 0D+F, the (k1)th element of the jth spoke of the second fan 1D+F and so on.

in particular, we have the series a+krj, a+D+(k1)rj, a+2D+(k2)rj, ..., a+kD+(kk)rj

indeed, the above series is an arithmetic progression, (a+krj)+[0,k](Drj) for each 1jd. We will show that these AP’s could be the spokes of a new fan focused at a+kD. ineed, all of our progressions are of the form (a+krj)+I(Drj). where I goes from 0 to k.

Write I=Ik. then all our progressions are of the form a+kD+[0,k](rjD). Indeed each of these d progressions could be focused as spokes at a+kD. but notice that even the basepoints of all our inital fans could also be focused at a+kD! because our basepoints are of the form a+kD+[0,k](D). Indeed each of these spokes are monochromatic, and are of different color. even the basepoint is of a different color because each of our shifted fans is polychromatic.

Untitled

Therefore the fan F=<a+kD+[0,k]rj> where r0=D and rj=(rjD) for 1jd. Therefore, F is a “weakly” polychromatic fan of radius k, focused at a+kD, with degree d+1. so either F is polychromatic, or F has a monochromatic k+2 length AP.

Call the above argument the fan lemma.

But where are we going to find such shifted fans?

recall the van-der warden number W(n,k). indeed, W(n,1) and W(n,2) exist. (Any 1 number is a monochromatic AP of length 1, by PHP, W(n,2)=n+1. suppose for k1 W(n,k1) exists for all n.

In particular, we will show that for each d=1 to n, there exists M(d)N such that any ncoloring of [M(d)] contains a k term monochromatic AP, or a polychromatic fan of degree d, and radius k1, at some focus.

for d=1, notice that an interval [W(n,k1)] contains a monochromatic AP of length (k1).

call it let the common difference (which itself has an upper bound ofc) be T for this ap, a+[0,k2]T. Then, join in the term a+(k1)T to this ap, this either has the same color as the rest of the progression (giving a monochromatic k term AP) or a polychromatic fan of degree 1, focused at a+(k1)T.

suppose for some d<n, there exists M(d)N such that any ncoloring of [M(d)] contains a k term monochromatic AP, or a polychromatic fan of degree d, and radius k1, at some focus.

Now, The number of different coloring patterns an [M(d)] block due to an nset is nM(d).

denote each of these coloring patterns themselves by new colors. (let each of the nM(d) coloring patterns be mapped to a unique NEW color).

Then, by imagining each [M(d)] length block be indexed b it’s first element, club the entire block together, fuzzing it to its new color).

then consider W(nM,k1) blocks. then, we have a monochromatic “block” AP of length (k1). if we find a k length monochromatic AP in any 1 block, we are done. so suppose all blocks have a polychromatic fan of degree d, and radius k1, at some focus.

Since we have a monochromatic “block” AP of length k1, EACH fan in the block has the exact same coloring pattern!!!! (Since the entirety of each block has the same coloring pattern!!)

Therefore, by the fan lemma, we either have a polychromatic fan of degree d+1, and radius k1, or a monochromatic k-length AP. In the latter case, our induction (main) is closed. In general our inner Induction is now closed.

In the former case, let d=n then, if we have a polychromatic fan of degree n and radius k1, then each of the n spokes are assigned a different color, so the focus CANNOT be a different color from each of the spokes, so we have a contradiction. hence, a k -length AP.

Probabilistic Method, Lower Bound for Ramsey Type numbers.

we would like a lower bound for R(n,n) for example. We use the crude-union bound. the probability that there exists a monochromatic K[n] in K[T] is less than or equal to (Tn)21(n2).

so it’s okay to set (Tn)21(n2)<1. even the largest T which satisfies the given inequality is strictly smaller than R(n,n). using (Tn)<(Te/n)n and simplifying we get the following result.

T<n2n2e221n

so, in fact,

R(n,n)n2n2e221n

for large,n noting that R is an integer, we have

R(n,n)>n2n2e2

Path Number:

define P(m,n)=R(P[m],K[n]) . that is the smallest number R for which a red-blue coloring of the edges of K[R] either contains a red P[m] or a blue K[n]. Note, that path length is usually measured by the number of edges, but here m denotes the number of vertices in the path.

we claim that P(m+1,n+1)P(m+1,n)+P(m,n+1)=T.

construct a red-blue coloring of K[T]. the degree of any vertex is P(m+1,n)+P(m,n+1)1. suppose there exists v such that #r(v)P(m,n+1)

indeed, if we have a blue K[n+1] , we are done. if we have a red P[m], join to v by red edge. and we are done.

Else, all vertices have #r(v)<P(m,n+1). hence #b(v)>P(m+1,n)1. So indeed, #b(v)P(m+1,n).

if we have a red P[m+1], we are done. if we have a blue K[n], v is adjacent to K[n] via all blue edges, hence, we are done.

notice that given P(m,2)=m,P(n,2)=n, we can use a double induction (using the above inequality) to show that P(m,n)(m1)(n1)+1.

we claim that P(m,n)=(m1)(n1)+1.

suppose P(m,n)(m1)(n1). This will act as a base case for our inductive descent into absurdity.

we will show that if r<min((m1)(n2)),((m2,n1)) , P(m,n)(m1)(n1)r implies P(m,n)(m1)(n1)r1. that is we can safely delete a vertex.

let T=(m1)(n1)r. construct a red-blue coloring of K[T]. indeed, suppose P(m,n)(m1)(n1)r.

given that r<min((m1)(n2)),((m2,n1)), if we find a red , the remaining vertices are (m1)(n2)r in number, which is greater than zero. So delete one vertex from this. Similarly, if we find a blue K[n], the remaining vertices are (m2)(n1)r in number, which is greater than zero, so we can delete 1 vertex from this.

Hence, the induction is closed reaching r=min((m1)(n2)),((m2,n1)).

so suppose m<n. then, r=(m2)(n1).

indeed, it must be that P(m,n)(m1)(n1)(m2)(n1). Hence, P(m,n)n1. Color all edges of K[n1] blue. Then, we neither have a blue K[n] nor a red P[m].

Similarly, let mn. Then, r=(m1)(n2). we get P(m,n)m1. color all edges of K[m1] red. we neither have a blue K[n] nor a red P[m].

The thing is, our induction step is correct. Therefore, the base case must be wrong. Hence P(m,n)>(m1)(n1). Arriving at the desired result.

Define P(a1,a2,...an)=R(P[a1],P[a2],...,P[an]).

Now, notice that P(a1,a2,...an)P(a1,P(a2,..an))=(a11)(P(a2,..an)1)+1.

Applying this recursively, we get that P(a1,a2,...an)i=1n(ai1)+1. Setting each ai=a, we obtain the desired result.

AP path number Lemma

let V=v1,v2,...vN be a subset of the integers, written in increasing fashion. if the edges of complete graph on V as the vertex set, is colored such that vivj|vjvi|, then if we have a monochromatic, k-path, we have a k-length AP in V.

Because we have the following series of equalities |u2u1|=|u3u2|....|ukuk1|=d,

suppose, ui>ui1. then |ui+1ui|=uiui1. now suppose ui+1<ui. then, uiui+1=uiui1. Hence, ui+1=ui1, which is a contradiction, (all of our vertices are unique numbers). hence, our path has an entire sequence of increasing vertices. (up to a reversal of the path).

Therefore, we have an increasing sequence of numbers u1<u2<..<uk and ui+1ui=d

(is this an if and only if condition!!!!????) The answer is YES.

Now, let A={a1<a2,....} be an infinite subset of N. (which is normalized such that a1=1) let a finite subset of A be denoted by A.

then, define the color-density of A to be the number of absolute differences in A. (denoted by γ(A)). That is, γ(A)=|{ |ajai| :aj,aiA}|.

Now, if |A|ϕ(γ(A),k), then A contains a klength arithmetic progression. (by AP path number lemma).

now, define A(N)=A  {1,2,...N}.

Then, The density sequence of A is dN=|A(N)|/N. hence, if for each N, if |A(N)|ϕ(γ(A(N)),f(N)), then A(N) contains at least a f(N) length AP.

Moreover, if f(N) is increasing (however slow), and unbounded, then A contains arbitrarily long AP’s.

In this case, we have the following term-wise lower bound on the natural density sequence of A.

dN(A)ϕ(γ(A(N)),f(N))N

conversely, if for some infinite set AN, eventually, the density sequence dN(A) follows the (term wise) the above upper bound, then it must contain arbitrarily long arithmetic progressions (for increasing and unbounded f(N).)

The above inequality talks about the sufficiency for the density for our chosen set in some sense .

indeed,

|A(N)|ϕ(γ(A(N)),f(N))

Hence, by allowing f(N) to be a horrendously slow growing (yet unbounded) function, and for good upper bounds on γ it should be possible to make A sparse. How sparse? that’s for another day. (of course f(N) has to be eventually floored for ϕ, because he only accepts integer inputs).

Essentially, Szemeridi’s theorem could be proven if there exists increasing and unbounded f(n) so that g(n)ϕ(γ(A(n)),f(n))/n is decreasing. But for our crude upper bound on $\phi $ given below, we give a slick proof that since f(n) is unbounded, not only is g (non decreasing), but also unbounded (curtsey of @Steen82 from stack exchange)

ϕ(γ(A(n)),f(n))n(f(n)1)n1+1n=g(n)

since f(n) is unbounded and increasing, there must be a k such that f(k)3. hence, f(n+k)3, for all n. hence, we have the following inequality:

g(n+k)(f(n+k)1)n+k1+1n+k2n+k1+1n+k

So we need better upper bounds on ϕ(n,k).

I guess, the better idea is to first get good bounds on γ(A(n)). in particular, for a fixed |A(n)| , what's the LARGEST γ(A(n)) could in induce?

In other words, if d(n) denotes the fraction of points we could pick in the inteval [n], how could we pick it to maximize γ for that interval?

In even more different words, what is a decent relationship between γ(A(n)). and |A(n)| ?

The other Erdos-Gallai Theorem:

Proposition: Suppose we have a connected graph G[n] on n vertices. let ω(G) denote the minimum degree of all verticles of G. Wlog suppose 2w(G)<n1. Then, there exists a path on 2w(G)+1 vertices in G.

Proof: supppose the longest path in G is P=v1,v2,...vm. ( m<n , because m=n is trivial) Consider the induced subgraph of G induced by v1,v2,...vm. call it G(P). we claim that G(P) does not have a cycle with m edges (notice that the cycle with m edges in G(P) will contain all v1,v2,...,vm), Because if it did have one, since m<n, there must be a vertex not in G(P) which is connected to the cycle in G(P). so, we could cutoff the edge of the cycle at the point where the external vertex joins it, and create a larger path. (see picture below) Resulting in a contradiction.

![Untitled](/img/user/Support/Figures/Untitled 1.png)

Now, also notice that in G, all the neighbors of v1 and vm must be among v1,v2,...vm. because if even one had an “external” neighbor, we could increase the path length by 1, giving a contradiction.

In particular, both vm and v1 must have at least ω(G) neighbors in G(P).

Suppose vi was a neighbor of vm. then we claim that vi+1 cannot be a neighbor of v1. else, we have the following cycle with m edges: v1,v2,..,vi,vm,vm1,...vi+1,v1. Which is disallowed as stated earlier.

![Untitled](/img/user/Support/Figures/Untitled 2.png)

Hence, for every neighbor of vm in P, there is a non neighbor of v1 in P. but there are at least ω(G) neighbors of vm in P. Therefore, there are at least ω(G) non-neighbors of v1 in P. hence including vm, there are at least 2ω(G)+1 vertices in P.

We could restate the proposition in the following way:

Lemma 1: If G[n] is a connected graph with minimum degree ω(G), then there exists a path of length (number of edges) min(2ω(G),n1).

next define the average degree of a graph G[n] , G[n]|=2|E(G)|/n.

Lemma 2: Now, we claim that if G is not connected, there exists a component H of G such that H|G|.

Since there are no edges between (connected) components of G, let Hi for i=1 to p be all the components of G. Now suppose that for each i, Hi|<G|. that is, 2|E(Hi)| /hi<G|. (Where hi is the order of Hi). Hence, we have the following inequality:

2i=1p|E(Hi)|<G|i=1phi

Therefore, upon rearrangement, and noting that i=1p|E(Hi)|=|E(G)|, and i=1phi=n, we get the contradiction G|<G|.

Erdos-Gallai Theorem:

Any graph G, must contain a path of length of at least G|.

Proof: we induct on the order n, of G. Suppose the claim is true for all graphs of order k, k<n.

consider any graph G[n]. Suppose G is connected. Further, suppose there exists a vertex v, such that d(v)12G|. Notice that G|=( 2(d(v))+(n1)Gv| )/n. Hence, we have:

nG|(n1)Gv| = 2d(v)G|Gv|G|

Hence, by the induction hypothesis, Gv must contain a path of length at least Gv|G|.

Now, Suppose G is connected, and all vertices have d(v)>12G|. then the minimum degree of the graph ω(G)>12G| . Hence, it must contain a path of length min(2ω(G),n1). But G|<2ω(G). and G|n1 (equality holding for complete graphs) hence, G must contain a path of length G| .

Finally let G be disconnected. Then, there exists a (connected) component H of G, such that H|G|. (see lemma 2) but since the order of H is strictly smaller than n, by the induction hypothesis, H contains a path of length at least H|G|.

The original Erdos-Gallai Theorem was stated this way:

If the average degree of a graph G is greater than t2, then there exists a path on t vertices in G.

We know that we will have a path of length at least G|>t2. Hence, we have a path of length at least t1 edges, or t vertices.

The OG upper-bound:

ϕ(n,t)nt

Proof: construct an arbitrary coloring of the edges of K[nt] with n colors.

Notice that there is a color class of size (number of edges) at least t(nt1)/2. Consider a subgraph which contains all vertices, and only the same-colored t(nt1)/2 edges. The average degree of this graph is t1n. Hence By the Erdos-Gallai theorem, this subgraph contains a t vertex path. (which is monochromatic).