The Mathematical Analysis of Logic door