-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made subproofs nested proof objects, changed structure of unique inve…
…rses proof, added and elimination
- Loading branch information
Showing
7 changed files
with
94 additions
and
58 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from enum import unique | ||
from proof import * | ||
from element import * | ||
from group import * | ||
from integer import * | ||
from logicObjects import * | ||
|
||
|
||
G = group('G','*') | ||
inversePropertyOne = Eq( Mult(['a','c']) , Mult([G.identity_identifier]) , G) | ||
inversePropertyTwo = Eq( Mult(['a','d']) , Mult([G.identity_identifier]) , G) | ||
uniqueInverse = Implies( And(inversePropertyOne,inversePropertyTwo) , Eq( Mult(['d']), Mult(['c']), G) ) | ||
p = Proof('Unique Inverses', assumption = None, goal=uniqueInverse) | ||
p.introGroup(G) | ||
p.introElement(G,'a') | ||
p.introElement(G,'c') | ||
p.introElement(G,'d') | ||
p2 = p.introSubproof(And(inversePropertyOne,inversePropertyTwo)) | ||
p2.accessAssumption() | ||
p2.andElim(4,1) | ||
p2.andElim(4,2) | ||
p2.rightSidesEq(5,6) | ||
p2.cancelLeft(7, ['a']) | ||
p2.switchSidesOfEqual(8) | ||
p.concludeSubproof(9) | ||
p.qed(15) |