let R be Relation; :: thesis: ( R is locally-confluent iff R commutes-weakly_with R )
hereby :: thesis: ( R commutes-weakly_with R implies R is locally-confluent )
assume A1: R is locally-confluent ; :: thesis: R commutes-weakly_with R
thus R commutes-weakly_with R :: thesis: verum
proof
let a, b, c be object ; :: according to REWRITE1:def 17 :: thesis: ( [a,b] in R & [a,c] in R implies ex d being object st
( R reduces b,d & R reduces c,d ) )

assume ( [a,b] in R & [a,c] in R ) ; :: thesis: ex d being object st
( R reduces b,d & R reduces c,d )

then b,c are_convergent_wrt R by A1;
hence ex d being object st
( R reduces b,d & R reduces c,d ) ; :: thesis: verum
end;
end;
assume A2: for a, b, c being object st [a,b] in R & [a,c] in R holds
ex d being object st
( R reduces b,d & R reduces c,d ) ; :: according to REWRITE1:def 17 :: thesis: R is locally-confluent
let a, b, c be object ; :: according to REWRITE1:def 24 :: thesis: ( [a,b] in R & [a,c] in R implies b,c are_convergent_wrt R )
assume ( [a,b] in R & [a,c] in R ) ; :: thesis: b,c are_convergent_wrt R
hence ex d being object st
( R reduces b,d & R reduces c,d ) by A2; :: according to REWRITE1:def 7 :: thesis: verum