lean4-htt/tests/pkg/ver_clash/DiamondExample-C/DiamondExampleC/MainResult.lean
Mac Malone 2b85e29cc9
test: version clash w/ diamond deps (#11155)
This PR adds a test replicating Kim's diamond dependency example.

The top-level package, `D`, depends on two intermediate packages, `B`
and `C`, which each require semantically different versions of another
package, `A`. The portion of `A` that `B` and `C` publicly use is
unchanged across the versions, but they both privately make use of
changed API. Currently, this causes a version clash. This will be made
to work without error later this quarter.
2025-11-13 05:40:56 +00:00

11 lines
226 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

module
public import DiamondExampleA.Ring.Defs
import DiamondExampleA.Ring.Lemmas
open Ring
public theorem bar [Ring α] (a b c : α) : a + b + c = b + a + c := by
rw [add_assoc]
rw [add_left_comm]
rw [← add_assoc]