Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. #u X
  2.  
  3. #a 5
  4.  
  5. #q 1
  6.  
  7. % forall x, y. f(x) == f(y) => x == y
  8. % forall x. f(x) != C
  9.  
  10. #check NONE
  11.  
  12. domain{0,1,2,3,...}
  13.  
  14. %domain is the set of of natural numbers
  15.  
  16. syntax
  17. c = 0
  18. f(x) = x + 2
  19.  
  20. M[forall x,y . f(x) == f(y) => x == y]
  21. = forall x,y . M[f(x) == (f(y) => x == y)]
  22. = forall x M[f(x) == f(_y_) => x == y] AND forall y M[f(_x_) == f(y) => _x_ == y]
  23.  
  24.  
  25. forall x M[f(x) == f(_y_) => x == _y_ ]
  26.  
  27. M[f(0) == f(_y_) => 0 == _y_ ]
  28. = M[f(0) == f(0) => 0 == 0]
  29. = 2 == 2 IMP 0 == 0
  30. = T IMP T
  31.  
  32. M[f(0) == f(1) => 0 == 1]
  33. = f(0) == f(1) IMP 0 == 1
  34. = 2 == 4 IMP 0 == 1
  35. = F IMP F
  36. = T
  37.  
  38. ....
  39.  
  40. Continuing for the entire domain we can see that if the values are equal then x == y and other wise it is false implies false which is also true
  41.  
  42.  
  43. forall y M[f(_x_) == f(y) => _x_ == y]
  44.  
  45. M[f(_x_) == f(0) => _x_ == 0]
  46. = M[f(0) == f(0) => 0 == 0]
  47. = 2 == 2 IMP 0 == 0
  48. = T IMP T
  49.  
  50. M[f(0) == f(1) => 0 == 1]
  51. = f(0) == f(1) IMP 0 == 1
  52. = 2 == 4 IMP 0 == 1
  53. = F IMP F
  54. = T
  55.  
  56. ....
  57.  
  58. Continuing for the entire domain we can see that if the values are equal then x == y and other wise it is false implies false which is also true
  59.  
  60.  
  61.  
  62. forall x M[f(x) != C]
  63.  
  64. M[f(0) != _C_ ]
  65. = M[2 != 0]
  66. = T by arith
  67.  
  68.  
  69. M[f(1) != _C_ ]
  70. = M[3 != C]
  71. = T by arith
  72.  
  73. .....
  74.  
  75. the domain starts at x = 0 and that gives 2
  76. and with each subsequent number, f(x) gives a larger and larger number
  77. since the domain is the set of natural number and we can expand this to infinity
  78. meaning we can always found a x + 2 that's within our domain
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement