Let $K$ be a number field of degree $n$ (that is $[K:\mathbb{Q}]=n$) with ring of integers $\mathcal{O}_K$. I know that there exists algorithms to find $\mathcal{O}_K$ and hence determine a $\mathbb{Z}$-basis for it. For an explicit number field one can find thus a $\mathbb{Z}$-basis for it's ring of integers by explicit calculation. Suppose you start the other way around, that you have some set of elements $\{x_i\}_{i\in \{1,2,\ldots,n\}}$ of $K$ for which you think it's a $\mathbb{Z}$-basis for $\mathcal{O}_K$. How do you proceed then?
I know that their is a lot of linear algebra for number fields, so probably that can be put to use. But it makes often use of embeddings of $K$ into $\mathbb{C}$ (or $\mathbb{R}$), which can be tricky to work with. I am interested in general theorems for proving that some set is a $\mathbb{Z}$-basis, but any help is appreciated.