The program BCKInput returning the input.
We define a subprogram BCKInput taking the current position A, its sign s, and the move i from the player. BCKInput computes:
1. the next formula Anext.
2. its sign signnext.
3. a label msg for the edge in the tree form of the game.
signnext is equal to s, unless we choose an assumption of A, in which case signnext = Dual of s.
If the formula is ∃x.A,the next formula is some instance A[i] of ∃x.A.
In[327]:=
If the formula is ∀x.A,the next formula is some instance A[i] of ∀x.A.
In[328]:=
If the formula is A∨B,the the next formula is either A or B.
In[329]:=
If the formula is A∧B,the the next formula is either A or B.
In[330]:=
If the formula is A⇒B,the the next formula A→B, if it is A→B, the next formula is either A or B, and in the first case the sign changes.
In[331]:=
In[332]:=
If the formula is ¬A, the next formula is A, and the sign changes.
In[333]:=
If the formula is T, there is no next formula.
In[334]:=
If the formula is F, there is no next formula.
In[335]:=
If the formula is atomic ≠T,F, if A is true, the next player moves T, otherwise he moves F.
In[336]:=
Created by Mathematica (October 17, 2006)