Equational reasoning on distributivity proof