1. I have as many books as you.

2. I have as many books as you do.
3. I have as many books as you have.
4. I have as many books as you have books.
5. I have as many books as you have them.
6. I have many books. You have many books.
=> I have as many books as you have.

[I have written down possible sentences. Which ones are used? Did #1 come from #6?]

1-3 are fine, but 4 and 5 aren't.

Yes, #1 comes from #6.

since "many" is vague and unspecified, #6 in no way implies #1. For example, #6 might be:

I have 100 books.
You have 1000 books.

We both have "many" books, but #1 is clearly false.

Still, in the context of these sentences, maybe #6 means #1, since we seem to be talking about equal amounts of books.

Among the sentences you provided, the most commonly used ones are:

1. I have as many books as you.
2. I have as many books as you do.
3. I have as many books as you have.
6. I have many books. You have many books.

Sentence #1 is a simplified version of sentence #6, as it omits the explicit mention of "have." However, it conveys the same meaning, indicating that the speaker has an equal number of books as the person they are speaking to.

Out of the six sentences you provided, sentences 2, 3, 4, and 6 are grammatically correct and commonly used. These sentences convey the same meaning that you have the same number of books as the person you are comparing yourself to.

Sentence 1 is not commonly used in this context. It is grammatically correct, but it would be more common to specify what is being compared by using "do" in the sentence, as in sentence 2.

Sentence 5, "I have as many books as you have them," is not grammatically correct. The pronoun "them" is redundant in this sentence and should be omitted.

Sentence 6 is grammatically correct, but it does not imply a direct comparison of the number of books you and the other person have. It simply states that you have many books and the other person also has many books. It doesn't explicitly state that the numbers are the same.

So, to answer your question, sentence 1 did not come directly from sentence 6, but rather represents a different way of expressing the same idea. The most common and concise way to convey the comparison of the number of books is through sentence 3: "I have as many books as you have."