equal
deleted
inserted
replaced
110 qed "EVAL_smult"; |
110 qed "EVAL_smult"; |
111 |
111 |
112 (* Examples *) |
112 (* Examples *) |
113 |
113 |
114 Goal |
114 Goal |
115 "EVAL (x::'a::domain) (a*X^# 2 + b*X^1 + c*X^0) = a * x ^ # 2 + b * x ^ 1 + c"; |
115 "EVAL (x::'a::domain) (a*X^2 + b*X^1 + c*X^0) = a * x ^ 2 + b * x ^ 1 + c"; |
116 by (asm_simp_tac (simpset() delsimps [power_Suc] |
116 by (asm_simp_tac (simpset() delsimps [power_Suc] |
117 addsimps [EVAL_homo, EVAL_monom, EVAL_smult]) 1); |
117 addsimps [EVAL_homo, EVAL_monom, EVAL_smult]) 1); |
118 result(); |
118 result(); |
119 |
119 |
120 Goal |
120 Goal |
121 "EVAL (y::'a::domain) \ |
121 "EVAL (y::'a::domain) \ |
122 \ (EVAL (const x) (monom 1 + const (a*X^# 2 + b*X^1 + c*X^0))) = \ |
122 \ (EVAL (const x) (monom 1 + const (a*X^2 + b*X^1 + c*X^0))) = \ |
123 \ x ^ 1 + (a * y ^ # 2 + b * y ^ 1 + c)"; |
123 \ x ^ 1 + (a * y ^ 2 + b * y ^ 1 + c)"; |
124 by (asm_simp_tac (simpset() delsimps [power_Suc] |
124 by (asm_simp_tac (simpset() delsimps [power_Suc] |
125 addsimps [EVAL_homo, EVAL_monom, EVAL_smult, EVAL_const]) 1); |
125 addsimps [EVAL_homo, EVAL_monom, EVAL_smult, EVAL_const]) 1); |
126 result(); |
126 result(); |
127 |
127 |