Methane
Content created by Fredrik Bakke, Jonathan Prieto-Cubides, Egbert Rijke and Alice Laroche.
Created on 2022-08-16.
Last modified on 2025-10-31.
module organic-chemistry.methane where
Imports
open import elementary-number-theory.inequality-natural-numbers open import finite-group-theory.tetrahedra-in-3-space open import foundation.dependent-pair-types open import foundation.empty-types open import foundation.identity-types open import foundation.propositional-truncations open import foundation.unit-type open import foundation.universe-levels open import graph-theory.walks-undirected-graphs open import organic-chemistry.alkanes open import organic-chemistry.hydrocarbons open import univalent-combinatorics.counting open import univalent-combinatorics.finite-types
Methane¶ is the simplest hydrocarbon, and the first alkane.
Definition
module _ (t : tetrahedron-in-3-space) where methane : hydrocarbon lzero lzero pr1 (pr1 methane) = unit-Finite-Type pr2 (pr1 methane) x = empty-Finite-Type pr1 (pr2 methane) c = t pr1 (pr1 (pr2 (pr2 methane)) c) e = ex-falso (pr2 e) pr2 (pr1 (pr2 (pr2 methane)) c) e = ex-falso (pr2 e) pr1 (pr2 (pr2 (pr2 methane))) c x = x pr1 (pr2 (pr2 (pr2 (pr2 methane)))) c c' = concatenate-eq-leq-ℕ ( 3) ( inv (compute-number-of-elements-is-finite count-empty is-finite-empty)) ( star) pr2 (pr2 (pr2 (pr2 (pr2 methane)))) star star = unit-trunc-Prop refl-walk-Undirected-Graph is-alkane-methane : is-alkane-hydrocarbon methane is-alkane-methane c c' e e' = is-prop-empty e e'
External links
- Methane at Wikidata
Recent changes
- 2025-10-31. Fredrik Bakke. chore: Concepts in organic-chemistry(#1648).
- 2025-02-11. Fredrik Bakke. Switch from 𝔽toFinite-*(#1312).
- 2023-10-09. Fredrik Bakke and Egbert Rijke. Refactor library to use λ where(#809).
- 2023-05-01. Fredrik Bakke. Refactor 2, the sequel to refactor (#581).
- 2023-04-28. Fredrik Bakke. Miscellaneous refactoring and small additions (#579).