From a7b46d4b0204571ba9124accebc84f77ae0bed26 Mon Sep 17 00:00:00 2001 From: Josh Chen Date: Thu, 30 Aug 2018 00:45:08 +0200 Subject: Add leq relation to meta-ordinals, it helps with proofs --- HoTT_Base.thy | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'HoTT_Base.thy') diff --git a/HoTT_Base.thy b/HoTT_Base.thy index 1110e14..269a3d9 100644 --- a/HoTT_Base.thy +++ b/HoTT_Base.thy @@ -35,13 +35,18 @@ typedecl Ord axiomatization O :: Ord and S :: "Ord \ Ord" ("S_" [0] 1000) and - lt :: "[Ord, Ord] \ prop" (infix "<-" 999) + lt :: "[Ord, Ord] \ prop" (infix "<" 999) and + leq :: "[Ord, Ord] \ prop" (infix "\" 999) where - Ord_min: "\n. O <- S(n)" + Ord_lt_min: "\n. O < S(n)" and - Ord_monotone: "\m n. m <- n \ S(m) <- S(n)" + Ord_lt_monotone: "\m n. m < n \ S(m) < S(n)" +and + Ord_leq_min: "\n. n \ n" +and + Ord_leq_monotone: "\m n. m \ n \ S(m) \ S(n)" -lemmas Ord_rules [intro] = Ord_min Ord_monotone +lemmas Ord_rules [intro] = Ord_lt_min Ord_lt_monotone Ord_leq_min Ord_leq_monotone \ \Enables \standard\ to automatically solve inequalities.\ text "Define the universe types." @@ -49,9 +54,9 @@ text "Define the universe types." axiomatization U :: "Ord \ Term" where - U_hierarchy: "\i j. i <- j \ U(i): U(j)" + U_hierarchy: "\i j. i < j \ U(i): U(j)" and - U_cumulative: "\A i j. \A: U(i); i <- j\ \ A: U(j)" + U_cumulative: "\A i j. \A: U(i); i \ j\ \ A: U(j)" \ \WARNING: \rule Universe_cumulative\ can result in an infinite rewrite loop!\ -- cgit v1.2.3