In the last four months, I have been working on a project with a friend. After the completion of writing part of paper, I started searching for conferences and found that my friend had already submitted a previous/incomplete version of the paper on ArXiv.
Now my friend claims ownership of the idea and copyright as it is now already published in a pre-print. At present we both have the completed paper, codes and results. In reality, I did the most of the analysis in the project although the idea came out of discussion between us.
My friend wants to publish it on their own without giving me any credit. I even agreed that they can be the first author, and I will be second, but they keep on insisting that they will not include me.
Even if I submit this in a conference, I am concerned that my submission will be rejected as the other author already has a proof of that work. I also hold the proof that I did the writing and computation part because most of the time I emailed them these results, but due to his cheating, I have no way to prove that I did the major work in this project. Any suggestions will be very helpful on how to tackle this problem.
Does a pre-print of the paper (containing the idea and some incomplete results) in their name, gives them an advantage if we both try to publish it?