Algorithmic Inference: from Information Granules to Subtending Functions