logo

Theorems (or conjectures) for the theory of proveit.logic.sets.functions.images

In [1]:
import proveit
# Prepare this notebook for defining the theorems of a theory:
%theorems_notebook # Keep this at the top following 'import proveit'.

from proveit import f, A, B, S
from proveit.logic import Forall, SubsetEq, Functions, Image
In [2]:
%begin theorems
Defining theorems for theory 'proveit.logic.sets.functions.images'
Subsequent end-of-cell assignments will define theorems
'%end theorems' will finalize the definitions
In [3]:
function_image_is_within_codomain = Forall(
    (A, B, S), Forall(
        f, SubsetEq(Image(f, S), B),
        domain=Functions(A, B)),
    condition=SubsetEq(S, A))
function_image_is_within_codomain (conjecture without proof):

In [4]:
%end theorems
These theorems may now be imported from the theory package: proveit.logic.sets.functions.images