script.kps 777 Bytes
Newer Older
Sarah Grebing's avatar
interim  
Sarah Grebing committed
1 2 3 4 5 6 7 8
script test(){
    impRight;
    andLeft;
    notLeft;
    repeat { andLeft; }
    exLeft;
    andLeft;
    eqSymm formula = `agatha = butler`;
9
    nnf_imp2or formula=`\forall S w6;(hates(agatha,w6) -> hates(butler,w6))`;
Sarah Grebing's avatar
interim  
Sarah Grebing committed
10 11 12

}

Alexander Weigl's avatar
Alexander Weigl committed
13
script SolveAgathaRiddle_1() {
Alexander Weigl's avatar
Alexander Weigl committed
14 15 16
    impRight;
    andLeft;
    notLeft;
17 18 19 20 21 22 23 24 25 26 27
    repeat { andLeft; }
    exLeft;
    andLeft;
    eqSymm formula = `agatha = butler`;
    auto;
}

script SolveAgathaRiddle_2() {
    impRight;
    andLeft;
    notLeft;
Alexander Weigl's avatar
Alexander Weigl committed
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43

    andLeft;
    andLeft;
    andLeft;
    andLeft;
    andLeft;
    andLeft;
    andLeft;
    andLeft;
    andLeft;
    andLeft;
    andLeft;

    exLeft;
    andLeft;
    eqSymm formula = `agatha = butler`;
44
    nnf_imp2or formula=`\forall S w6;(hates(agatha,w6) -> hates(butler,w6))`;
Alexander Weigl's avatar
Alexander Weigl committed
45
    auto;
Alexander Weigl's avatar
Alexander Weigl committed
46 47
}