LLMs model how humans induce logically structured rules