let f be PartFunc of REAL,REAL; :: thesis: for I being non empty Interval
for X being Subset of REAL st I c= X holds
( f is_differentiable_on_interval I iff f | X is_differentiable_on_interval I )

let I be non empty Interval; :: thesis: for X being Subset of REAL st I c= X holds
( f is_differentiable_on_interval I iff f | X is_differentiable_on_interval I )

let X be Subset of REAL; :: thesis: ( I c= X implies ( f is_differentiable_on_interval I iff f | X is_differentiable_on_interval I ) )
assume A1: I c= X ; :: thesis: ( f is_differentiable_on_interval I iff f | X is_differentiable_on_interval I )
reconsider J = ].(inf I),(sup I).[ as open Subset of REAL by FDIFF_12:2;
J c= I by FDIFF_12:2;
then A2: J c= X by A1;
hereby :: thesis: ( f | X is_differentiable_on_interval I implies f is_differentiable_on_interval I ) end;
assume f | X is_differentiable_on_interval I ; :: thesis: f is_differentiable_on_interval I
then A9: ( I c= dom (f | X) & inf I < sup I & ( inf I in I implies f | X is_right_differentiable_in lower_bound I ) & ( sup I in I implies f | X is_left_differentiable_in upper_bound I ) & f | X is_differentiable_on ].(inf I),(sup I).[ ) by FDIFF_12:def 1;
dom (f | X) = (dom f) /\ X by RELAT_1:61;
then A10: ( I c= dom f & I c= X ) by A9, XBOOLE_1:18;
A11: now :: thesis: ( inf I in I implies f is_right_differentiable_in lower_bound I )end;
A13: now :: thesis: ( sup I in I implies f is_left_differentiable_in upper_bound I )end;
f is_differentiable_on ].(inf I),(sup I).[ by A9, A2, Th14;
hence f is_differentiable_on_interval I by A9, A10, A11, A13, FDIFF_12:def 1; :: thesis: verum