# Prime attribute dependant on another prime attribute allowed under BCNF?

I have been studying DBMS ans I have a question that I got conflicting answers to: Is prime attribute that is dependant on another prime attribute allowed under BCNF?

Meaning P->P.

I know that NP->P is not allowed. and also NP->NP (as it is not 3NF - transitive relation) Thanks.

So, if you have a dependency A → B where both A and B are prime attributes, this dependency violates the Normal Form only if A is not a candidate key, but a part of some candidate key.