From a5232f7e5b8f6ca988696f3870f019113edb8d90 Mon Sep 17 00:00:00 2001 From: aarne Date: Mon, 27 Nov 2006 10:54:26 +0000 Subject: part of Logic implemented generically --- examples/logic/LogicEng.gf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 examples/logic/LogicEng.gf (limited to 'examples/logic/LogicEng.gf') diff --git a/examples/logic/LogicEng.gf b/examples/logic/LogicEng.gf new file mode 100644 index 000000000..18f466fa7 --- /dev/null +++ b/examples/logic/LogicEng.gf @@ -0,0 +1,23 @@ +--# -path=.:mathematical:present:resource-1.0/api:prelude + +concrete LogicEng of Logic = LogicI with + (LexTheory = LexTheoryEng), + (Prooftext = ProoftextEng), + (Grammar = GrammarEng), + (Symbolic = SymbolicEng), + (Symbol = SymbolEng), + (Combinators = CombinatorsEng), + (Constructors = ConstructorsEng), + ; + +{- +ImplI Abs Abs (\h -> DisjE Abs Abs Abs (DisjIr Abs Abs (Hypoth Abs h)) +(\x -> Hypoth Abs x) (\y -> Hypoth Abs y)) + +assume that we have a contradiction . by the hypothesis we have a contradiction . +a fortiori we have a contradiction or we have a contradiction . +we have two cases. assume that we have a contradiction . +by the hypothesis we have a contradiction . assume that we have a contradiction . +by the hypothesis we have a contradiction . therefore we have a contradiction . +therefore if we have a contradiction then we have a contradiction . +-} -- cgit v1.2.3