he,
i don't know about diatematious earth but my reason for adding lime or oyster shell is to prevent contams. The best pH of a substrate is 5.5 to 6.5, so you don't want to use lime in substrates. Use gypsum only, its not for adjusting pH. Gypsum is for adding calcium and sulfur, both aid in fruit-body development, and both are usually lacking in most substrates.
To prevent contams ad lime, soda or oyster shell to your casing layer the ph of 8 will help prevent most spores from germanating.
hope this helps
Disclaimer:
All Expandeum's notes, messages, postings, ideas, suggestions, concepts or other material submitted via this forum and or website are completely fictional and are not in any way based on real live experience.