With regard to Genesis as Anti-Pagan Polemic: Genesis 1 shows great familiarity with Ancient Near East culture and cosmologies, and, in fact, is an anti-pagan polemic that directly counters, repudiates, and discredits the pagan cosmologies of the time that ancient Israel was surrounded by.
Polemic (type of argument in rhetoric) = "an aggressive attack on or refutation of the opinions or principles of another."
Here are a few examples of the polemical nature of Genesis:
(1) In some Ancient Near East (ANE) cosmogonies, dragons (Heb. tnn) are rivals that the Canaanite gods have to fight against and conquer. In Genesis 1:21, the "sea monsters" are just another form of aquatic life created by God.
(2) In ANE cosmogonies, the gods struggle to separate the upper waters from the lower waters. In Genesis 1:6-10, God separates the waters by divine fiat and his spoken word alone.
(3) Similarly, throughout Genesis 1, creation is accomplished through the spoken word of God, and not through any magical utterance or incantations like we see in Egyptian creation accounts.
(4) One of the clearest evidences that Genesis 1 is an anti-pagan polemic is Day 4. Genesis 1 has a chiastic ("mirror-image") literary structure that draws attention to Day 4 (as the central pivot point in the creation account). It is also discussed in greater detail than the previous days. Bible scholars think the most likely reason for its central, highlighted placement in the creation account is the central place of importance that the sun, moon, and stars occupied in pagan cosmologies. In ANE cosmologies, the sun, moon, and stars are identified with important gods and goddesses. But Genesis 1 hands the most colossal "dis" to the ANE pagan cosmologies and polytheistic religions of the time. You see, not only does Genesis 1 present the sun, moon, and stars as created things instead of deities, but it "disses" them by not even dignifying them with a name (even though there are Hebrew words for the sun and moon). In the ultimate, in-your-face slam to the most important, highly regarded parts of ANE pagan cosmology and religion, Genesis simply refers to the sun and moon as the nameless "greater" and "lesser" light.
(5) Finally, in ANE cosmogonies, humanity is created as a total afterthought and the gods create humans so that the humans can do work and provide food and provisions for the gods. In a complete repudiation of this idea, Genesis 1 shows that humans are not an after thought, but are the goal and pinnacle of creation, created in God's image, and instead of providing food for the "gods," the true God cares for and provides food and other provisions for humanity. In fact, days 1-5 focus on God's creative work of organizing and ordering the cosmos to provide for the needs of his image-bearers (humans).
*Anti-pagan polemics are a frequent theme throughout the Bible:
(1) Each of the Exodus plagues was an attack on different Egyptian gods, showing how powerless they are compared to the one true God and Lord (Yahweh) of Israel.
(2) There's Elijah's well-known mockery and challenge show-down to the priests of Baal, where God demonstrates his power over the pagan god Baal.
(3) It's *possible* (although not entirely certain) that the marching around the walls of Jericho might have been a mockery of a pagan ceremony that ended in enthronement of the moon god, but here instead of exaltation and lifting up ends with the falling-down of the "moon city" (Jericho's) walls.
(4) Many other examples....
***And then we have the ULTIMATE POLEMIC: THE CROSS. Jews demand a "sign" and the Greeks "wisdom" (and also power and beauty much like today's society). But instead of a powerful god like Zeus or Atlas, or the beautiful Aphrodite, or the wisdom of Athena, the one true God confounds them all with "foolishness" that is wiser and more powerful than all the pagan gods combined: a "crucified God" exalted on an instrument of death, dishonor, and shame. For the cross of Christ is "foolishness" to those who are perishing but the power of God for those who are being saved (1 Corinthians 1).
Some thoughts about Genesis 1-3 (stolen from one of my other posts):
• Genesis 1 is *exalted prose* (or, *elevated narrative*) (It has poetic and hymnic elements, but yet it is not a poem or hymn, and also contains prose).
• Genesis 1 presents ancient cosmology.
• Genesis 1 has far more in common with Ancient Near East cosmologies of ancient Egypt, Babylon, Sumerians, Akkadians, etc. then either has with modern cosmology or the modern world, itself.
• This does NOT mean Genesis 1 is derived from any of those--and, indeed, although liberal scholars used to argue that Genesis 1 came from the Babylonian Enuma Elish, that has been thoroughly discredited. Instead, it's more accurate to say that Genesis 1 shows knowledge of Ancient Near East culture and their pagan cosmologies, but is dependent on no specific one, similar to how most people in our culture know of Darwin's book the Origin of Species and the ideas in that book, even though most have never actually read it.
• In fact, not only does Genesis 1 show great familiarity with Ancient Near East cultural ideas and pagan cosmologies, Genesis is an anti pagan cosmology polemic that directly repudiates and discredits those pagan cosmologies.
• There is also evidence that Genesis 1-2:3 presents the creation of the cosmos in the 7-day framework of a temple inauguration ceremony. The evidence for this is strengthened when we expand and look at Genesis 1-3 together. The garden of Eden account makes numerous connections with the tabernacle/temple, giving Adam a priestly/Levitical type function, and relating Eden to the "Holy of Hollies."
• Some think the literary structure of Genesis 1-2:3 with it's chiastic/palistrophic structure, and repeated, stylized use of heptads (i.e., the sacred 7, and multiples of the number 7), as well as contextual elements in the passage itself---some think Genesis 1-2:3 could have also had a liturgical use in ancient Israel; a sort of "creation/temple-liturgy."
*I remember the first commentary on Genesis I read many moons ago. I was so excited because I knew that finally I had something that was going to answer all my questions about the creation-evolution debate. I was so disappointed because it didn't talk about the creation-evolution debate at all. This was my first taste of what it means when Bible scholars say the Genesis creation account is not a scientific account.
Creation-as-Temple-Building-and-Work-as-Liturgy-in-Genesis-1-31.pdf
God Dwells Among Us: Expanding Eden to the Ends of the Earth
The garden of Eden as a primordial temple or sacred space for humankind
Patterns, Parallels, and Poetics in Genesis 1 pdf