-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlcfprop.fsx
More file actions
30 lines (23 loc) · 1.14 KB
/
lcfprop.fsx
File metadata and controls
30 lines (23 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// ========================================================================= //
// Copyright (c) 2003-2007, John Harrison. //
// Copyright (c) 2012 Eric Taucher, Jack Pappas, Anh-Dung Phan //
// (See "LICENSE.txt" for details.) //
// ========================================================================= //
#load "initialization.fsx"
open FSharpx.Books.AutomatedReasoning.fol
open FSharpx.Books.AutomatedReasoning.lcf
open FSharpx.Books.AutomatedReasoning.lcfprop
fsi.AddPrinter sprint_thm
// pg. 488
// ------------------------------------------------------------------------- //
// The examples in the text. //
// ------------------------------------------------------------------------- //
// lcfprop.p001
// Pelletier #16
lcftaut (parse @"(p ==> q) \/ (q ==> p)") ;;
// lcfprop.p002
// Harrison #02 - Equations within equations
lcftaut (parse @"p /\ q <=> ((p <=> q) <=> p \/ q)");;
// lcfprop.p003
// Pelletier #12
lcftaut (parse @"((p <=> q) <=> r) <=> (p <=> (q <=> r))");;