Skip to content

Commit

Permalink
Fix a sample proof, improve another.
Browse files Browse the repository at this point in the history
  • Loading branch information
crisperdue committed Feb 12, 2016
1 parent a5ce9bc commit 6acb8ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion introduction.html
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ <h3>Building a simple proof</h3>
// Modus ponens
var mp1 = rules.assume('p');
var mp2 = rules.assume('p => q');
var mp3 = rules.forwardChain(mp1, mp2);
var mp3 = rules.modusPonens(mp1, mp2);
var mp4 = rules.asImplication(mp3);
Toy.renderProof(mp4, $('#modusPonens'));

Expand Down
8 changes: 5 additions & 3 deletions js/sample-proofs.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,11 @@ $(function() {

forwardChain: {
args: function() {
var step1 = Toy.rules.assume('p x & (p x => q x)');
var step2 = Toy.rules.tautology('a & (a => b) => b');
return [step1, step2];
var step1 = Toy.rules.assume('p x');
var step2 = Toy.rules.assume('p x => q x');
var step3 = Toy.rules.makeConjunction(step1, step2);
var step4 = Toy.rules.tautology('a & (a => b) => b');
return [step3, step4];
},
level: 1
},
Expand Down

0 comments on commit 6acb8ed

Please sign in to comment.