From 8d6c8929e278d3d3c0acff65a09513cd5e4a345c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20M=C3=A9ric?= Date: Thu, 20 Jul 2023 16:14:25 +0200 Subject: [PATCH] Fix typos --- .../Test_Polymorphic_Classes.thy | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Isabelle_DOF-Unit-Tests/Test_Polymorphic_Classes.thy b/Isabelle_DOF-Unit-Tests/Test_Polymorphic_Classes.thy index 6791f38..8f46155 100644 --- a/Isabelle_DOF-Unit-Tests/Test_Polymorphic_Classes.thy +++ b/Isabelle_DOF-Unit-Tests/Test_Polymorphic_Classes.thy @@ -138,7 +138,7 @@ value*\(concat o concat) ((map o map) a (map c (elaborate3.d @{elaborate3 text\ The term antiquotation is considered a ground term. -Then its type here is \<^typ>\'a::one list\ whith \'a\ a fixed-type variable. +Then its type here is \<^typ>\'a::one list\ with \'a\ a fixed-type variable. So the following definition only works because the parameter of the class is also \'a\.\ declare[[ML_print_depth = 10000]] doc_class 'a elaborate4 = @@ -153,8 +153,8 @@ declare[[ML_print_depth = 20]] text\Bug: As the term antiquotation is considered as a ground term, its type \<^typ>\'a::one list\ conflicts with the type of the attribute \<^typ>\int list\. -To support the instantiataion of the term antiquatation as an \<^typ>\int list\, -the term antiquatation should have the same behavior as a constant definition, +To support the instantiation of the term antiquotation as an \<^typ>\int list\, +the term antiquotation should have the same behavior as a constant definition, which is not the case for now.\ declare[[ML_print_depth = 10000]] doc_class-assert-error elaborate4' = @@ -180,7 +180,7 @@ value*\concat (map a (elaborate2.c @{elaborate2 \test_elaborate2\ The term antiquotation is considered a ground term. -Then its type here is \<^typ>\'a::one list\ whith \'a\ a fixed-type variable. +Then its type here is \<^typ>\'a::one list\ with \'a\ a fixed-type variable. So the following definition only works because the parameter of the class is also \'a\.\ declare[[ML_print_depth = 10000]] doc_class 'a elaborate5 = @@ -196,7 +196,7 @@ declare[[ML_print_depth = 20]] text\Bug: The term antiquotation is considered a ground term. -Then its type here is \<^typ>\'a::one list\ whith \'a\ a fixed-type variable. +Then its type here is \<^typ>\'a::one list\ with \'a\ a fixed-type variable. So it is not compatible with the type of the attribute \<^typ>\'a::numeral list\\ doc_class-assert-error 'a elaborate5' = d :: "'a::numeral list" <= "concat (map a (elaborate2.c @{elaborate2 \test_elaborate2\}))" @@ -220,14 +220,14 @@ text*[test_elaborate3a::"('a::one, int) elaborate3", d = "[@{elaborate2 \t text\ The term antiquotation is considered a ground term. -Then its type here is \<^typ>\'a::one list\ whith \'a\ a fixed-type variable. +Then its type here is \<^typ>\'a::one list\ with \'a\ a fixed-type variable. So the following definition only works because the parameter of the class is also \'a\.\ definition* test_elaborate3_embedding ::"'a::one list" where "test_elaborate3_embedding \ (concat o concat) ((map o map) elaborate1.a (map elaborate2.c (elaborate3.d @{elaborate3 \test_elaborate3a\})))" text\Bug: The term antiquotation is considered a ground term. -Then its type here is \<^typ>\'a::one list\ whith \'a\ a fixed-type variable. +Then its type here is \<^typ>\'a::one list\ with \'a\ a fixed-type variable. So it is not compatible with the specified type of the definition \<^typ>\int list\:\ definition-assert-error test_elaborate3_embedding'::"int list" where "test_elaborate3_embedding' \ (concat o concat) ((map o map) elaborate1.a (map elaborate2.c (elaborate3.d @{elaborate3 \test_elaborate3a\})))" @@ -258,7 +258,7 @@ term*\a @{one \test_one\}\ text\Bug: The term antiquotation is considered a ground term. -Then its type here is \<^typ>\'a::one list\ whith \'a\ a fixed-type variable. +Then its type here is \<^typ>\'a::one list\ with \'a\ a fixed-type variable. So it is not compatible with the specified type of the definition \<^typ>\('b::one, 'a::numeral) elaborate1'\ because the term antiquotation can not be instantiate as a \<^typ>\'b::one list\ and the \'a\ is checked against the \'a::numeral\ instance type parameter:\