A Mechanized Framework for Reasoning on Software Architectures