-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from HalflingHelper/iff-precedence
Parser!!!!
- Loading branch information
Showing
6 changed files
with
123 additions
and
49 deletions.
There are no files selected for viewing
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
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,9 @@ | ||
theorem bicond_commute : all P : bool, Q : bool. | ||
if P <=> Q then Q <=> P | ||
proof | ||
arbitrary P : bool, Q : bool | ||
switch P { | ||
case true assume prop_t { . } | ||
case false assume prop_f { . } | ||
} | ||
end |
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,27 @@ | ||
theorem bicond_trans : all P : bool, Q : bool, R : bool. | ||
if (P <=> Q) and (Q <=> R) then P <=> R | ||
proof | ||
arbitrary P : bool, Q : bool, R : bool | ||
switch P { | ||
case true assume prop_t { | ||
switch Q { | ||
case true assume prop_t { | ||
. | ||
} | ||
case false assume prop_f { | ||
. | ||
} | ||
} | ||
} | ||
case false assume prop_f { | ||
switch Q { | ||
case true assume prop_t { | ||
. | ||
} | ||
case false assume prop_f { | ||
. | ||
} | ||
} | ||
} | ||
} | ||
end |