(* Authors: Wenda Li *) theory mathd_algebra_422 imports Complex_Main "HOL-Computational_Algebra.Computational_Algebra" begin theorem mathd_algebra_422: fixes x :: real and \::"real \ real" assumes "bij \" and \:"\ x. \ x = 5 * x - 12" and "\ (x + 1) = (inv \) x" shows "x = 47 / 24" proof - have " \ ((x + 12) / 5) = x" using \[rule_format, of "(x+12)/5"] by (auto simp:field_simps) then have "inv \ x = (x + 12) / 5" by (metis assms(1) bij_inv_eq_iff) moreover have "\ (x + 1) = 5 * x - 7" using \[rule_format, of "x+1"] by (auto simp:field_simps) ultimately have "(x + 12) / 5 = 5 * x - 7" using \\ (x + 1) = (inv \) x\ by auto then show ?thesis by auto qed end