No, there is no problem. This rule exists in Iran, but it is just for Iranians. The foreign tourists are not asked about what kind of relationship they have with each other and you can easily travel to Iran without any concern about the marriage proof. You can even reserve a suite for several couples, while the Iranians cannot do that.