Let X and B be given.
Assume HBasis.
Apply set_ext to the current goal.
Let U be given.
Assume HU.
We prove the intermediate claim HUopen: open_in X (generated_topology X B) U.
An exact proof term for the current goal is (andI (topology_on X (generated_topology X B)) (U generated_topology X B) (lemma_topology_from_basis X B HBasis) HU).
We prove the intermediate claim HexFam: ∃Fam𝒫 B, Fam = U.
An exact proof term for the current goal is (open_sets_as_unions_of_basis X B HBasis U HUopen).
Apply HexFam to the current goal.
Let Fam be given.
Assume HFampair.
We prove the intermediate claim HFamPow: Fam 𝒫 B.
An exact proof term for the current goal is (andEL (Fam 𝒫 B) ( Fam = U) HFampair).
We prove the intermediate claim HUnion: Fam = U.
An exact proof term for the current goal is (andER (Fam 𝒫 B) ( Fam = U) HFampair).
We prove the intermediate claim HUnionFam: Fam { Fam0|Fam0𝒫 B}.
An exact proof term for the current goal is (ReplI (𝒫 B) (λFam0 : set Fam0) Fam HFamPow).
rewrite the current goal using HUnion (from right to left).
An exact proof term for the current goal is HUnionFam.
Let U be given.
Assume HUUnion.
We prove the intermediate claim HexFamPowRaw: ∃Fam𝒫 B, U = Fam.
An exact proof term for the current goal is (ReplE (𝒫 B) (λFam0 : set Fam0) U HUUnion).
We prove the intermediate claim HexFamPow: ∃Fam𝒫 B, Fam = U.
Apply HexFamPowRaw to the current goal.
Let Fam be given.
Assume HFamPair.
We prove the intermediate claim HFamPow: Fam 𝒫 B.
An exact proof term for the current goal is (andEL (Fam 𝒫 B) (U = Fam) HFamPair).
We prove the intermediate claim HUnion: U = Fam.
An exact proof term for the current goal is (andER (Fam 𝒫 B) (U = Fam) HFamPair).
We use Fam to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is HFamPow.
rewrite the current goal using HUnion (from right to left).
Use reflexivity.
We prove the intermediate claim HUopen: open_in X (generated_topology X B) U.
An exact proof term for the current goal is (basis_generates_open_sets X B HBasis U HexFamPow).
An exact proof term for the current goal is (andER (topology_on X (generated_topology X B)) (U generated_topology X B) HUopen).