Datasets:
Download lean_project/FormalConjecturesForMathlib/Algebra/GradedMonoid.lean from nielsr/formal-conjectures: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/datasets/nielsr/formal-conjectures/resolve/main/lean_project/FormalConjecturesForMathlib/Algebra/GradedMonoid.lean
- Command line
-
hf download hf://datasets/nielsr/formal-conjectures/lean_project/FormalConjecturesForMathlib/Algebra/GradedMonoid.lean
-
curl -L -o GradedMonoid.lean https://huggingface.co/datasets/nielsr/formal-conjectures/resolve/main/lean_project/FormalConjecturesForMathlib/Algebra/GradedMonoid.lean
1.29 kB
| /- | |
| Copyright 2026 The Formal Conjectures Authors. | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| https://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software | |
| distributed under the License is distributed on an "AS IS" BASIS, | |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| See the License for the specific language governing permissions and | |
| limitations under the License. | |
| -/ | |
| module | |
| public import Mathlib.Algebra.GradedMonoid | |
| @[expose] public section | |
| /-! | |
| # Equality in a graded monoid | |
| `GradedMonoid.mk_eq_mk` proves an equality `GradedMonoid.mk i a = GradedMonoid.mk j b` from | |
| `i = j` and `HEq a b`. It is `Sigma.ext` stated for `GradedMonoid.mk`, so that unification only | |
| sees the arguments of `GradedMonoid.mk` and never has to reduce projections of the two sides. | |
| -/ | |
| namespace GradedMonoid | |
| variable {ι : Type*} {A : ι → Type*} | |
| /-- Equality of two elements of `GradedMonoid A` written with `GradedMonoid.mk`. -/ | |
| lemma mk_eq_mk {i j : ι} {a : A i} {b : A j} (h : i = j) (h' : HEq a b) : | |
| GradedMonoid.mk i a = GradedMonoid.mk j b := | |
| Sigma.ext h h' | |
| end GradedMonoid | |