Try doing some basic maths questions in the Lean Theorem Prover. Functions, real numbers, equivalence relations and groups. Click on README.md and then on "Open in CoCalc with one click".
License: APACHE
import data.set.basic
variables (R A : Type)
variables (π : set R β set A) (π : set A β set R)
open set
-- π π π = π for a contravariant Galois connection
-- for example the one between R=k[Xβ,Xβ,β¦,Xβ] and A=πΈβΏ
-- in the theory of algebraic varieties
example
(π_antimono : β Jβ Jβ : set R, Jβ β Jβ β π Jβ β π Jβ)
(π_antimono : β Wβ Wβ : set A, Wβ β Wβ β π Wβ β π Wβ)
(galois : β J : set R, β W : set A, J β π W β W β π J) :
β J : set R, π (π (π J)) = π J :=
begin
intro J,
apply set.subset.antisymm,
{ apply π_antimono,
rw galois},
{ rw βgalois}
end