database theory based on Heyting algebra instead of Boolean algebra