From 97de8dc3272313a69ee4188443588aec2650dffb Mon Sep 17 00:00:00 2001
From: Gabriel <gabriel@motacilla.home>
Date: Sun, 10 Oct 2021 08:38:24 +0200
Subject: [PATCH] no theories patch

---
 .github/workflows/pvs_prelude.yml            |  1 -
 pvs-translation-tools/prelude/theories       | 46 +++++-----
 pvs-translation-tools/prelude/theories.patch | 95 --------------------
 3 files changed, 23 insertions(+), 119 deletions(-)
 delete mode 100644 pvs-translation-tools/prelude/theories.patch

diff --git a/.github/workflows/pvs_prelude.yml b/.github/workflows/pvs_prelude.yml
index 7733581..f9ce15a 100644
--- a/.github/workflows/pvs_prelude.yml
+++ b/.github/workflows/pvs_prelude.yml
@@ -23,5 +23,4 @@ jobs:
       run: |
         eval $(cd "${HOME}"/lambdapi; opam env)
         cd pvs-translation-tools/prelude || exit 1
-        patch theories theories.patch # Apply patch for typechecking
         bmake
diff --git a/pvs-translation-tools/prelude/theories b/pvs-translation-tools/prelude/theories
index e28b829..319511d 100644
--- a/pvs-translation-tools/prelude/theories
+++ b/pvs-translation-tools/prelude/theories
@@ -71,17 +71,17 @@ floor_ceil
 euclidean_division
 divides
 modulo_arithmetic
-subrange_inductions
+-subrange_inductions # FIXME: Ill formed application (term is not typed in PVS)
 bounded_int_inductions
 bounded_nat_inductions
-subrange_type
-int_types
-nat_types
+-subrange_type # Overloading on dependent types needed
+-int_types # Overloading on dependent types
+-nat_types # Overloading on dependent types
 nat_fun_props
-finite_sets
-restrict_set_props
-extend_set_props
-function_image_aux
+-finite_sets # Depends on nat_types
+-restrict_set_props # Depends on finite_sets
+-extend_set_props # Depends on finite_sets
+-function_image_aux # Depends on finite_sets
 -function_iterate # Recursive function definition
 sequences
 seq_functions
@@ -94,8 +94,8 @@ seq_functions
 -lex4 # Depends on ordinals
 -list # Is a datatype
 -list_props # Recursive function
-map_props
-more_map_props
+-map_props # Depends on list
+-more_map_props # Must depend on map_props or list
 -filters # Recursive functions
 -list2finseq # Depends on list
 -list2set # Recursive functions, depends on list
@@ -105,16 +105,16 @@ more_map_props
 -lift # Is a datatype
 -union # Datatype
 mucalculus
-ctlops
-fairctlops
+-ctlops # Seem to mess with K_conversion
+-fairctlops # Mess with K_conversion
 -Fairctlops # Recursive functions
-bit
-bv
+-bit # FIXME: subtyping failure
+-bv # Depedns on bit
 -exp2 # Recursive functions
-bv_concat_def
-bv_bitwise
+-bv_concat_def # depends on bit
+-bv_bitwise # depedns on bit
 -bv_nat # Recursive
-empty_bv
+-empty_bv # Depends on bit
 -bv_caret # Dependent tuple (I think)
 mod
 -bv_arith_nat_defs # May depend on bv_caret
@@ -126,11 +126,11 @@ mod
 -finite_sets_of_sets # Recursive functions
 EquivalenceClosure
 QuotientDefinition
-KernelDefinition
-QuotientKernelProperties
-QuotientSubDefinition
-QuotientExtensionProperties
-QuotientDistributive
-QuotientIteration
+-KernelDefinition # FIXME: Unification failure
+-QuotientKernelProperties # Depeds on KernelDefinition
+-QuotientSubDefinition # depends on QuotientSubDefinition
+-QuotientExtensionProperties # depends on KernelDefinition
+-QuotientDistributive # Depends on previous theories
+-QuotientIteration # Depends on previous theories
 -PartialFunctionDefinitions # Contains a record
 -PartialFunctionComposition # Depends on previous thy
