コード例 #1
0
 def test_inequality_sequence(self):
     natural = r"$\left|a_n - b_n \right| \leq n$"
     lean = r"|a n - b n| ≤ n"
     context = Context()
     context.add("a", "sequence")
     context.add("b", "sequence")
     test_bijective(self, Inequality, natural, lean, context)
コード例 #2
0
 def test_sequence(self):
     natural = r"$\left|a_n - b_n \right|$"
     lean = "|a n - b n|"
     context = Context()
     context.add("a", "sequence")
     context.add("b", "sequence")
     test_bijective(self, AbsoluteDiff, natural, lean, context)
コード例 #3
0
 def test_sequence(self):
     nat = r"$a_n \leq b_n$"
     lean = "a n ≤ b n"
     context = Context()
     context.add("a", "sequence")
     context.add("b", "sequence")
     test_bijective(self, Inequality, nat, lean, context)
コード例 #4
0
 def test_basic(self):
     natural = r"$a_n \leq b_n$ by H1 with n"
     lean = "have A1 : a n ≤ b n := H1 n"
     context = Context()
     context.add("a", "sequence")
     context.add("b", "sequence")
     test_bijective(self, BySentenceWith, natural, lean, context)
コード例 #5
0
 def test_absdiff(self):
     natural = r"$\left|a_n - l \right| < \epsilon$ by H1 with H2"
     lean = "have A1 : |a n - l| < ε := H1 H2"
     context = Context()
     context.add("a", "sequence")
     test_bijective(self, BySentenceWith, natural, lean, context)