def built_known_values(missing_values,simplices):
    """
    The functions return the not missing simplices and cochains in each dimension


    Parameters
    ----------
    missing_values: list of dictionaries
        List of dictionaries, one per dimension d. The dictionary's keys are the missing d-simplices.
        The dictionary's values are the indexes of the simplices in the boundary
        and Laplacian matrices.

    simplices: list of dictionaries
        List of dictionaries, one per dimension d. The size of the dictionary
        is the number of d-simplices. The dictionary's keys are sets (of size d
        + 1) of the 0-simplices that constitute the d-simplices. The
        dictionary's values are the indexes of the simplices in the boundary
        and Laplacian matrices.


    Returns
    ----------
    known_values: list of dictionaries
        List of dictionaries, one per dimension d. The dictionary's keys are not missing d-simplices.
        The dictionary's values are their cochains.

    """
    max_dim=len(simplices)

    known_values = [dict() for _ in range(max_dim+1)]
    for i in range(max_dim):
        real_simp=list(set(simplices[i].keys())-set(missing_values[i].keys()))
        for index,simplex in enumerate(real_simp):
            dim=len(simplex)
            known_values[i][simplex]=simplices[dim-1][simplex]

    return(known_values)