You may perhaps find what you require at Practical Foundations: VIII Algebra with dependent types or my home page.
Alternatively, you can search this site using Google: