In a blender or nut chopper, blend garlic, salt, peanuts, chilies, sugar, and shrimp into a paste. Transfer to a large bowl and mix in lime juice and fish sauce. Add tomatoes and beans to bowl and mix lightly.
Peel and coarsely grate papaya, discarding seeds and inner membrane. There should be 4 to 6 cups.
Add papaya to bowl and lightly but thoroughly toss together. Taste for seasoning. Sprinkle with peanuts and serve.
Notes
This recipe has been altered. The original can be found here: https://cooking.nytimes.com/recipes/1012589-som-tum-green-papaya-salad