Excellent project and thesis! Although I'm not finished reading it :)
I think there's a minor typo for Lit struct in section 3.3. You define Lit as having a polarity bool. But this is subsequently changed to value in later snippets. Changing it value should fix things.
