blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 139 | content_id stringlengths 40 40 | detected_licenses listlengths 0 16 | license_type stringclasses 2
values | repo_name stringlengths 7 55 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 6
values | visit_date int64 1,471B 1,694B | revision_date int64 1,378B 1,694B | committer_date int64 1,378B 1,694B | github_id float64 1.33M 604M ⌀ | star_events_count int64 0 43.5k | fork_events_count int64 0 1.5k | gha_license_id stringclasses 6
values | gha_event_created_at int64 1,402B 1,695B ⌀ | gha_created_at int64 1,359B 1,637B ⌀ | gha_language stringclasses 19
values | src_encoding stringclasses 2
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 3 6.4M | extension stringclasses 4
values | content stringlengths 3 6.12M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11ec02ec85668835f45c61243ea20dfdbcdd3b86 | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean/deps/typed_smt2/src/galois/smt2/file_writer.lean | 48bcff536b7bb20d49898542daf5829768703227 | [
"Apache-2.0"
] | permissive | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 1,789 | lean | import .cmd
import .interface
import system.io
namespace smt2
/-- Interface for writing SMTLIB expressions to a handle or file. -/
def file_writer := reader_t io.handle io
namespace file_writer
section
local attribute [reducible] file_writer
instance : monad file_writer := by apply_instance
instance : has_monad_lif... |
b36e3fce770894bc4957768ad52868ae8efacf06 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/module/pointwise_pi.lean | 3572a8a1d31a516b9f96ceed8fa58f087efcb3ca | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 1,618 | lean | /-
Copyright (c) 2021 Alex J. Best. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alex J. Best
-/
import data.set.pointwise.smul
import group_theory.group_action.pi
/-!
# Pointwise actions on sets in Pi types
This file contains lemmas about pointwise actions on sets... |
fa74f1a69a3220d0249be2bd6b4d986e72f3a858 | 01f6b345a06ece970e589d4bbc68ee8b9b2cf58a | /src/pow_mult_faithful.lean | 6a053f21efdc7f13dd4740be115e8a11ceefd701 | [] | no_license | mariainesdff/norm_extensions_journal_submission | 6077acb98a7200de4553e653d81d54fb5d2314c8 | d396130660935464fbc683f9aaf37fff8a890baa | refs/heads/master | 1,686,685,693,347 | 1,684,065,115,000 | 1,684,065,115,000 | 603,823,641 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,171 | lean | /-
Copyright (c) 2023 María Inés de Frutos-Fernández. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: María Inés de Frutos-Fernández
-/
import ring_seminorm
import analysis.special_functions.pow
/-!
# Equivalent power-multiplicative norms
In this file, we prove [BGR, ... |
b34a1c32aa3664f05458b922288fc31dc1277bdd | b7fc5b86b12212bea5542eb2c9d9f0988fd78697 | /src/exercises_sources/friday/analysis.lean | 83c4b78521940ce61e5cd26dfb0937e49fbb280a | [] | no_license | stjordanis/lftcm2020 | 3b16591aec853c8546d9c8b69c0bf3f5f3956fee | 1f3485e4dafdc587b451ec5144a1d8d3ec9b411e | refs/heads/master | 1,675,958,865,413 | 1,609,901,722,000 | 1,609,901,722,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,763 | lean | import analysis.analytic.composition
import analysis.normed_space.inner_product
import topology.metric_space.pi_Lp
import analysis.calculus.iterated_deriv
import analysis.calculus.mean_value
import analysis.calculus.implicit
import measure_theory.bochner_integration
import measure_theory.lebesgue_measure
namespace lf... |
0ce5276619b04805b8905b1476ac275c71c1078b | 1a61aba1b67cddccce19532a9596efe44be4285f | /library/algebra/group.lean | c2aad7ca8375e5042c8a6c3427dd73d134df8734 | [
"Apache-2.0"
] | permissive | eigengrau/lean | 07986a0f2548688c13ba36231f6cdbee82abf4c6 | f8a773be1112015e2d232661ce616d23f12874d0 | refs/heads/master | 1,610,939,198,566 | 1,441,352,386,000 | 1,441,352,494,000 | 41,903,576 | 0 | 0 | null | 1,441,352,210,000 | 1,441,352,210,000 | null | UTF-8 | Lean | false | false | 21,189 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
Various multiplicative and additive structures. Partially modeled on Isabelle's library.
-/
import logic.eq data.unit data.sigma data.prod
import alge... |
06dfb823e298cd158d2e0aec8b48f1221aa3de94 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/ring_theory/mv_polynomial/basic.lean | ab8e1d5c9e9e730d37749ddb5c7aa3712b7b529c | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,902 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import ring_theory.ideal.operations
import linear_algebra.finsupp_vector_space
import algebra.char_p.basic
/-!
# Multivariate polynomials over commutative rings
Th... |
066499afffea31f8f9c43b3cd63e648a9599618e | 3d2a7f1582fe5bae4d0bdc2fe86e997521239a65 | /spatial-reasoning/spatial-reasoning-problem-17.lean | 141b4ff409b2d792c1c78388b70db8c651778557 | [] | no_license | own-pt/common-sense-lean | e4fa643ae010459de3d1bf673be7cbc7062563c9 | f672210aecb4172f5bae265e43e6867397e13b1c | refs/heads/master | 1,622,065,660,261 | 1,589,487,533,000 | 1,589,487,533,000 | 254,167,782 | 3 | 2 | null | 1,589,487,535,000 | 1,586,370,214,000 | Lean | UTF-8 | Lean | false | false | 191 | lean | /- Spatial Reasoning Problem 17 -/
/- It can be found at: SpatialQs.txt -/
/- (17) A string passes through a ring.
If John picks up both ends of the string, does he lift the ring too? -/
|
d3bf985c3f82a044d1bdde46e7b5ef829e8f2010 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/prod/lex.lean | af22f85079807461330da8004acd0ff5748289ac | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 6,203 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Minchao Wu
-/
import order.bounded_order
/-!
# Lexicographic order
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to... |
33161229c3b12f3a64e89a996060bacca05996fd | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/data/lazy_list/basic.lean | ab48e9ab5ce8ff372b020c652b62417c42c9be5f | [
"Apache-2.0"
] | permissive | spolu/mathlib | bacf18c3d2a561d00ecdc9413187729dd1f705ed | 480c92cdfe1cf3c2d083abded87e82162e8814f4 | refs/heads/master | 1,671,684,094,325 | 1,600,736,045,000 | 1,600,736,045,000 | 297,564,749 | 1 | 0 | null | 1,600,758,368,000 | 1,600,758,367,000 | null | UTF-8 | Lean | false | false | 5,848 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
Traversable instance for lazy_lists.
-/
import control.traversable.equiv
import control.traversable.instances
import data.lazy_list
/-!
## Definitions on lazy lists
This fi... |
a1d8869c288e70de9882e25e9edebbeb0211c73d | 5842125af0946f8797927ce44a1a4c3ba27ad5b4 | /src/Neptune.lean | cf94b4e735083c852da22f7be5727fc96bf85425 | [] | no_license | Anderssorby/Neptune.lean | 5c2f3e4885b4a5635718ac827069690703bc1ffb | 378317a3e4383c7874d01907efb84b1e39180cf3 | refs/heads/main | 1,692,962,529,542 | 1,636,564,929,000 | 1,636,564,929,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 792 | lean | /-
Lean bindings to the Neptune hash function
-/
import BinaryTools
namespace Neptune
constant NEPTUNE_OUT_LEN: Nat := 32
/-
A dependent ByteArray which guarantees the correct byte length.
-/
def NeptuneHash : Type := { r : ByteArray // r.size = NEPTUNE_OUT_LEN }
@[defaultInstance]
instance : Into ByteArray Neptune... |
b649ce169e907120c5b2d257c707076491750f76 | c213e436cb87414954d055137f2a847a9674d7d2 | /src/linear_algebra/basic.lean | 1162f7cca8d747e155f3c83b1d8008de85f04b8f | [
"Apache-2.0"
] | permissive | dsanjen/mathlib | 642d270c3d209cfdfb097c2ddc9dd36c102fae9f | a3844c85c606acca5922408217d55891b760fad6 | refs/heads/master | 1,606,199,308,451 | 1,576,274,676,000 | 1,576,274,676,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 72,131 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Kevin Buzzard
-/
import algebra.pi_instances data.finsupp data.equiv.algebra order.order_iso
/-!
# Linear algebra
This file defines the basics of lin... |
280456bf71701c737eab56e3c88c421b89dca28c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/homology/image_to_kernel.lean | 5b100a5aec890325c55aa8c147cc7bdf87769a82 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 15,746 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.subobject.limits
/-!
# Image-to-kernel comparison maps
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corres... |
07537759a3f1c878f7d3eec3f0936cafaec8adf6 | b9a81ebb9de684db509231c4469a7d2c88915808 | /src/super/superposition.lean | 12f6de1d9d953879411783b8f6c89628d29b3403 | [] | no_license | leanprover/super | 3dd81ce8d9ac3cba20bce55e84833fadb2f5716e | 47b107b4cec8f3b41d72daba9cbda2f9d54025de | refs/heads/master | 1,678,482,996,979 | 1,676,526,367,000 | 1,676,526,367,000 | 92,215,900 | 12 | 6 | null | 1,513,327,539,000 | 1,495,570,640,000 | Lean | UTF-8 | Lean | false | false | 4,884 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause .prover_state .utils
open tactic monad expr native
namespace super
def position := list ℕ
meta def get_rwr_positions : expr → list position
| (app a b... |
f79aae0994569f3ffeb2d3b67cc15e17d08482cc | 59cb0b250f036506a327b29abf0b51ff1efbb0c9 | /src/linear_binary_code.lean | 687a0e04cdaacfbc0a21396c19e6730243609aaf | [] | no_license | GeorgeTillisch/coding_theory_lean | ea26861a3d5d8ca897ca50b056d9cae53104bc27 | 920e14b433080854d4248714c93a09ce4e391522 | refs/heads/main | 1,681,707,926,918 | 1,619,008,763,000 | 1,619,008,763,000 | 343,145,352 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,337 | lean | import tactic
import binary
import hamming
import binary_codes
import algebra.module.submodule
/-!
# Linear Binary Codes
This file contains the definition of a linear binary code.
We also use this definition to formalize the Hamming(7,4) code
and some of its properties.
-/
open B BW binary_code
structure linear_bi... |
f8137dec578385c49811502ccc0a449fb14896c1 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/mv_polynomial/monad_auto.lean | d39de4d3ea0907ff086cf4240d683bf234a83c74 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,448 | lean | /-
Copyright (c) 2020 Johan Commelin and Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin and Robert Y. Lewis
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.mv_polynomial.rename
import Mathlib.PostPort
... |
d13b7862a15e3bab6cee9cb44343af777d3d10cd | 359199d7253811b032ab92108191da7336eba86e | /src/instructor/lectures/lecture_16.lean | d76953e5f404709b6cab8becc92af817af152a02 | [] | no_license | arte-et-marte/my_cs2120f21 | 0bc6215cb5018a3b7c90d9d399a173233f587064 | 91609c3609ad81fda895bee8b97cc76813241e17 | refs/heads/main | 1,693,298,928,348 | 1,634,931,202,000 | 1,634,931,202,000 | 399,946,705 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,384 | lean | /- OBJECTS
The objects of this algebraic structure are
values of type "set T," where T is the type **set: a collection of objects of some kind**
of objects "in" the set: of the "members" of
the set.
**Operations that can be performed on sets: unions, intersections, creating a power set, complement of a set, subset... |
d14711c33675a0250b0975db489b89cb810d538b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/ext.lean | 5ba433d513f463cbad8ec4e12dea2560ce3bdc95 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,554 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Jesse Michael Han
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.rcases
import Mathlib.data.sum
import Mathlib.logic.function.basic
impo... |
43b40a62698aec82448f994af343e99918da779f | fe25de614feb5587799621c41487aaee0d083b08 | /tests/lean/interactive/plainTermGoal.lean | 096f799c5c7dc7f118299c6b82909b211067d5a2 | [
"Apache-2.0"
] | permissive | pollend/lean4 | e8469c2f5fb8779b773618c3267883cf21fb9fac | c913886938c4b3b83238a3f99673c6c5a9cec270 | refs/heads/master | 1,687,973,251,481 | 1,628,039,739,000 | 1,628,039,739,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 939 | lean |
example : 0 < 2 :=
Nat.ltTrans Nat.zeroLtOne (Nat.ltSuccSelf _)
--^ $/lean/plainTermGoal
--^ $/lean/plainTermGoal
--^ $/lean/plainTermGoal
--^ $/lean/plainTermGoal
--^ $/lean/plainTermGoal
example : OptionM Unit... |
c5723c872b4d43e2a38a1145c80569ec976b435a | 70f8755415fa7a17f87402cde4651e9f4db1b5bb | /src/pfunctor/M.lean | 6c9856746c7d53154df25ac33486001cce175695 | [
"Apache-2.0"
] | permissive | shingarov/qpf | ab935dc2298db12c87ac011a2e4d2c27e0bdef4b | debe2eacb8cf46b21aba2eaf3f2e20940da0263b | refs/heads/master | 1,653,705,576,607 | 1,570,136,035,000 | 1,570,136,035,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,623 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
Basic machinery for defining general coinductive types
Work in progress
-/
import data.pfun tactic.interactive ..for_mathlib .basic
universes u v w
open nat function list (... |
e2d896ecf02c1af19862fa31459c32e1e0bc8996 | f57749ca63d6416f807b770f67559503fdb21001 | /library/init/reserved_notation.lean | e3c59b15ff36adc22a8b193b4c742b60528df83a | [
"Apache-2.0"
] | permissive | aliassaf/lean | bd54e85bed07b1ff6f01396551867b2677cbc6ac | f9b069b6a50756588b309b3d716c447004203152 | refs/heads/master | 1,610,982,152,948 | 1,438,916,029,000 | 1,438,916,029,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,245 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
-/
prelude
import init.datatypes
notation `assume` binders `,` r:(scoped f, f) := r
notation `take` binders `,` r:(scoped f, f) := r
/-
Gl... |
877482331a1816ead2456987c3516e07575e20c0 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/tactic/fin_cases.lean | 24417c16b62ed6c97cbfd3432e4cd5cf395fc60f | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 4,132 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Scott Morrison
Case bashing:
* on `x ∈ A`, for `A : finset α` or `A : list α`, or
* on `x : A`, with `[fintype A]`.
-/
import data.fintype
import tactic.norm_num
namespace tactic
open... |
c4c1fedeb0fb851dfdb65ceedfd48cab94a02439 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/bitvec/core.lean | e2ee68b65d47c6f0ca23a6d5d4d2a725e9a4e8d9 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,889 | lean | /-
Copyright (c) 2015 Joe Hendrix. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joe Hendrix, Sebastian Ullrich
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.vector2
import Mathlib.data.nat.basic
import Mathlib.PostPort
namespace ... |
8a0f6891316742ab2f01cf6dd9502f3b61060378 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/geometry/manifold/instances/units_of_normed_algebra.lean | da73c982e5180aa02e108f504b3d4ae6968b11ac | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 2,497 | lean | /-
Copyright © 2021 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri, Heather Macbeth
-/
import geometry.manifold.smooth_manifold_with_corners
import analysis.normed_space.units
/-!
# Units of a normed algebra
This file is a stub, co... |
d72849d84b5512c7bfc0bd98b5c34d404e60ceb8 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/number_theory/number_field/units.lean | 106abb57e643777b1655f67a5099cbefde6a252f | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 1,369 | lean | /-
Copyright (c) 2023 Xavier Roblot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Xavier Roblot
-/
import number_theory.number_field.norm
/-!
# Units of a number field
We prove results about the group `(𝓞 K)ˣ` of units of the ring of integers `𝓞 K` of a number
fie... |
48eb1d15e104613c07d62c8ba4dc95dab337d8de | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/mk_dec_eq_instance_nested.lean | 8bc5f46570275a44c69828d18ac9639da059b6ed | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 464 | lean | open tactic
namespace X1
inductive Wrap (A : Type) : Type
| mk : A -> Wrap
inductive Foo : Type
| mk : Wrap Foo -> Foo
instance : decidable_eq Foo := by mk_dec_eq_instance
end X1
namespace X2
inductive Foo : Type
| mk : list Foo -> Foo
instance : decidable_eq Foo := by mk_dec_eq_instance
end X2
namespace X3
... |
61b6c19d6e12639831b4dcbabfd66c324de5c810 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/mv_polynomial/invertible.lean | 89f5ca9f55b4ca04782bef3659341c0ae4a33cfb | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 1,058 | lean | /-
Copyright (c) 2020 Johan Commelin, Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import data.mv_polynomial.basic
import ring_theory.algebra_tower
/-!
# Invertible polynomials
This file is a stub containing some... |
198da7c9d401bf12a6f6ca322e831750e8602d64 | ed2fefcfa8b4fe534e01e6245f2696fd7c890d95 | /2019-04-01_aula3.lean | 53e5fe9c8593543c442adc104e6788b3bb55f4ca | [] | no_license | Bpalkmim/EstOrientadoLean | 2036194e2211badb8ae18c1440edfe557b8e11d2 | 05a11f20cb5d0da612c9767fd97d0dbf698a405a | refs/heads/master | 1,588,562,078,354 | 1,557,777,940,000 | 1,557,777,940,000 | 178,943,165 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 176 | lean | constants A B C : Type
constant f : A
constant h : A → B
constant g : A → (B → C)
#check g f (h f)
#check (λg : A → (B → C), (λh : A → B, (λf : A, g f (h f)))) |
8aecb6802673e786fdd3cb6ce1ec70eb946b728d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/laurent_series.lean | 99ba18b74afa72bd63ff729124fdf9e823335ccb | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 8,327 | lean | /-
Copyright (c) 2021 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import ring_theory.hahn_series
import ring_theory.localization.fraction_ring
/-!
# Laurent Series
## Main Definitions
* Defines `laurent_series` as an abbreviation ... |
1fda21239d9b96253e75a89ca0fc46112908bdc2 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/fintype/sort.lean | 5d72701738f3609c246d2a816e6b36990fad3894 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 2,354 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.finset.sort
import data.fintype.basic
/-!
# Sorting a finite type
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corres... |
708382cf6d646902ef42c38542656f56554a7a7c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/isomorphism.lean | d319cb58c5762e4dbf3d0f3565ff987f7fec119f | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 16,320 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.functor.basic
/-!
# Isomorphisms
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to t... |
b2303c65de5d6776e7f1fceaaf6b6b9965120553 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/set/finite.lean | ddc4def3d29cd99812106565db08ce77e3f32350 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 49,818 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Kyle Miller
-/
import data.finset.sort
import data.set.functor
import data.finite.basic
/-!
# Finite sets
This file defines predicates for finite and ... |
7a844a55767dbb6d237fc57e90a79bb02ce2bae3 | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/test/mathd-algebra-80.lean | cd8035548411d3211b5d27f3e887cd1ed59ec3c6 | [
"MIT",
"Apache-2.0"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 266 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import data.real.basic
example (x : ℝ) (h₀ : x ≠ -1) (h₁ : (x - 9) / (x + 1) = 2) : x = -11 :=
begin
sorry
end
|
a0da3bc48c503c98413e424d67913892c1976fb4 | 1e561612e7479c100cd9302e3fe08cbd2914aa25 | /mathlib4_experiments/Data/List/Perm.lean | 39362a7f4fcecbedfdf97d5f73a89cfe68f6b64a | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib4_experiments | 8de8ed7193f70748a7529e05d831203a7c64eedb | 87cb879b4d602c8ecfd9283b7c0b06015abdbab1 | refs/heads/master | 1,687,971,389,316 | 1,620,336,942,000 | 1,620,336,942,000 | 353,994,588 | 7 | 4 | Apache-2.0 | 1,622,410,748,000 | 1,617,361,732,000 | Lean | UTF-8 | Lean | false | false | 48,289 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
--import data.list.bag_inter
--import data.list.erase_dup
--import data.list.zip
--import logic.relation
--import data.nat.fa... |
b2a2bb41238f633668313ee2c5390dcb7a0e9a6a | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/finish2.lean | 1f8aa8774688b93b4cf9caaeb32cd565b27ae19a | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 12,718 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Nathaniel Thomas
More examples to test automation, stolen shamelessly by Jeremy from Nathaniel's "tauto".
-/
import tactic.finish
open nat
section
variables (a... |
09090ff5ebe96ed9d808e23dde4e77bffe2f281f | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_1180.lean | ce5c4e51fdc40686fddb1eacdc94e5bc4974278b | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 278 | lean | import data.real.basic
-- BEGIN
example :
¬ ∀ {f : ℝ → ℝ}, monotone f → ∀ {a b}, f a ≤ f b → a ≤ b :=
begin
intro h,
let f := λ x : ℝ, (0 : ℝ),
have monof : monotone f,
{ sorry },
have h' : f 1 ≤ f 0,
from le_refl _,
sorry
end
-- END |
93f12a2a9e0e893c6deb7263f4ced847be0a988c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/906.lean | f92ab10552d00961df22423c5e3c770df8e6999a | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 687 | lean | -- Print a nat using well-founded recursion
def natPrintAux (n : Nat) (sink : List Char) : List Char :=
if h0 : n < 10
then (n.digitChar :: sink)
else natPrintAux (n / 10) (Nat.digitChar (n % 10) :: sink)
termination_by' measure (fun ⟨n, _⟩ => n)
decreasing_by sorry
set_option maxRecDepth 100 -- default takes a... |
6e27a1b311e2a8c382d1bd982130ed1e33c8059b | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Meta/Tactic/Util.lean | 404f93afe4de40fea9f712bb4b24da856428e9e8 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 1,631 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Lean.Meta.Basic
import Init.Lean.Meta.LevelDefEq
namespace Lean
namespace Meta
/-- Aka user name -/
def getMVarTag (mvarId : MVarId) :... |
a3b665a5f1c2b78a9616d9d05f438d2707358608 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/convex/extreme.lean | 02c965c3353ef65833fbd8a6fdbb7cab799213b3 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 9,522 | lean | /-
Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import analysis.convex.hull
/-!
# Extreme sets
This file defines extreme sets and extreme points for sets in a module.
An extreme set of `A... |
3172f0623cd9c59807c522cf3c1aa865e5d0d7ce | 7da5ceac20aaab989eeb795a4be9639982e7b35a | /src/data/dvector.lean | 3677940aa0d79f42de34b42f77fa0d4509713782 | [
"MIT"
] | permissive | formalabstracts/formalabstracts | 46c2f1b3a172e62ca6ffeb46fbbdf1705718af49 | b0173da1af45421239d44492eeecd54bf65ee0f6 | refs/heads/master | 1,606,896,370,374 | 1,572,988,776,000 | 1,572,988,776,000 | 96,763,004 | 165 | 28 | null | 1,555,709,319,000 | 1,499,680,948,000 | Lean | UTF-8 | Lean | false | false | 10,601 | lean | import tactic.tidy data.pnat
universes u v w
@[derive decidable_eq]inductive dvector (α : Type u) : ℕ → Type u
| nil {} : dvector 0
| cons : ∀{n} (x : α) (xs : dvector n), dvector (n+1)
@[derive decidable_eq]inductive dfin : ℕ → Type
| fz {n} : dfin (n+1)
| fs {n} : dfin n → dfin (n+1)
namespace dfin
@[simp] def to... |
ed64dbcc2b360726ca6c67f93d8f81983288e813 | c055f4b7c29cf1aac2223bd8c1ac8d181a7c6447 | /src/categories/isomorphism.lean | d97fc9a6351a6f5928cb8b47e07cd2448b4e585c | [
"Apache-2.0"
] | permissive | rwbarton/lean-category-theory-pr | 77207b6674eeec1e258ec85dea58f3bff8d27065 | 591847d70c6a11c4d5561cd0eaf69b1fe85a70ab | refs/heads/master | 1,584,595,111,303 | 1,528,029,041,000 | 1,528,029,041,000 | 135,919,126 | 0 | 0 | null | 1,528,041,805,000 | 1,528,041,805,000 | null | UTF-8 | Lean | false | false | 8,108 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Tim Baumann, Stephen Morgan, Scott Morrison
import .category
import .functor
open categories
open categories.functor
universes u v
namespace categories.isomorphism
structure ... |
3da194858ff39f8d007659fb58a61a69b6902e4b | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/meta/lean/parser.lean | 7ea5fde13e7c4721a9b005722d133a783e77131f | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 3,158 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
prelude
import init.meta.tactic
namespace lean
-- TODO: make inspectable (and pure)
meta constant parser_state : Type
meta constant parser_state.env :... |
5873f911aad8c5cd1cb864fb049ebf8db2c5065f | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/category_theory/adjunction/basic.lean | be7efd850e1dfaf2de5b7c2850c7d31020204947 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 17,498 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin, Bhavik Mehta
-/
import category_theory.equivalence
import data.equiv.basic
namespace category_theory
open category
universes v₁ v₂ v₃ u₁ u₂ u₃ -- declare th... |
a1e1ebac85f96256df31ff9ea89a92b733c7e005 | 97f752b44fd85ec3f635078a2dd125ddae7a82b6 | /library/data/set/basic.lean | d9e1454d4a90a5cf6816b6760c3126e4f343acd4 | [
"Apache-2.0"
] | permissive | tectronics/lean | ab977ba6be0fcd46047ddbb3c8e16e7c26710701 | f38af35e0616f89c6e9d7e3eb1d48e47ee666efe | refs/heads/master | 1,532,358,526,384 | 1,456,276,623,000 | 1,456,276,623,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 35,868 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Leonardo de Moura
-/
import logic.connectives logic.identities algebra.binary
open eq.ops binary function
definition set (X : Type) := X → Prop
namespace set
variable {... |
797b5852274cd969f81e8adb15d66140ab27d83a | 626e312b5c1cb2d88fca108f5933076012633192 | /src/topology/instances/real.lean | 22a22764dcfcf956c7ebf862c93089f4ba40f999 | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,958 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import topology.metric_space.basic
import topology.algebra.uniform_group
import topology.algebra.ring
import ring_theory.subring
import group_theory.a... |
6ea8c1bf6575acf9922a2b4f869ab95093f5fa0b | f5373ccdc976e6390397d9f4220a74c76f706f4a | /src/tools/serialization.lean | 554392029859f5b2b1efb6ff24fd1bd27abcafc4 | [] | no_license | jasonrute/lean_gym_prototype | fcd91fdc454f9e351bbe258c765f50276407547e | ab29624d14e4e069e15afe0b1d90248b5b394b86 | refs/heads/master | 1,682,628,526,780 | 1,590,539,315,000 | 1,590,539,315,000 | 264,938,525 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,768 | lean | import data.buffer.parser
import init.data.unsigned
def join (sep : string) : list string → string
| [x] := x
| [] := ""
| (x::xs) := x ++ sep ++ join xs
namespace expr
namespace representation
private def escapec : char → string
| '\"' := "\\\""
| '\t' := "\\t"
| '\n' := "\\n"
| '\\' := "\\\\"
| c := s... |
e39967d977e2c081aa97d242d0c54649a96cc5d6 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/category_theory/limits/functor_category.lean | 698d9a4a287b53642e9dc42e238b91ae1e5e3d5d | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 4,859 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.products
import category_theory.limits.preserves
open category_theory category_theory.category
namespace category_theory.limits
universes v ... |
5f35b30881115c558c9c60866bb0d80e8211948d | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/calc1.lean | e019a57b0e122bb91ebe09183084c0b767412ac6 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,562 | lean | constant A : Type.{1}
definition bool : Type.{1} := Type.{0}
constant eq : A → A → bool
infixl `=`:50 := eq
axiom subst (P : A → bool) (a b : A) (H1 : a = b) (H2 : P a) : P b
axiom eq_trans (a b c : A) (H1 : a = b) (H2 : b = c) : a = c
axiom eq_refl (a : A) : a = a
constant le : A → A → bool
infixl `≤`:50 := le
axiom l... |
b52e8fdcdceb13f0ca72ac8642235b33d1a1155e | ba4794a0deca1d2aaa68914cd285d77880907b5c | /src/game/world8/level5.lean | f82d4723025c7e6796e2f49d315864bca9bebf75 | [
"Apache-2.0"
] | permissive | ChrisHughes24/natural_number_game | c7c00aa1f6a95004286fd456ed13cf6e113159ce | 9d09925424da9f6275e6cfe427c8bcf12bb0944f | refs/heads/master | 1,600,715,773,528 | 1,573,910,462,000 | 1,573,910,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 952 | lean | import mynat.definition -- hide
import mynat.add -- hide
import game.world8.level4 -- hide
namespace mynat -- hide
/-
# Advanced Addition World
## Level 5: `add_right_cancel`
The theorem `add_right_cancel` is the theorem that you can cancel on the left
when you're doing addition -- if `a + t = b + t` then `a = b`. ... |
8f1b9d4d90d88052f96cb0156f39c958dfef0da9 | 7e64227df02adbcb36600fbf0725f39f6052bbcc | /src/unyeet3.lean | efe8618316fe47e72e791662b938c077dbdc4484 | [
"MIT"
] | permissive | ocornoc/yeet | d686ee3400774cc7ac6d1517602b77ab835baa05 | 36796d756c451a7a1807e3e8714c552eca6dac65 | refs/heads/master | 1,676,263,361,122 | 1,610,192,452,000 | 1,610,192,452,000 | 326,520,706 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,299 | lean | import tactic data.nat.digits .yeet
theorem unyeetable_3p2 : ¬ ∃ b, yeet b 3 2 :=
begin
rintro ⟨b, h⟩,
unfold yeet at h,
cases b, { change 9 = 3 at h, norm_num at h },
cases b, { change 9 = 5 at h, norm_num at h },
cases b, { norm_num [nat.of_digits] at h },
cases b, { norm_num [nat.of_digits] at h },
ha... |
ef4028bd9df0b4bded18a693315556e4a8787aae | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/partial_sups.lean | d8b326407c8d423046fb2935a89170c7f2bd6272 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 6,953 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import data.finset.lattice
import order.hom.basic
import order.conditionally_complete_lattice.finset
/-!
# The monotone sequence of partial supremums of a sequence
... |
566ba7693788b85dfffaa8776b3955f05375a300 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/elabissues/structInst.lean | f0df75f8e7760be2dcce3e11d35c95c1691dc259 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,466 | lean | namespace Ex1
structure A :=
(x : Nat)
structure B extends A :=
(y : Nat := x + 2) (x := y + 1)
structure C extends B :=
(z : Nat) (x := z + 10)
#check { y := 1 : B } -- works
#check { z := 1 : C } -- doesn't work, expected { z := 1, x := 1 + 10, y := (1 + 10) + 2 }
end Ex1
namespace Ex2
structure A :=
(x : Nat)... |
1e4e240111b329dbc20e404132095505ea6e3815 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/data/array/basic.lean | 75aac8d372d799f598b019b13e7c42aced572f22 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 10,354 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
prelude
import init.data.nat init.data.bool init.ite_simp
universes u v w
/-- In the VM, d_array is implemented as a persistent array. -/
s... |
a3614ce4aaabca954c6f5f2474d66a519a84ac5b | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/LCNF/CompilerM.lean | 5e261a4c7f78eadf2ed31dad200842e216c18d85 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 18,622 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.CoreM
import Lean.Compiler.LCNF.Basic
import Lean.Compiler.LCNF.LCtx
import Lean.Compiler.LCNF.ConfigOptions
namespace Lean.Compiler.LCNF
/--
T... |
5b724bc6c2ffa25310a44c5391ea07111183986d | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Test/importLeanbin/lakefile.lean | 54ff009109bab06794f586cdfee34535ed3e8ca3 | [
"Apache-2.0"
] | permissive | leanprover-community/mathport | 2c9bdc8292168febf59799efdc5451dbf0450d4a | 13051f68064f7638970d39a8fecaede68ffbf9e1 | refs/heads/master | 1,693,841,364,079 | 1,693,813,111,000 | 1,693,813,111,000 | 379,357,010 | 27 | 10 | Apache-2.0 | 1,691,309,132,000 | 1,624,384,521,000 | Lean | UTF-8 | Lean | false | false | 240 | lean | import Lake
open Lake DSL System
package importLeanbin where
defaultFacet := PackageFacet.oleans
dependencies := #[{
name := "lean3port",
src := Source.git "https://github.com/leanprover-community/lean3port.git" "master"
}]
|
e02b79410a61790a3e61af2175f9907873e9e41f | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/geometry/euclidean/sphere.lean | fa07f45142b6a2371679baca7060d15ebc6749b4 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 8,423 | lean | /-
Copyright (c) 2021 Manuel Candales. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Manuel Candales, Benjamin Davidson
-/
import geometry.euclidean.triangle
/-!
# Spheres
This file proves basic geometrical results about distances and angles
in spheres in real inner... |
0ff98801733caf9a765cfb7901ddcfb1a3c9a75c | d1bbf1801b3dcb214451d48214589f511061da63 | /src/category_theory/abelian/basic.lean | dbb2f1e6beccb339c97a450fec4e02343e9ee225 | [
"Apache-2.0"
] | permissive | cheraghchi/mathlib | 5c366f8c4f8e66973b60c37881889da8390cab86 | f29d1c3038422168fbbdb2526abf7c0ff13e86db | refs/heads/master | 1,676,577,831,283 | 1,610,894,638,000 | 1,610,894,638,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,386 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.limits.constructions.pullbacks
import category_theory.limits.shapes.biproducts
import category_theory.limits.shapes.images
import category_theor... |
8893a83bff9d8bc9dfd88a84af5213c7fc93f91e | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /src/Lean/Elab/Deriving/FromToJson.lean | 2be4970bf7de7ed967fbd5bd65272d1c2b3c865d | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,573 | lean |
/-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.Meta.Transform
import Lean.Elab.Deriving.Basic
import Lean.Elab.Deriving.Util
import Lean.Data.Json.FromToJson
namespace Lean.Elab.Deriving.FromTo... |
73a5a5bfbf53470e1fc6cf81b01d8e91af7a2770 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/uniform_space/cauchy.lean | 5d8a70689d356ac6f2c09c6fe96e2063dc92aa04 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 33,860 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import topology.bases
import topology.uniform_space.basic
/-!
# Theory of Cauchy filters in uniform spaces. Complete uniform spaces. Totally bounded s... |
8ec66d1d9e9f6ac22970a7b495bda641057fbfd6 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/compacts.lean | 4c48592969f71566a5580b309c697a774d41e42d | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 5,342 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import topology.homeomorph
/-!
# Compact sets
## Summary
We define the subtype of compact sets in a topological space.
## Main Definitions
- `closeds α` is th... |
a1616731be522e6a1ada1a0215dd21c946948458 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Compiler/IR/LiveVars.lean | c6cdfdb8077e6efb2c5488a5260312de9c39633a | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,947 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Compiler.IR.Basic
import Lean.Compiler.IR.FreeVars
namespace Lean.IR
/- Remark: in the paper "Counting Immutable Beans" the concepts of
fre... |
0699f9ccc18c8774c70eec988ec0e6d6a5943d17 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/basic.lean | b6cabbb517c8c66526d2ac1b5c6d6c7cce4f1634 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,601 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.subtype
import Mathlib.data.prod
import Mathlib.PostPort
universes u_1 ... |
c8559becc683d572af5173e22d31fee9428edd59 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/order/field/canonical/defs.lean | 30e193fa74c166df9c2e8e88aa4dbddb51bf2c5a | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,496 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis, Leonardo de Moura, Mario Carneiro, Floris van Doorn
-/
import algebra.order.field.defs
import algebra.order.ring.canonical
import algebra.order.with_zero
/-!
# Canonically... |
4b18107df6b8feb029ae22ca5ee473532044ffff | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Mathport/Syntax/Translate/Tactic/Basic.lean | 5a693b60f5750f017c7d8e8887e88c9517d1b1db | [
"Apache-2.0"
] | permissive | leanprover-community/mathport | 2c9bdc8292168febf59799efdc5451dbf0450d4a | 13051f68064f7638970d39a8fecaede68ffbf9e1 | refs/heads/master | 1,693,841,364,079 | 1,693,813,111,000 | 1,693,813,111,000 | 379,357,010 | 27 | 10 | Apache-2.0 | 1,691,309,132,000 | 1,624,384,521,000 | Lean | UTF-8 | Lean | false | false | 5,539 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Mathport.Syntax.Translate.Basic
import Mathport.Syntax.Translate.Parser
import Mathlib.Mathport.Syntax
open Lean
open Lean.Elab.Tactic (Location)
name... |
25bc83de34b1164a5d31a7e207cee88266c0ab7c | 626e312b5c1cb2d88fca108f5933076012633192 | /src/topology/compact_open.lean | 35ac139a9353859480e5305b598bcea74f515db4 | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,366 | lean | /-
Copyright (c) 2018 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
Type of continuous maps and the compact-open topology on them.
-/
import topology.subset_properties
import topology.continuous_function.basic
import topology.homeomorph
impor... |
cb7d5872d8f4d96a484bbae8602419e92573346e | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/bracket.lean | f83892d912682f87fbea93659955497825be64e2 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 1,458 | lean | /-
Copyright (c) 2021 Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Lutz, Oliver Nash
-/
/-!
# Bracket Notation
This file provides notation which can be used for the Lie bracket, for the commutator of two
subgroups, and for other similar operat... |
33bd8a9f8c10f0b9bd5f37bb1c80033e24da088e | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/init/ua.hlean | d2dce74cd006d077d54159a7231b5b6f892bfdc2 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 3,150 | hlean | /-
Copyright (c) 2014 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer, Floris van Doorn
Ported from Coq HoTT
-/
prelude
import .equiv
open eq equiv is_equiv
axiom univalence (A B : Type) : is_equiv (@equiv_of_eq A B)
attribute univ... |
c035a8ec8c926540a7ef7bd4489183c3cbfdf958 | a721fe7446524f18ba361625fc01033d9c8b7a78 | /src/principia/mynat/lt.lean | fc12beae1e0bf094444b49a81769c1a7406eb80d | [] | no_license | Sterrs/leaning | 8fd80d1f0a6117a220bb2e57ece639b9a63deadc | 3901cc953694b33adda86cb88ca30ba99594db31 | refs/heads/master | 1,627,023,822,744 | 1,616,515,221,000 | 1,616,515,221,000 | 245,512,190 | 2 | 0 | null | 1,616,429,050,000 | 1,583,527,118,000 | Lean | UTF-8 | Lean | false | false | 7,268 | lean | -- vim: ts=2 sw=0 sts=-1 et ai tw=70
import .le
import ..logic
namespace hidden
namespace mynat
def lt (m n: mynat) := ¬n ≤ m
instance: has_lt mynat := ⟨lt⟩
instance decidable_lt: ∀ m n: mynat, decidable (m < n) :=
(λ m n, not.decidable)
variables {m n p k : mynat}
theorem lt_nrefl: ¬m < m :=
(λ h, h le_refl)
t... |
97069b78da373e5fc4ec45fea5c09b34335c2175 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/combinatorics/simple_graph/adj_matrix.lean | 08810203ebe4e48341bc318ec813e2dc37eae152 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,160 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Jalex Stark
-/
import combinatorics.simple_graph.basic
import data.rel
import linear_algebra.matrix.trace
/-!
# Adjacency Matrices
This module defines the adjacency m... |
732d43fd9aeb994074e8f14e7b77e93d12cd6709 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/extra/rec.lean | 07373f1a5c5902bd556c621d1e1e92bdcbb5cde6 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 1,448 | lean | import data.examples.vector
open nat vector
definition fib : nat → nat,
fib 0 := 1,
fib 1 := 1,
fib (a+2) := (fib a ↓ lt.step (lt.base a)) + (fib (a+1) ↓ lt.base (a+1))
[wf] lt.wf
definition gcd : nat → nat → nat,
gcd 0 x := x,
gcd x 0 := x,
gcd (succ x) (succ y) := if y ≤ x
... |
82b069c8fa236103445ec0791b0b08822447e576 | 9338c56dfd6ceacc3e5e63e32a7918cfec5d5c69 | /src/sheaves/sheaf_of_rings_on_standard_basis.lean | 48a64fe61cce330ae9a638358bd31149c7fcbb98 | [] | no_license | Project-Reykjavik/lean-scheme | 7322eefce504898ba33737970be89dc751108e2b | 6d3ec18fecfd174b79d0ce5c85a783f326dd50f6 | refs/heads/master | 1,669,426,172,632 | 1,578,284,588,000 | 1,578,284,588,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,835 | lean | /-
Extension of a sheaf of rings on the basis to a sheaf of rings on the whole space.
https://stacks.math.columbia.edu/tag/009M
https://stacks.math.columbia.edu/tag/009N
-/
import topology.opens
import sheaves.stalk_of_rings
import sheaves.stalk_of_rings_on_standard_basis
import sheaves.presheaf_of_rings_on_bas... |
f4f09dbb4ce01ad0ff09834225cada91df36f67d | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/bench/parser.lean | 7770d57ddd243793172a1cb58e89564f51771acd | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 242 | lean | import Init.Lean.Parser
def main : List String → IO Unit
| [fname, n] => do
env ← Lean.mkEmptyEnvironment;
n.toNat!.forM $ fun _ =>
Lean.Parser.parseFile env fname *> pure ();
pure ()
| _ => throw $ IO.userError "give file"
|
2ccad046f96b27bf34414e217e5e0762657168f5 | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/limits/shapes/products.lean | 399e23ac332ba1b4ab9e6d73308b5252e24adc89 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 6,781 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import category_theory.limits.limits
import category_theory.discrete_category
noncomputable theory
universes v u u₂
open category_theory
namespace c... |
fc61879cc56421a82c5e1741839bf1fe3bdeed1c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/explode.lean | fa17d1f75abc38f61d4b127063a423c0992535ee | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,146 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Minchao Wu
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.core
import Mathlib.PostPort
universes l
namespace Mathlib
/-!
# `#ex... |
19b5ac0f0fa8f80eb341e71408b2b425cbd8709c | 7bf54883c04ff2856c37f76a79599ceb380c1996 | /non-mathlib/field_definition.lean | 17400ceaa028f2826677fd8c2c5e57cc9f15918b | [] | no_license | anonymousLeanDocsHosting/lean-polynomials | 4094466bf19acc0d1a47b4cabb60d8c21ddb2b00 | 361ef4cb7b68ef47d43b85cfa2d13f2ea0a47613 | refs/heads/main | 1,691,112,899,935 | 1,631,819,522,000 | 1,631,819,522,000 | 405,448,439 | 0 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 3,540 | lean | class myfld (f : Type) :=
(add : f -> f -> f)
(mul : f -> f -> f)
(negate : f -> f)
(zero : f)
(reciprocal : ∀ (x : f), (x ≠ zero) -> f) /- Reciprocal of zero is undefined.-/
(one : f)
(add_assoc : ∀ (x y z : f), (add x (add y z)) = (add (add x y) z))
(mul_assoc : ∀ (x y z : f), (mul x (mul y z)) = (mul (mul x y) z))... |
2c659c6202e6790ea4971e25178615f2521d92c9 | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /linear_algebra/linear_map_module.lean | 59a84a1b7614387622d03d1c3d50e0c519a3980d | [
"Apache-2.0"
] | permissive | sebzim4500/mathlib | e0b5a63b1655f910dee30badf09bd7e191d3cf30 | 6997cafbd3a7325af5cb318561768c316ceb7757 | refs/heads/master | 1,585,549,958,618 | 1,538,221,723,000 | 1,538,221,723,000 | 150,869,076 | 0 | 0 | Apache-2.0 | 1,538,229,323,000 | 1,538,229,323,000 | null | UTF-8 | Lean | false | false | 8,592 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Kenny Lau
Type of linear functions
-/
import linear_algebra.basic
linear_algebra.prod_module
linear_algebra.quotient_module
linear_algebra.subtype_module
noncomp... |
62ba0281145cbbe81858b13e39e2a12fa6f1b232 | 492a7e27d49633a89f7ce6e1e28f676b062fcbc9 | /src/monoidal_categories_reboot/examples/products.lean | c3ce939a94064e81132bbba180b499380d9abdc7 | [
"Apache-2.0"
] | permissive | semorrison/monoidal-categories-reboot | 9edba30277de48a234b63813cf85b171772ce36f | 48b5f1d535daba4e591672042a298ac36be2e6dd | refs/heads/master | 1,642,472,396,149 | 1,560,587,477,000 | 1,560,587,477,000 | 156,465,626 | 0 | 1 | null | 1,541,549,278,000 | 1,541,549,278,000 | null | UTF-8 | Lean | false | false | 3,800 | lean | -- has_binary_products etc is still missing from mathlib :-(
-- -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- -- Released under Apache 2.0 license as described in the file LICENSE.
-- -- Authors: Scott Morrison
-- import category_theory.limits.binary_products
-- import category_theory.limits.terminal
... |
fb310c208810b0eba1bd04a95c818d80f9067f8c | 69bc7d0780be17e452d542a93f9599488f1c0c8e | /10-29-2019.lean | ea55f375e1ba337ccc4359cd038390f08d73ac16 | [] | no_license | joek13/cs2102-notes | b7352285b1d1184fae25594f89f5926d74e6d7b4 | 25bb18788641b20af9cf3c429afe1da9b2f5eafb | refs/heads/master | 1,673,461,162,867 | 1,575,561,090,000 | 1,575,561,090,000 | 207,573,549 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,975 | lean | -- Notes 10/29/2019
/-
Moving from propositional logic to predicate logic
Over what values do variables range in prop. logic? → true and false
In predicate logic, variables range over arbitrary domains.
∀ p: Person, ∃ q: Person, p likes q
"For every person p, there exists a person q such that p likes q" → "everyone l... |
38d6978c57c5ce0ebe1943acc131b9a00b5d2e9d | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/tactic/norm_num.lean | 5293f0ba2ee0160017e43637f1092db5bd5f06f2 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 62,097 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Mario Carneiro
-/
import data.rat.cast
import data.rat.meta_defs
/-!
# `norm_num`
Evaluating arithmetic expressions including *, +, -, ^, ≤
-/
universes u v w
namespace ta... |
7a92284031378993351d5abcf3f5bbfb4d5a1bc2 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Server.lean | 5c4bfb8d622f8559183cf4a31d6e32f8e5a90505 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 253 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Lean.Server.Watchdog
import Lean.Server.FileWorker
import Lean.Server.Rpc
|
50ac4891cb7f23ec975452f54108cadaaab8997f | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/continued_fractions/translations.lean | 67a3ac6193baf47599b3196fac9fdaf103300788 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 4,976 | lean | /-
Copyright (c) 2019 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import algebra.continued_fractions.basic
/-!
# Basic Translation Lemmas Between Functions Defined for Continued Fractions
## Summary
Some simple translation lem... |
73950530eb82750680c3c0663550c14a5cbe58d9 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/unexpected_result_with_bind.lean | e055fe1071e8979084897c5839f72d8da0369425 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 687 | lean |
namespace Repro
def FooM (α : Type) : Type := Unit → α
def FooM.run {α : Type} (ψ : FooM α) (x : Unit) : α := ψ x
def bind {α β : Type} : ∀ (ψ₁ : FooM α) (ψ₂ : α → FooM β), FooM β
| ψ₁, ψ₂ => λ _ => ψ₂ (ψ₁.run ()) ()
instance : Pure FooM := ⟨λ x => λ _ => x⟩
instance : Bind FooM := ⟨@bind⟩
instance : Monad FooM := ... |
829d78acfcb3f48132ff25de424c86966981501f | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/run/match2.lean | b0e3368cb510d893f26f089990cd02cc64f01214 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 830 | lean | import data.nat.basic
open nat
definition two1 : nat := 2
definition two2 : nat := succ (succ (zero))
definition f (x : nat) (y : nat) := y
constant g : nat → nat → nat
constants a b : nat
(*
local tc = type_checker_with_hints(get_env(), true)
local plugin = whnf_match_plugin(tc)
function tst_match(p, t)
local... |
1bcd1f16ca2858e3273ef3ac1afc0b7c09b70470 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/monoidal/natural_transformation.lean | 478f462028274cc4465c8273c603f1758f15fd69 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 8,541 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.monoidal.functor
import category_theory.full_subcategory
/-!
# Monoidal natural transformations
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> ... |
d0b037b9a0966c0498459a575533ea762b653914 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/finset/pi.lean | 2cd46e633ffc06f7305f3cdb2c8525e78d11dcad | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 4,059 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
-/
import data.finset.basic
import data.multiset.pi
/-!
# The cartesian product of finsets
-/
namespace finset
open multiset
/-! ### pi -/
section pi
variables {α : Ty... |
845486e3520b5c58572b0bf160e80afb546fe471 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/data/real/ennreal.lean | fe988fe02908149c95a41c7c383d32b9fdf35c64 | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 33,237 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Extended non-negative reals
-/
import data.real.nnreal order.bounds data.set.intervals tactic.norm_num
noncomputable theory
open classical set lattice
open_locale class... |
351e48b0d64a55d8f97f97bf3a3c84dbc0733c02 | 618003631150032a5676f229d13a079ac875ff77 | /src/ring_theory/ideals.lean | 6b28c1a54f723f4a99b439322b12f31bd386a186 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 18,935 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Mario Carneiro
-/
import algebra.associated
import linear_algebra.basic
import order.zorn
universes u v
variables {α : Type u} {β : Type v} {a b : α}
open set func... |
12631c577ea5e5389928e369ae79e364eea720bc | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/analysis/special_functions/trigonometric.lean | 960ab572a621ceb5eb3052e55bdd1c4d5e8e3fe6 | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 138,811 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Benjamin Davidson
-/
import analysis.special_functions.exp_log
import data.set.intervals.infinite
import algebra.quadratic_d... |
a1d84554bb0c079629270dc53f4f2495afbbd02a | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch4/ex0209.lean | 2afd8939aac4387ee307dead0b2e8d9aaacbc808 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 798 | lean | variables a b c d : ℤ
example : a + 0 = a := add_zero a
example : 0 + a = a := zero_add a
example : a * 1 = a := mul_one a
example : 1 * a = a := one_mul a
example : -a + a = 0 := neg_add_self a
example : a + -a = 0 := add_neg_self a
example : a - a = 0 := sub_self a
example : a + b = b + a := add_comm a b
example : a... |
5ae05f245818616fbbd830a2f896be8aaa7cffc3 | d0f9af2b0ace5ce352570d61b09019c8ef4a3b96 | /hw9/hw9_key.lean | c804d85f50fda7031958f7366f205c807d8f3dd9 | [] | no_license | jngo13/Discrete-Mathematics | 8671540ef2da7c75915d32332dd20c02f001474e | bf674a866e61f60e6e6d128df85fa73819091787 | refs/heads/master | 1,675,615,657,924 | 1,609,142,011,000 | 1,609,142,011,000 | 267,190,341 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,477 | lean | /-
HOMEWORK #9
There is no need to import our previous definitions.
For this homework you will just use Lean's built-in
notations and definitions.
-/
/-
Prove the following. Note that you can read each of
the propositions to be proved as either a logical
statement or as simply a function definition. Use
what you... |
90736f9eac52b8b80b894f7bc3ed23dc5a7602cb | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch4/ex0301.lean | c4387da43020bc28d01832b066bab27c7bbe5c04 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 287 | lean | variables (a b c d e : ℕ)
variable h1 : a = b
variable h2 : b = c + 1
variable h3 : c = d
variable h4 : e = 1 + d
theorem T : a = e :=
calc
a = b : h1
... = c + 1 : h2
... = d + 1 : congr_arg _ h3
... = 1 + d : add_comm _ _
... = e : h4.symm
|
834a763221bb2da2444e50b89c37dbc82d266bd4 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/topology/maps.lean | d51889ed3e5727b6aad72a55987dc5250b64aff6 | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,018 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import topology.order
/-!
# Specific classes of maps between topological spaces
This file introduces the following properties of a m... |
7318a537a0d801dd8f899de38913ead4d9e896a3 | 137c667471a40116a7afd7261f030b30180468c2 | /src/ring_theory/fractional_ideal.lean | 3640b1dea4d7661ba7e15342fcd896964230883b | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 40,528 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Filippo A. E. Nuccio
-/
import ring_theory.localization
import ring_theory.noetherian
import ring_theory.principal_ideal_domain
import tactic.field_simp
/-!
# Fractional ide... |
3b1439cab9305a971f6cb11e9b8a3b30a0db9360 | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/topology/metric_space/isometry.lean | ad98e0555f8e129613c368e5e79392e56eee848a | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 13,069 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Isometries of emetric and metric spaces
Authors: Sébastien Gouëzel
We define isometries, i.e., maps between emetric spaces that preserve
the edistance (on metric spaces, these are exactly th... |
d66390aaf688fc38990366cfd08180d5379b4770 | 1fbca480c1574e809ae95a3eda58188ff42a5e41 | /src/util/meta/tactic/ite.lean | 82e41d8a58ae4dc9d7620cd82d12f446e9a94fdd | [] | no_license | unitb/lean-lib | 560eea0acf02b1fd4bcaac9986d3d7f1a4290e7e | 439b80e606b4ebe4909a08b1d77f4f5c0ee3dee9 | refs/heads/master | 1,610,706,025,400 | 1,570,144,245,000 | 1,570,144,245,000 | 99,579,229 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,891 | lean |
import util.meta.tactic.basic
import util.data.ordering
namespace interactive
open tactic
meta def loc.get_locations : loc → tactic (list expr)
| loc.wildcard := (::) <$> tactic.target <*> (tactic.local_context >>= mmap infer_type)
| (loc.ns xs) := mmap (λ n, match n with
| none := tactic.target
| some n := ... |
5906b87edcfa9cd22afb63b752967e8922f13c16 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/macroTrace.lean | f9700da870ce235a94b14f4e9a07dd24e28ba3b2 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 325 | lean | open Lean in
macro "tst" : term => do
Macro.trace[Meta.debug] "macro tst executed"
`(0)
#check tst
set_option trace.Meta.debug true in
#check tst
open Lean in
macro "tstcmd" : command => do
Macro.trace[Meta.debug] "macro cmdtst executed {1+2}"
`(#print "hello")
tstcmd
set_option trace.Meta.debug true in
ts... |
51e167bc86c4bfc53474188887b0fe93d23ade9a | 4fa118f6209450d4e8d058790e2967337811b2b5 | /src/for_mathlib/normed_spaces.lean | 6bafa3f2e2334312d11eab74b64eb0fa60b5feec | [
"Apache-2.0"
] | permissive | leanprover-community/lean-perfectoid-spaces | 16ab697a220ed3669bf76311daa8c466382207f7 | 95a6520ce578b30a80b4c36e36ab2d559a842690 | refs/heads/master | 1,639,557,829,139 | 1,638,797,866,000 | 1,638,797,866,000 | 135,769,296 | 96 | 10 | Apache-2.0 | 1,638,797,866,000 | 1,527,892,754,000 | Lean | UTF-8 | Lean | false | false | 857 | lean | import analysis.normed_space.basic
import analysis.specific_limits
import for_mathlib.topology
open set metric function normed_field
lemma nondiscrete_normed_field.nondiscrete {k : Type*} [nondiscrete_normed_field k] :
¬ discrete_topology k :=
begin
intro h,
replace h := discrete_iff_open_singletons.mp h 0,
... |
c85baf2adc5068947bff5e014fb4be2fb76746e6 | 958488bc7f3c2044206e0358e56d7690b6ae696c | /lean/tutorials/tutorial1.lean | 8c727cdf72b7f0c7d5378a3537d8e377fa8fffe7 | [] | no_license | possientis/Prog | a08eec1c1b121c2fd6c70a8ae89e2fbef952adb4 | d4b3debc37610a88e0dac3ac5914903604fd1d1f | refs/heads/master | 1,692,263,717,723 | 1,691,757,179,000 | 1,691,757,179,000 | 40,361,602 | 3 | 0 | null | 1,679,896,438,000 | 1,438,953,859,000 | Coq | UTF-8 | Lean | false | false | 2,522 | lean | import data.real.basic
example : ∀ (a b c : ℝ), (a * b) * c = b * (a * c) :=
begin
intros a b c, rw (mul_comm a b), apply mul_assoc
end
example : ∀ (a b c : ℝ) , (c * b) * a = b * (a * c) :=
begin
intros a b c,
calc
(c * b) * a = (b * c)* a : by rw (mul_comm c b)
... = b *(c * a) : by apply mu... |
fa44103a6056e826a1aa5b7123637c60a4914711 | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /analysis/topology/continuity.lean | bfc3ca741e5acdc3866fd752b3282eed16ca72f2 | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 70,792 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
Continuous functions.
Parts of the formalization is based on the books:
N. Bourbaki: General Topology
I. M. James: Topologies and U... |
a3e0986f81615a77a272aa516a824e60a689e275 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/category_theory/limits/types.lean | 9a065cc4167ed8f5f0d8576a5b6c15350e3583c8 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 14,271 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Reid Barton
-/
import category_theory.limits.shapes.images
import category_theory.filtered
import tactic.equiv_rw
universes u
open category_theory
open category_theor... |
3cb834525a09ccf2b7e5af102a8d18424e039081 | f618aea02cb4104ad34ecf3b9713065cc0d06103 | /src/data/set/basic.lean | 4999187e7c9fdc6429d9b9bf32dadb92258f4061 | [
"Apache-2.0"
] | permissive | joehendrix/mathlib | 84b6603f6be88a7e4d62f5b1b0cbb523bb82b9a5 | c15eab34ad754f9ecd738525cb8b5a870e834ddc | refs/heads/master | 1,589,606,591,630 | 1,555,946,393,000 | 1,555,946,393,000 | 182,813,854 | 0 | 0 | null | 1,555,946,309,000 | 1,555,946,308,000 | null | UTF-8 | Lean | false | false | 52,586 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Leonardo de Moura
-/
import tactic.ext tactic.finish data.subtype tactic.interactive
open function
/- set coercion to a type -/
namespace set
instance {α : Type*} : has_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.