logo
In [1]:
import proveit
from proveit.logic import InSet, Equals, Boolean
from proveit import x, y
from proveit.logic.equality import sub_left_side_into
from proveit.logic.sets.enumeration import singleton_def
%proving in_singleton_is_bool
With these allowed/disallowed theorem/theory presumptions (e.g., to avoid circular dependencies), we begin our proof of
in_singleton_is_bool:
(see dependencies)
in_singleton_is_bool may now be readily provable (assuming required theorems are usable).  Simply execute "%qed".
In [2]:
state1 = singleton_def.instantiate({x:x, y:y})
state1:  ⊢  
In [3]:
state2 = InSet(Equals(x,y), Boolean).prove()
state2:  ⊢  
In [4]:
state1.sub_left_side_into(state2).generalize([x,y])
In [5]:
%qed
proveit.logic.sets.enumeration.in_singleton_is_bool has been proven.
Out[5]:
 step typerequirementsstatement
0generalization1  ⊢  
1instantiation2, 3, 4  ⊢  
  : , : , :
2theorem  ⊢  
 proveit.logic.equality.sub_left_side_into
3instantiation5  ⊢  
  : , :
4instantiation6  ⊢  
  : , :
5axiom  ⊢  
 proveit.logic.equality.equality_in_bool
6conjecture  ⊢  
 proveit.logic.sets.enumeration.singleton_def