diff --git a/pvs-translation-tools/prelude/theories.patch b/pvs-translation-tools/prelude/theories.patch
deleted file mode 100644
index 76a24b7..0000000
--- a/pvs-translation-tools/prelude/theories.patch
+++ /dev/null
@@ -1,95 +0,0 @@
-diff --git a/translations/prelude/theories b/translations/prelude/theories
-index f239adab..f38a6056 100644
---- a/translations/prelude/theories
-+++ b/translations/prelude/theories
-@@ -65,23 +65,23 @@ real_props
- extra_real_props
- extra_tegies
- rational_props
--integer_props
-+-integer_props # FIXME
- floor_ceil
- -exponentiation # Contains a recursive function definition
- euclidean_division
--divides
--modulo_arithmetic
--subrange_inductions
-+-divides # FIXME: Last declaration fails
-+-modulo_arithmetic # Very long to typecheck
-+-subrange_inductions # FIXME: Ill formed application (term is not typed in PVS)
- bounded_int_inductions
- bounded_nat_inductions
--subrange_type
--int_types
--nat_types
-+-subrange_type # Overloading on dependent types needed
-+-int_types # Overloading on dependent types
-+-nat_types # Overloading on dependent types
- nat_fun_props
--finite_sets
--restrict_set_props
--extend_set_props
--function_image_aux
-+-finite_sets # Depends on nat_types
-+-restrict_set_props # Depends on finite_sets
-+-extend_set_props # Depends on finite_sets
-+-function_image_aux # Depends on finite_sets
- -function_iterate # Recursive function definition
- sequences
- seq_functions
-@@ -94,8 +94,8 @@ seq_functions
- -lex4 # Depends on ordinals
- -list # Is a datatype
- -list_props # Recursive function
--map_props
--more_map_props
-+-map_props # Depends on list
-+-more_map_props # Must depend on map_props or list
- -filters # Recursive functions
- -list2finseq # Depends on list
- -list2set # Recursive functions, depends on list
-@@ -105,18 +105,18 @@ more_map_props
- -lift # Is a datatype
- -union # Datatype
- mucalculus
--ctlops
--fairctlops
-+-ctlops # Seem to mess with K_conversion
-+-fairctlops # Mess with K_conversion
- -Fairctlops # Recursive functions
--bit
--bv
-+-bit # FIXME: subtyping failure
-+-bv # Depedns on bit
- -exp2 # Recursive functions
--bv_concat_def
--bv_bitwise
-+-bv_concat_def # depends on bit
-+-bv_bitwise # depedns on bit
- -bv_nat # Recursive
--empty_bv
-+-empty_bv # Depends on bit
- -bv_caret # Dependent tuple (I think)
--mod
-+-mod # Out of memory
- -bv_arith_nat_defs # May depend on bv_caret
- -bv_int_defs # May depend on bv_caret
- -bv_arithmetic_defs # Recursive functions
-@@ -126,11 +126,11 @@ mod
- -finite_sets_of_sets # Recursive functions
- EquivalenceClosure
- QuotientDefinition
--KernelDefinition
--QuotientKernelProperties
--QuotientSubDefinition
--QuotientExtensionProperties
--QuotientDistributive
--QuotientIteration
-+-KernelDefinition # FIXME: Unification failure
-+-QuotientKernelProperties # Depeds on KernelDefinition
-+-QuotientSubDefinition # depends on QuotientSubDefinition
-+-QuotientExtensionProperties # depends on KernelDefinition
-+-QuotientDistributive # Depends on previous theories
-+-QuotientIteration # Depends on previous theories
- -PartialFunctionDefinitions # Contains a record
- -PartialFunctionComposition # Depends on previous thy
-- 
GitLab