let A be closed-interval Subset of REAL ; :: thesis: for f being PartFunc of A,REAL
for r being Real holds
( ( f is total & rng f = {r} ) iff f = r (#) (chi A,A) )
let f be PartFunc of A,REAL ; :: thesis: for r being Real holds
( ( f is total & rng f = {r} ) iff f = r (#) (chi A,A) )
let r be Real; :: thesis: ( ( f is total & rng f = {r} ) iff f = r (#) (chi A,A) )
A1:
( f is total & rng f = {r} implies f = r (#) (chi A,A) )
proof
assume A2:
f is
total
;
:: thesis: ( not rng f = {r} or f = r (#) (chi A,A) )
assume A3:
rng f = {r}
;
:: thesis: f = r (#) (chi A,A)
reconsider g =
r (#) (chi A,A) as
PartFunc of
A,
REAL ;
A4:
chi A,
A is
total
by RFUNCT_1:78;
A5:
dom g =
dom (chi A,A)
by VALUED_1:def 5
.=
A
by A4, PARTFUN1:def 4
;
then A6:
dom f = dom g
by A2, PARTFUN1:def 4;
for
x being
Element of
A st
x in dom f holds
f /. x = g /. x
hence
f = r (#) (chi A,A)
by A6, PARTFUN2:3;
:: thesis: verum
end;
( f = r (#) (chi A,A) implies ( f is total & rng f = {r} ) )
hence
( ( f is total & rng f = {r} ) iff f = r (#) (chi A,A) )
by A1; :: thesis: verum