add inverse rule and InitRule

Signed-off-by: xiehuc <xiehuc@gmail.com>