(* La_equipotencia_es_una_relacion_simetrica.thy -- La equipotencia es una relación simétrica. -- José A. Alonso Jiménez -- Sevilla, 20-junio-2024 -- ------------------------------------------------------------------ *) (* --------------------------------------------------------------------- -- Dos conjuntos A y B son equipotentes (y se denota por A \ B) si -- existe una aplicación biyectiva entre ellos. La equipotencia está -- definida en Isabelle por -- definition eqpoll :: "'a set \ 'b set \ bool" (infixl "\" 50) -- where "eqpoll A B \ \f. bij_betw f A B" -- -- Demostrar que la relación de equipotencia es simétrica. -- ------------------------------------------------------------------ *) theory La_equipotencia_es_una_relacion_simetrica imports Main "HOL-Library.Equipollence" begin (* 1\ demostración *) lemma "symp (\)" proof (rule sympI) fix x y :: "'a set" assume "x \ y" then obtain f where "bij_betw f x y" using eqpoll_def by blast then have "bij_betw (the_inv_into x f) y x" by (rule bij_betw_the_inv_into) then have "\g. bij_betw g y x" by auto then show "y \ x" by (simp only: eqpoll_def) qed (* 2\ demostración *) lemma "symp (\)" unfolding eqpoll_def symp_def using bij_betw_the_inv_into by auto (* 3\ demostración *) lemma "symp (\)" by (simp add: eqpoll_sym sympI) end