Theory N_Relation_Algebras
section ‹N-Relation-Algebras›
theory N_Relation_Algebras
imports Stone_Relation_Algebras.Relation_Algebras N_Omega_Algebras
begin
context bounded_distrib_allegory
begin
subclass lattice_ordered_pre_left_semiring ..
end
text ‹Theorem 37›
sublocale relation_algebra < n_algebra where sup = sup and bot = bot and top = top and inf = inf and n = N and L = top
apply unfold_locales
using N_comp_top comp_inf.semiring.distrib_left inf.sup_monoid.add_commute inf_vector_comp apply simp
apply (metis N_comp compl_sup double_compl mult_assoc mult_right_dist_sup top_mult_top N_comp_N)
apply (metis brouwer.p_antitone inf.sup_monoid.add_commute inf.sup_right_isotone mult_left_isotone p_antitone_sup)
apply simp
using N_vector_top apply force
apply simp
apply (simp add: brouwer.p_antitone_iff top_right_mult_increasing)
apply simp
apply (metis N_comp_top conv_complement_sub double_compl le_supI2 le_iff_sup mult_assoc mult_left_isotone schroeder_3)
by simp